极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8997|回复: 0

flash与蓝牙串口问题

[复制链接]
发表于 2013-3-27 19:21:53 | 显示全部楼层 |阅读模式
本帖最后由 清蒸小绵羊 于 2013-4-6 13:34 编辑

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

  1. ** Arduino ** Connecting to 127.0.0.1:5331 . . .
  2. ** Arduino ** Connection failed! you must launch the serialProxy first
复制代码


配置文件:
  1. # Config file for serproxy

  2. # See serproxy's README file for documentation


  3. # Transform newlines coming from the serial port into nils


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



  6. # Comm ports used

  7. comm_ports=3
  8. # Default settings

  9. comm_baud=9600
  10. comm_databits=8

  11. comm_stopbits=1

  12. comm_parity=none


  13. # Idle time out in seconds

  14. timeout=300


  15. # Port 1 settings (ttyS0)

  16. net_port1=5331
  17. # Port 2 settings (ttyS1)

  18. net_port2=5332


  19. # Port 3 settings (ttyS2)

  20. net_port3=5333


  21. # Port 4 settings (ttyS3)

  22. net_port4=5334
复制代码



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

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


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

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

已解决,将串口号改到10一下便可以通信
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-6-1 23:44 , Processed in 0.041862 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表