Author Topic: Bluez: Billionton Annoying Problems  (Read 8243 times)

merli

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« on: June 06, 2005, 11:13:05 am »
Hello. I got to work billionton BT CF card with Z. I had to edit /etc/pcmcia/serial, installed Bluetooth applet from maslovsky and it works .... but
1) I have to start BT manually /etc/pcmcia/serial start ttyS3....
2) When I want to connect and BT is UP (hcitool scan finds my SE  T610) in network applet I dont see in menu my bluettoth dial-up. I have to go to settings-> network-> edit bluetooth config -> press OK and _then_ in in network connection applet bluettoth dialup is shown.. and working
So internet connection via bluetooth is usable but a bit annoying. Can any1 help?
merli
------
SL-C1000 - pdaxii13 5.3.3 but considering go back to beta1
Wifi D-link DCF-650W CF card - not using
bluetooth Billionton BT CF card and Samsung SGH-i310 GPRS
Pretec Cheetah 133x 4GB SD, Pretec Cheetah 80x 1GB CF

Grimmy

  • Newbie
  • *
  • Posts: 17
    • View Profile
Bluez: Billionton Annoying Problems
« Reply #1 on: June 09, 2005, 06:35:39 am »
Sorry, I don't want to hijack your thread, but I am also having problems with the Billionton card and this seems like an appropriate place to mention it  (I have SL5500 and am running the TKr alpha ROM).

What did you edit in the /etc/pcmcia/serial to get it to work?

I installed the Bluez drivers pinned in this forum, and the card is detected as the Billionton ok...  I followed the instructions here:

https://www.oesf.org/forums/index.php?showt...indpost&p=61877

but when I attempt the "hciattach /dev/ttyS3 bcsp" it fails giving me the error:

Can't set device: No such device.
Can't initialize device: No such device.

If I try your step 1) /etc/pcmcia/serial start ttyS3 the light on top of the card stops flashing?

Any pointers you could give would be appreciated

merli

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #2 on: June 09, 2005, 09:19:45 am »
Quote
Sorry, I don't want to hijack your thread, but I am also having problems with the Billionton card and this seems like an appropriate place to mention it  (I have SL5500 and am running the TKr alpha ROM).

What did you edit in the /etc/pcmcia/serial to get it to work?

I installed the Bluez drivers pinned in this forum, and the card is detected as the Billionton ok...  I followed the instructions here:

https://www.oesf.org/forums/index.php?showt...indpost&p=61877

but when I attempt the "hciattach /dev/ttyS3 bcsp" it fails giving me the error:

Can't set device: No such device.
Can't initialize device: No such device.

If I try your step 1) /etc/pcmcia/serial start ttyS3 the light on top of the card stops flashing?

Any pointers you could give would be appreciated
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83511\"][{POST_SNAPBACK}][/a][/div]

Basically I added to /etc/pcmcia/serial this line

setserial /dev/ttyS3 baud_base 921600

and I had to run it manually ... I dont know why it dont start with insert card ....
dont have time right now to deal with it ... I am using it as I written above:-)
If you will have more problems just ask ... I can e-mail you may configs
merli
------
SL-C1000 - pdaxii13 5.3.3 but considering go back to beta1
Wifi D-link DCF-650W CF card - not using
bluetooth Billionton BT CF card and Samsung SGH-i310 GPRS
Pretec Cheetah 133x 4GB SD, Pretec Cheetah 80x 1GB CF

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Bluez: Billionton Annoying Problems
« Reply #3 on: June 11, 2005, 07:21:53 pm »
Cards are automatically recognised as a bluetooth card if you add an entry for them in /etc/pcmcia/bluetooth.conf . I don't know what other PCMCIA scripts you have through since you are running a custom ROM and the standard BlueZ way of doing things is slightly different to that of the Cacko ROM's way.

With the latest ipk I produced (attached to a post in this section), all the serial initialisation stuff was moved into /etc/pcmcia/bluetooth.
« Last Edit: June 11, 2005, 07:23:33 pm by tumnus »
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

