Author Topic: 3.5.4.1-alpha2 And Bluetooth Socket Rev G  (Read 5913 times)

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« on: March 19, 2006, 05:20:05 pm »
Hi,

still unable to get Socket CF 2.5 Rev. G properly working with 2.6 kernels on my 860.
It's a serial_cs bluetooth card.
Any hints?

TIA

Ant
« Last Edit: December 09, 2006, 01:17:24 pm by ant »

alexy

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.AlexY.org
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #1 on: March 20, 2006, 10:40:18 am »
This is a known problem in 2.6 kernel tree - patch could not get to the mainline
for several months now. But this can be fixed by aplying the following patch:
http://www.ussg.iu.edu/hypermail/linux/ker...509.2/0072.html
and rebuilding the kernel. I hope someone would include it in OE and creates
a fixed build.

--Alex Y.

Quote
Hi,

still unable to get Socket CF 2.5 Rev. G properly working with 2.6 kernels on my 860.
It's a serial_cs bluetooth card.
Any hints?

TIA

Ant
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119290\"][{POST_SNAPBACK}][/a][/div]

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #2 on: March 20, 2006, 11:54:27 am »
Thanks, Alex Y.
Very interesting...but I fear there's more: it seems to me the bt interface is ttyS1 but the scripts are binding ttyS3...
Is it right so?

EdbO

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #3 on: March 20, 2006, 01:30:45 pm »
In Opie there is missing something :-( In 3.4.5 RC I got my BT-card up and running. Now I got an error that hciattach can't set the port /dev/ttyS3 and initialize the device. The same for /dev/ttyS1

The much stranger because in GPE it works directly after the hciattach.

Did I miss something  

<edit>
How strange    Inserting the BT-card and looking in the logfile with dmesg gives no output. Restarting the pcmcia-service did the trick    . Dmesg gives me the output that the BT-card was attached to /dev/ttyS03, but using /dev/ttyS3 also works.
</edit>
« Last Edit: March 20, 2006, 02:57:21 pm by EdbO »
/**********************************/
Slackware current with Dropline Gnome on the desktop
Zaurus SL-5500  {
   OZ/Opie
   1 GB  and 64MB SD-card
   16 MB and 256 MB CF-card
   Sitecom (Billionton) bluetoothcard
}

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #4 on: March 20, 2006, 06:40:15 pm »
Good news!
All seems now working with 3.5.4.1-test.
Great!

Ant

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #5 on: March 21, 2006, 02:25:50 am »
ant: good to know - thx
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #6 on: April 11, 2006, 10:55:32 am »
Quote
ant: good to know - thx
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Problem is back with 3.5.4.1-test/alpha2.

I did ipkg upgrade yesterday evening but I see there are some new init scripts dated Apr. 11: I'll try these later.

Ant

EDIT:
[a href=\"http://www.kernel.org/pub/linux/utils/kernel/pcmcia/howto.html]http://www.kernel.org/pub/linux/utils/kern...mcia/howto.html[/url]
3.2. pccardctl (replaces cardctl).

but pccardctl segfaults...

EDIT2
actually pccardctl does NOT segfault if invoked with these 2 args:

pccardctl ident
pccardctl info

I think the problem is caused by the permission on /dev/ttyS3: I see different settings in etc/device_table and in /etc/default/devpts.

session log:
...
...
df: /dev/.static/dev: Permission denied
BCSP initialization timed out


Thus, I suppose there is a problem with udev: what is this "failed" dir?

/dev/.udev/failed/class@pcmcia_socket@pcmcia_socket0
« Last Edit: April 11, 2006, 06:13:50 pm by ant »

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #7 on: April 12, 2006, 06:49:24 pm »
After a reflash with the latest alpha2 the card works (at 230400 for the moment).

From hciattach.c

00830         /* Socket Bluetooth CF Card (Rev G) */
00831         { "socket",   0x0104, 0x0096, HCI_UART_BCSP, 230400, 230400, 0,        bcsp },


Just edited /etc/sysconfig/bluetooth
BLUETOOTH=yes
BLUETOOTH_PORT=/dev/ttyS3
BLUETOOTH_PROTOCOL=bcsp
BLUETOOTH_SPEED=230400

et voilà...

The speed should come up to 921600, but I have before to check the speed of the serial port.
(setserial /dev/ttyS3 baud_base 921600  would be optimal but I have to try)


Here another related post:
http://66.249.93.104/search?q=cache:PF5PvA...en&ct=clnk&cd=6

Ant

P.S.

I don't see the dbus_pin_helper mentioned in /etc/bluetooth/hcid.conf, so I tried installing bluez-dbus-bluepin but don't see any difference, the phone disconnects after "spdtool browse". I think it is just a "pairing" issue. The last option would be the "old but good" givepin script.
« Last Edit: April 12, 2006, 08:17:14 pm by ant »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #8 on: December 05, 2006, 08:47:55 am »
Hi:

I have the same card and can't get it to work. Could you provide a summary of what you had to change to get it to work? Which files you edited and where you changed prefs, if you had to install anything to get it to work.

I have an Anycom Bluetooth card that works, but it sticks out, so would like to use the Socket one, since it doesn't stick out, but can't get it working.

Thanks.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #9 on: December 06, 2006, 10:09:22 am »
By clean booting and then restarting PCMCIA services and sticking the Socket card in, I can pair with the phone. This is progress. But how do I dial and connect to the Web?

Using the Anycom card the ppp/peers file I dial uses /dev/rfcomm0

I've determined this needs to be changed to /dev/ttyS3 right?

But now when I dial it says:

warning: write() on stdout returned 0
 -- write failed: No such file or directory

It's not a permissions thing, since it does it if I dial as root too?

What can I do to make this work?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
3.5.4.1-alpha2 And Bluetooth Socket Rev G
« Reply #10 on: December 09, 2006, 11:05:29 am »
Quote
...
What can I do to make this work?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Probably nothing...something is really broken in the oz 3.5.4.1 release...
pcmciautils vs cardctl ... that's the change I guess.

Let's follow up here:

[a href=\"https://www.oesf.org/forums/index.php?showtopic=22066]https://www.oesf.org/forums/index.php?showtopic=22066[/url]

THX

Ant
« Last Edit: December 09, 2006, 01:19:05 pm by ant »