Thanks indeed, it works! 在2008-05-24,"Peter Wurmsdobler" 写道: > > >Hello, > >a few months back I encountered a similar problem. hciattach did not >(and still does not) always succeed, and bccmd seems to have a problem >using the BlueCore serial protocol (bcsp), possibly a race condition. >That's why I have to use: > > /usr/sbin/hciattach /dev/ttymxc2 bcsp 57600 flow > /usr/sbin/hciconfig hci0 up > /usr/sbin/bccmd -t hci psload -r /usr/etc/bluetooth/apm6628BT-UART.psr > killall hciattach > /usr/sbin/hciattach /dev/ttymxc2 bcsp 115200 flow > /usr/sbin/hciconfig hci0 up > >Notice the bccmd -t hci, so you have to attach first using bcsp, then >use bccmd with this hci in order to download the psr file (which will >reset the BlueCore), then kill the hci and re-attach. > >Hope this helps, >peter > > > > >'); > } >//--> > >