Active Topics

 


Reply
Thread Tools
Posts: 557 | Thanked: 370 times | Joined on Apr 2010
#1
Anyone have a working example of how to connect my N900 via SPP to a bluetooth port?

I've developed an RC Robot controllable over bluetooth and would kill to interface this with my N900 instead of my laptop, but have so far had no luck getting anything to work. Stumbled across a Python script to start SPP over bluetooth but had no luck getting it working.

Other problem is I haven't got access to this robot outside of lab hours so I need something that'll work as soon as I try. Once I have the robot mounted on a COM port I should have no issue reading the port via Minicom (unless there is a better GUI option?).

Any suggestions? Would love a fully working code?

Stumbled across this for the N770, but I can't imagine it'd be this easy:
Code:
hcitool scan
rfcomm bind 0 00:00:00:00:00:00
 
Posts: 87 | Thanked: 56 times | Joined on Nov 2008
#2
I don't know if it is really that easy, but that is the way I use bluetooth instead USB port from perl-program:

hcitool cc xx:xx:xx:xx:xx:xx
rfcomm bind /dev/rfcomm0 xx:xx:xx:xx:xx:xx

That is in n900. Then use device /dev/rfcomm0

Last edited by sconf; 2010-10-13 at 21:33.
 
Posts: 557 | Thanked: 370 times | Joined on Apr 2010
#3
Hey, thanks. I'll definitely see how that goes on Monday when I'm in there next. It'd be much easier if I had my own to screw around with at home (considering buying one of those cheapy Arduino boards now...)
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:14.