martes, 7 de octubre de 2008

L2cap signalling / 1 way

The testing of all the l2cap lower layer has started.

After pairing, we are ready to receive ACL packets, that after reassembling them, become L2cap frames, which the ones of type G, are already user/application data.

But first of all are the C type frames (signals), which will establish a L2cap Channel, this channel will be the carrier of  those G type frames.

So after theory the facts: the ACL data is reassembled(not well tested as the first L2CAP frame I got could be fitted in 1 ACL packet :-/) and forwarded to L2CAP layer parsing it and handling the first L2cap C Frame, which is the major achievement these last days.

This first signal requests us to open a channel, so the next step is to check whether there is a l2cap bound socket for accepting it and replying with another signal frame, which will need to be segmented(if big enough) and sent as ACL...

sábado, 27 de septiembre de 2008

Whisper BeNet documentation released

The Documentation written to convert the old version of BeNet into Whisper has been released in the OsDrawer project page.

It is an extract of the whole tesis written in 2004 in PDF format.

The sources are not yet committed. But I have been collecting them and ensure that they build and all resources are available(bitmaps). I still need to make a full review of all code to avoid any legal issue.

Whisper BeNet runs in ZETA 1.2, due to Haiku proximity there is no plan(for me) to make efforts to bring it back to R5 but to switch to Haiku directly.

The sources will be available during November.

miércoles, 24 de septiembre de 2008

Bluetooth update & Hardware donation

It has been a long time without any update on the bluetooth Stack.

During these 2 months all the activity has been centered in implementing the L2cap protocol (and of course, going to the beach). The analog protocol in a TCP/IP Stack would be the TCP and UDP protocol, So it is not a trivial task.

The good point in all this is that after having some license conversation with the main FreeBSD developer(Maksim Yevmenkin) and the Haiku developers maillist, I am reusing some BSD code adapted to the Haiku kernel API, which is saving a lot of development time.

I divided the l2cap protocol in 2 sublayers (lower/higher). The whole lower is finished and currently I am completting the higher, which will merge with the final sockets interface accomplishing the last milestone.(FINALLY!)

By other hand Ineed to thank another hardware donation from......


With a huge delay thanking him, Luroh sent me a couple of bluetooth PCMCIA cards and one Wireless. When I got them I was almost ready to stop the development of the stack to code the transport drivers for those  cards, but Haiku hasnt PCMCIA support :(... so something more in my TODO-list. But anyway the cards will be useful as they duplicate the number of bluetooth devices I own.

 Thanks Luroh!

miércoles, 23 de julio de 2008

Pairing! 4th milestone


Yes, another of my fuzzy and unreadeable pics. The camera just run out of batery this time and could not get a better pic.

Remember about Mavin? this time it is added(if readeable) in the Trusted devices list of my phone after passing through a parinig process, typing pincodes and exchanging an encryption key.

In the screenshot can be seen the pincode window for the user(to type the pincode that has to match the phone typed one) and another litte window which is meant to inform that the pairing Connection has been successful.

This time I have to thank Monni that has been sending me patches with some code supporting part of the pairing process :)