From: Triona R. <tri...@nu...> - 2005-02-16 08:19:33
|
Hi Craig, I followed the three steps you outlined for HWUART, and got a conencti on timeout. # /etc/init.d/S30bluetooth stop Stopping Bluetooth subsystem: pand dund rfcomm hidd sdpd hcid /dev/ttyS1. # for i in 2 3 4 5;do echo AF3 > /proc/g pio/GPIO4$i;done Set (AF3,in,set) via /proc/gpio/GPIO42 Set (AF3,out,set) via /p roc/gpio/GPIO43 Set (AF3,in,clear) via /proc/gpio/GPIO44 Set (AF3,out,set) via / proc/gpio/GPIO45 # edited the /etc/default/bluetooth file # /etc/init.d/S30blu etooth start Set (GPIO,out,clear) via /proc/gpio/GPIO7 Set (GPIO,out,set) via /p roc/gpio/GPIO7 Starting Bluetooth subsystem: /dev/ttyS3 hcid sdpd rfcomm pand. # hciconfig -a hci0: Type: UART BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN RX bytes:0 acl:0 sco:0 events:0 errors:0 TX bytes:4 acl:0 sco:0 commands:1 errors:0 Features: 0x00 0x00 0 x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link polic y: Link mode: SLAVE ACCEPT # hciconfig hci0 up Can't init device hci0. Connection timed out(110) To get BTUART working at 230400bps, do I just edit th e speed in the default file? How do I return to using BTUART from my changes to HWUART? (I've a 400MHz gumstix fyi) Thanks,Triona *************************** ********************************************** 2. Bluetooth fixes. I can now r eliably get BTUART doing HCI at 230400bps. For higher speeds, looks like we ne ed the hardware flow control from the HWUART, which we can do: # /etc/init.d/S 30bluetooth stop # for i in 2 3 4 5;do echo AF3 > /proc/gpio/GPIO4$i;done [now e dit /etc/default/bluetooth to change /dev/ttyS1 to /dev/ttyS3 and change speed to 921600] # /etc/init.d/S30bluetooth start Please test this if you've been hav ing bluetooth problems -- the HWUART should definitely work for everyone -- the BTUART is likely speed-sensitive and will work less well on 200MHz gumstix tha n on 400Mhz ones, and will work better at slower serial speeds than at higher speeds. If throughput isn't critical though, you can do a lot of bluetooth stu ff at 57600. If throughput is critical, then right now you basically lose one serial port in exchange for working bluetooth. Once we get the new waysmall bo ards done with STUART as the 2nd serial port instead of HWUART, this will be so mewhat less of an issue. C |