Connecting to arduino bluetooth module - Raspberry Pi Forums


hi there,

i'm workin on project consist of controlling arduino robot ( https://www.adafruit.com/products/1588 bluetooth module on ) raspberry pi.

found tutorial http://blog.dawnrobotics.co.uk/2013/11/ ... pberry-pi/ , followed without problems ( had troubles pairing devices seem ok ;) ).

wrote little piece of code ( did not try code in tutorial ) see if robot receiving order pi when run code, there error :

code: select all

traceback (most recent call last):   file "test.py", line 6, in <module>     bluetoothserial.write("forward")   file "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 485, in write     raise serialexception('write failed: %s' % (v,)) serial.serialutil.serialexception: write failed: [errno 107] transport endpoint not connected 
here code :

code: select all

#! /usr/bin/python   import serial import time   bluetoothserial = serial.serial( "/dev/rfcomm1", baudrate=9600 ) time.sleep(5) bluetoothserial.write( "forward") #which make robot go forward
please help, it's been 2 days try solve problem :cry:

ps: sorry english ( i'm french , high school student)

:)

what response this?

code: select all

rfcomm


raspberrypi



Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key