OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 Hardware => Topic started by: the_oak on May 21, 2008, 02:53:05 pm

Title: Globalsat Bc-307 Not Working --solved!
Post by: the_oak on May 21, 2008, 02:53:05 pm
When I insert my Globalsat BC-307 card, lsmod reports hidp, rfcomm, l2cap, and bluez modules loaded and in use. Serial_cs also loads, but is not used. So the card is powered, and the light comes on. After a little bit it blinks showing it has acquired a fix.

cardctl ident says:

Socket 0:
    product info: "CF CARD", "GENERIC", "",""
    manfid: 0x0279, 0x950b
    function: 2 (serial)

This card was detecting as a "Dell Truemobile 300 Bluetooth CF Card". So I went to /etc/pcmcia/bluetooth.conf and commented out the entries for that card. I also added the following to /etc/pcmcia/config

card "Globalsat BC-307 GPS"
    version "CF CARD", "GENERIC", "", ""
    manfid 0x0279, 0x950b
    bind "serial_cs"

I restart cardmgr and insert the card, and it shows "New card: Globalsat BC-307 GPS" in the taskbar, but still loads the bluetooth drivers instead of the serial_cs driver (although it loads the serial_cs, it does not use it).

So gpsd -p /dev/ttyS3 -s 4800 and telnet localhost 2947 does not show any output.

Any ideas on what I am doing wrong?

EDIT: In case you didn't notice sig and title, this ia for C1000 running Cacko 1.23

EDIT 2: For solution, see post # 4.
Title: Globalsat Bc-307 Not Working --solved!
Post by: speculatrix on May 21, 2008, 03:46:58 pm
presumably without the card, "lsmod" indicates the bluetooth driver isn't loaded - if it is, can you rmmod it?

can you check the hotplug stuff, not just the /etc/pcmcia options etc, to see if there's an association with a bluetooth card?
Title: Globalsat Bc-307 Not Working --solved!
Post by: the_oak on May 21, 2008, 06:04:07 pm
Yes, as you say, unplugging the card makes the lsmod entries for those modules go away. Which hotplug file should I look in? I am attaching my /etc/hotplug/bluetooth.agent file which appears to modprobe the modules that support bluetooth (ie: rfcomm, l2cap, hidp, and calls the /usr/bin/make_dev.bluez.sh script which I guess starts the bluez module).

But if this is the right file, what do I change?

EDIT: Had to change bluetooth.agent to bluetooth.agent.txt to upload it.
Title: Globalsat Bc-307 Not Working --solved!
Post by: the_oak on May 22, 2008, 09:36:16 am
Solution found:

Check this forum from sourceforge.net's qpegps pages:
http://sourceforge.net/forum/forum.php?thr...forum_id=186974 (http://sourceforge.net/forum/forum.php?thread_id=1402060&forum_id=186974)

In a nutshell, just edit /etc/bluetooth/serial and add this line to the end for Globalsat BC-307:

"CF CARD", "GENERIC", "", "":baud_base 1000000 spd_cust divisor 24

Then in qpegps use this as the "Args":

-p /dev/ttyS3 -s 38400

Works like a charm!!