Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bluetooth stack

24 views
Skip to first unread message

Radosław Kujawa

unread,
Jun 8, 2011, 4:29:56 PM6/8/11
to
Hello list,

The NetBSD Bluetooth stack works on Amiga port without almost any changes. I've tested with 3Com 3CRWB6096B PCMCIA card.

To say the truth, it's not very useful, but it's cool to have a working Bluetooth stack on an Amiga. Bluetooth PCMCIA cards are based on serial ports, and by definition are veeery slow. Sometimes Amiga isn't able to cope with the amount of data coming from the PCMCIA serial port, unfortunately btuart does not like it and stops working in such case. I didn't do much testing yet, but I've successfuly paired with some of my devices.

Expect patch soon ;).

# dmesg | tail
pcmcia0: CIS version PC Card Standard 7.1
pcmcia0: CIS info: 3Com, 3CRWB6096B Bluetooth PC Card, ,
pcmcia0: Manufacturer code 0x101, product 0x41
pcmcia0: function 0: serial port, ccr addr f8 mask f
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; maxtwins 7; rdybsy_active io8 irqshare irqlevel
pcmcia0: function 0, config table entry 2: I/O card; irq mask ffff; iomask 4, iospace 0-f; maxtwins 7; rdybsy_active io8 irqshare irqlevel
com0 at pcmcia0 function 0: <3Com, 3CRWB6096B Bluetooth PC Card, , >
com0: ns16550a, working fifo
btuart0: major 32 minor 0
com0: 1 silo overflow, 0 ibuf floods
# btconfig btuart0
btuart0: bdaddr 00:0a:5e:3f:5d:5d flags 0x3<UP,RUNNING>
num_cmd = 1
num_acl = 8, acl_mtu = 192
num_sco = 8, sco_mtu = 64
Device Discovery from device: btuart0 ... 3 responses
1: bdaddr 60:a1:0a:0b:f5:b7
: name "Galaxy Tab"
: class [0x5a020c] Smart Phone <Networking> <Capturing> <Object Transfer>
<Telephony>
: page scan rep mode 0x01
: clock offset 21880
: rssi 0

2: bdaddr c8:bc:c8:b0:bf:4d
: name "Radoslaw Kujawa's MacBook Pro"
: class [0x38010c] Laptop <Capturing> <Object Transfer> <Audio>
: page scan rep mode 0x01
: clock offset 21098
: rssi 0

3: bdaddr 00:25:bc:60:7d:8e
: name "MacBook"
: class [0x38010c] Laptop <Capturing> <Object Transfer> <Audio>
: page scan rep mode 0x01
: clock offset 36644
: rssi 0


--
Best regards,
Radosław Kujawa
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Frank Wille

unread,
Jun 8, 2011, 6:53:49 PM6/8/11
to
Radoslaw Kujawa wrote:

> The NetBSD Bluetooth stack works on Amiga port without almost any
> changes. I've tested with 3Com 3CRWB6096B PCMCIA card.

Congratulations!


> Bluetooth PCMCIA cards are based on serial
> ports, and by definition are veeery slow. Sometimes Amiga isn't able to
> cope with the amount of data coming from the PCMCIA serial port,
> unfortunately btuart does not like it and stops working in such case.

Maybe the btuart driver can be fixed to throttle the transmission? I guess
this problem never appeared before, because no architecture supporting
bluetooth is as slow as Amiga68k. :)


> Expect patch soon ;).

Yes, please. Would be great if anybody else can test the patch then.

--
Frank Wille

Radosław Kujawa

unread,
Jun 26, 2011, 11:58:44 AM6/26/11
to
Hello.

On Jun 9, 2011, at 12:53 AM, Frank Wille wrote:
> Maybe the btuart driver can be fixed to throttle the transmission? I guess
> this problem never appeared before, because no architecture supporting
> bluetooth is as slow as Amiga68k. :)

It works somewhat better when btattach is called with lower speed argument. It is only possible to throttle the transmission with adapters which are attached via btuart or bcsp. And I think that some cards might not work with speed other than 115200.

>> Expect patch soon ;).
>
> Yes, please. Would be great if anybody else can test the patch then.

The following patch adds Bluetooth support to NetBSD/amiga.

bluetoothamiga.diff

Frank Wille

unread,
Jun 26, 2011, 3:32:28 PM6/26/11
to
Radoslaw Kujawa wrote:

> The following patch adds Bluetooth support to NetBSD/amiga.

Looks clean and harmless.
You can commit it as soon as your cvs access is established.

Radosław Kujawa

unread,
Jun 29, 2011, 3:05:41 PM6/29/11
to

On Jun 26, 2011, at 9:32 PM, Frank Wille wrote:

> Radoslaw Kujawa wrote:
>
>> The following patch adds Bluetooth support to NetBSD/amiga.
>

> You can commit it as soon as your cvs access is established.

So, I'll be commiting it soon.

--
Best regards,
Radosław Kujawa

0 new messages