清蒸小绵羊 发表于 2013-3-27 19:21:53

flash与蓝牙串口问题

本帖最后由 清蒸小绵羊 于 2013-4-6 13:34 编辑

      arduino 用蓝牙模块与PC连接,可以通过串口助手与arduino通信,控制LED开关。但是使用serproxy串口转网口之后,flash无法访问对应网口:

** Arduino ** Connecting to 127.0.0.1:5331 . . .
** Arduino ** Connection failed! you must launch the serialProxy first

配置文件:# Config file for serproxy

# See serproxy's README file for documentation


# Transform newlines coming from the serial port into nils


# true (e.g. if using Flash) or false
newlines_to_nils=true



# Comm ports used

comm_ports=3
# Default settings

comm_baud=9600
comm_databits=8

comm_stopbits=1

comm_parity=none


# Idle time out in seconds

timeout=300


# Port 1 settings (ttyS0)

net_port1=5331
# Port 2 settings (ttyS1)

net_port2=5332


# Port 3 settings (ttyS2)

net_port3=5333


# Port 4 settings (ttyS3)

net_port4=5334



但是使用USB连接arduino时又没有问题

用的是这位大哥 http://group.ednchina.com/GROUP_MES_14273_3000001100_5000005323.HTM 的示例


请问各位大虾,哪里出问题了? 是serproxy不支持蓝牙串口吗?

----------------------------------------------分割线------------------------------------------------------

已解决,将串口号改到10一下便可以通信
页: [1]
查看完整版本: flash与蓝牙串口问题