Hi Chris and barry users,

I have bought a PlayBook (very nice tab).

PlayBook runs on QNX (or BBX for RIM).

The new mobiles will be also under BBX. I don't know if the USB protocol
(for sync, javaloader...) will adapt to BBX devices.

For the moment, the playbook haven't this feature.

Nevertheless, the PlayBook provides an USB interface, but not a
mass-storage interface.

The PlayBook USB interface simulates a network interface with a DHCP
server ; so your computer does a dhcp request, and creates a USB network
interface :
usb0      Link encap:Ethernet  HWaddr 72:d4:f2:78:ea:2c  
          inet adr:169.254.93.26  Bcast:169.254.93.27
Masque:255.255.255.252
          adr inet6: fe80::70d4:f2ff:fe78:ea2c/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:2942 (2.8 KiB)  TX bytes:10048 (9.8 KiB)

Then, you can access to PlayBook data from netbios protocol (with a SMB
client).

It works great...

But...

You have to set the network sharing mode on the PlayBook device :
a) Automatic mode
b) Windows
c) MAC
(and of course, not Linux !)

After usbsnooping... 
a) I don't know how to the playbook determines windows or mac... but it
isn't important :/
b) Emulates a SCSI storage with autorun to install a Windows driver.
The windows driver permits to switch the SCSI interface to network
interface
c) directly network interface (the USB network has to be natif on MAC)


So, set "MAC mode" for a Linux users is disapointing !


I have written a little driver to be able to work in "Automatic mode" or
"windows mode" (of course, it works also in MAC mode).

My userspace driver uses libusb (as barry). My app is so launch by udev
to switch SCSI to USBNET mode.

It works :)


How can I integrate this in Barry project ? Are you interested in this
mini application ? 
The easy way is only create a new directory "playbook" with sources. The
sources are independant of barry project.

Or do you prefer that I use Probe class and your USB wrapper ?

In this case, I have to change a bit the API to permit to filter on
device type : "mobile" or "playbook" (bbos or bbx)


Regards,

Nicolas



------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to