rleao

  • Newbie
  • *
  • Posts: 9
    • View Profile
Bluez: Billionton Annoying Problems
« Reply #4 on: July 03, 2005, 11:13:40 pm »
Sorry to invade this discussion but I am getting crazy with my bluetooth CF:

it is a d-link DCF650BT cacko rom (64-0) with the kernel 2.4.18 (in a SL5500)

i have installed bluez 2.3.2.4.18d and the bluez serial

modified the uart:

"Socket", "CF+ Personal Network Card Rev 2.5":/dev/ttyS3 bcsp 230400
"Bluetooth BT0100M", "", "":/dev/ttyS3 bcsp

hciconfig returns nothing  

cardctl ident:

Socket 0:
  product info: "Bluetooth BT0100M", "", ""
  function: 2 (serial)
Socket 1:
  no product info available

when i do /etc/rc.d/init.rd/bluetooth restart:

# ./bluetooth restart
Shutting down Bluetooth... Done.
Starting Bluetooth... Note: /etc/modules.conf is more recent than /lib/modules/2.4.18-rmk7-pxa3-embedix/modules.dep
Note: /etc/modules.conf is more recent than /lib/modules/2.4.18-rmk7-pxa3-embedix/modules.dep
Can't open serial port: No such device
Can't initialize device: No such device
Done.

setserial also says:

setserial /dev/ttyS3 baud_base 921600
... no such device
if i do ttyS2 in stead I get input/output error

/dev/ttyS3 exists and I have no idea why it's not working

when the pda is booting I can see:
can't initialize serial: no such device

in /etc/pcmcia/serial.opts

case "$ADDRESS" in
*,*,*)
    INFO="Default modem setup"
    # Symbolic link to dialout device
    LINK="/dev/modem"
    # Options for 'setserial'
    SERIAL_OPTS=""
    # Should we create an inittab entry for this port?
 ---->     INITTAB="/sbin/mgetty"
    # Card eject policy options
    NO_CHECK=n
    NO_FUSER=n
    ;;
esac

when I un-comment the INITTAB line, i get rid of the no such device error but in stead I get:

# hciattach /dev/ttyS3 bcsp
BCSP initialization timed out

or:

Shutting down Bluetooth... Done.
Starting Bluetooth... Note: /etc/modules.conf is more recent than /lib/modules/2.4.18-rmk7-pxa3-embedix/modules.dep
Note: /etc/modules.conf is more recent than /lib/modules/2.4.18-rmk7-pxa3-embedix/modules.dep
BCSP initialization timed out
Done.


I would very, very much appreciate any help.

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #5 on: July 04, 2005, 06:20:07 am »
Could it be that the card is powered off.

Please type:
cardctl status

and to put the card alive:
cardctl resume

and after that, all previous commands should work, since the card will be powered on.
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

Rev.Tigger

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #6 on: July 04, 2005, 09:19:55 am »
Hi,  I am struggling to get this billionton card running,  I have followed all the instructions in the forum I can find,  I am running OZ3.5.3 (hentges) and I get the following :

Code: [Select]
root@collie:~# setserial /dev/ttyS3 baud_base 921600
root@collie:~# modprobe hci_uart
Using /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/bluetooth/hci_uart.o
root@collie:~# hciattach /dev/ttyS3 bcsp
Can't get port settings: Input/output error
Can't initialize device: Illegal seek
root@collie:~# cardctl status
Socket 0:
  3.3V 16-bit PC Card
  function 0: [ready]
Socket 1:
  no card

Any ideas?  The card shows up as a Billionton Bluetooth card when inserted.

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #7 on: July 04, 2005, 10:31:36 am »
As far as I can see, you should also
# modprobe bluez

before haciattach
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

Rev.Tigger

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #8 on: July 04, 2005, 10:37:24 am »
Just tried that... and it is the same error,  the modprobe does not give me anything back,  so I assume it is already loaded.

