For a long time i’ve had a SiRF 3 bluetooth GPS which i’ve just connected to the mini2440 using a ludicrously cheap USB bluetooth adapter from DealExtreme. Including shipping it cost £1.38 delivered!! Here’s what you get for your money:
The chip is a Conwise CW6626. Anyway, what matters most is that if you have bluetooth configured it works out of the box!
Connecting to the GPS is easy. First check the interface:
If it says down bring it up:
After executing the above I got the following:
hci0: Type: USB
BD Address: 00:15:83:15:A3:10 ACL MTU: 672:3 SCO MTU: 128:2
UP RUNNING
RX bytes:348 acl:0 sco:0 events:11 errors:0
TX bytes:38 acl:0 sco:0 commands:11 errors:0
Features: 0xff 0x3e 0x85 0x30 0x18 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: ''
Class: 0x000208
Service Classes: Unspecified
Device Class: Phone, Cordless
HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
Now turn your GPS on and do a scan:
Scanning ...
00:0D:B5:32:2C:02 BT-GPS-322C02
Now fill in /etc/bluetooth/rfcomm.conf with the details. Here’s mine:
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:0D:B5:32:2C:02;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "BT-GPS-322C02";
}
Next bind the device:
And check the device output using:
Next i bitbaked gpsd, by simply typing:
In my OE installation (see the various posts about setting this up).
Once this builds you can install the appropriate ipks. From memory I think i installed the following:
gpsd-static_2.39-r0.5_armv4t.ipk
gpsd-gpsctl_2.39-r0.5_armv4t.ipk
gps-utils_2.39-r0.5_armv4t.ipk
libgps18_2.39-r0.5_armv4t.ipk
This pulled in a whole load of other packages. Next you can start gpsd by typing:
And monitor the output using:
If all has gone well you should get a text output of the parsed NMEA data:
Anyway..that’s just the tip of the iceburg. If you want to learn more have a look at the gpsd website and the bluetooth page i have based this post on.
Doug’s been busy! Good stuff 🙂
Hello,
Have you ever done any job with soc camera?
I am now dealing with a ov9652 camera on mini2440 board. I want it to work with v4l2.
Hi Dean, not yet but it’s on my to do list. I think the best place to start is the friendly arm driver supplied with the mini2440. As far as i can see it needs modifying to work with v4l2. I’ll let you know if i make any progress. Nice site by the way! Cheers, Doug
hello 🙂 i m trying to get bluetooth dongle work on mini2440(ARM-linux). Facing problem in configuring it. mini2440 has bluetooth enabled kernel. I have cross complied bluez-libs and bluez-utils. but unable to get them work on the kit. ldconfig not found. hciconfig… cannot access shared object file is d error i cat. can u pls help? 🙁
You need to be more specific. I know if you use the old kernel and OE from here it will work out of the box: http://repo.or.cz/w/linux-2.6/mini2440.git