I can't start bluetooth throught init/d either... I just get :

Code: [Select]
root@collie:~# /etc/init.d/bluetooth start
Starting Bluetooth subsystem: hcid sdpdCan't open HIDP control socket: No such file or directory
 hidd rfcomm.
root@collie:~#

Thanks for any help!

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #9 on: July 04, 2005, 12:41:03 pm »
Can you eject and reinsert the card, and post the contents of /var/log/messages while doing so? That might reveal some problems.

Also, to verify what modules are loaded ok, you can launch
# lsmod

Note: I don't have this card, but I assume someone had it working according to first post in this thread.

The problem you are facing is that even ttyS3 (you might also try ttyS03) seems to be recognized, it is not functional when doing the first access attempt, which is the setserial command. Am I rigth?

Thus, you should concentrate to make the setserial command work without errors before proceeding with other more high-level commands like the hciattach and so.
« Last Edit: July 04, 2005, 12:43:14 pm by zmiq2 »
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

Rev.Tigger

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #10 on: July 04, 2005, 01:45:03 pm »
The setserial command works fine without errors,  I only get errors when I do the hciattach.

I will post the logs later as I have to go out this evening now,  thanks for all your help

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Bluez: Billionton Annoying Problems
« Reply #11 on: July 05, 2005, 08:49:46 am »
try to add "sleep 2" before hciattach - maybe card need some time to get working...
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

Rev.Tigger

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #12 on: July 05, 2005, 11:52:05 am »
I tried it, no joy

I am running all these from the command line not a script, untill I get it working

Also I don't seem to have a /var/log/messages on here,  closest I have is lastlog but this appears to be a binary file.

From dmesg I can spot the following bluez stuff :
Code: [Select]
BlueZ Core ver 2.4 Copyright © 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky
BlueZ L2CAP ver 2.3 Copyright © 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky
BlueZ RFCOMM ver 1.1
Copyright © 2002 Maxim Krasnyansky
Copyright © 2002 Marcel Holtmann
BlueZ HCI UART driver ver 2.1 Copyright © 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky

Thank you to everyone for the help!


edit:

In case it helps  :

Code: [Select]
root@collie:~# lsmod
Module                  Size  Used by    Tainted: P
hci_uart               12412   0 (unused)
usbdmonitor             5448   0 (autoclean)
rfcomm                 33512   0 (autoclean)
l2cap                  17316   2 (autoclean) [rfcomm]
bluez                  32632   1 (autoclean) [hci_uart rfcomm l2cap]
sharp_mmcsd_m          25792   2
sa1100_bi              22924   0 (unused)
net_fd                 16636   1
usbdcore               22504   0 [sa1100_bi net_fd]
ipv6                  152344  -1
ipsec                 280008   0
« Last Edit: July 05, 2005, 11:53:27 am by Rev.Tigger »

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Bluez: Billionton Annoying Problems
« Reply #13 on: July 06, 2005, 05:46:11 am »
In order to have /var/log/messages, you may need to start syslogd:
#syslogd

or

/etc/rc.d/init.d/syslog start

(I'm typing from my memory, so use autocompletion in console to find the command properly).

Then, eject/insert the card and see the contents of that file

p.s.- your loaded modules seem ok to me.
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

Grimmy

  • Newbie
  • *
  • Posts: 17
    • View Profile
Bluez: Billionton Annoying Problems
« Reply #14 on: July 06, 2005, 06:40:46 am »
Incidently I have exactly the same problem with OZ-Opie 3.5.3 (Can't initialize device: Illegal seek) and similar problems (different error messages at the hciattatch stage) with Sharp 3.10, Cacko/Crow and TheKompanyROM.

The strange thing is it works fine with Merli's ROM which is a cross between Cacko Hybrid and TheKompanyROM.
« Last Edit: July 06, 2005, 06:47:13 am by Grimmy »