Author Topic: Stuffing Serial Bluetooth Module Inside C1k Casing  (Read 409240 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #135 on: February 16, 2006, 05:30:49 am »
Quote
Quote
This might have been mentioned already, but the following link was posted on Mobile Daily News yesterday:

http://www.piro.hopto.org/~piro/pukiwiki/p...%A2%B2%BD%5D%5D

Basically, someone took apart a USB BT dongle and stuffed it into his C3000.

- ashikase
- anpachi, gifu, japan
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114958\"][{POST_SNAPBACK}][/a][/div]

This looks very interesting and promising!
However, I can only see the pictures and not read any Japanese!
What would be of interest to me:

* How to connect the BT module correctly to the USB port without making the USB port unusable for other devices?

* Where to connect the switch?

* Which kind of BT modules can be used (chipset...)?

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


well, he said the usb cant be used while bluetooth is being used. i guess he plugged the bt into the usb port at the back you see a small opening beneath the usb port and there is a lot of wiring from the bt chip to that opening slot. but the blue light beneath the ok button is so cool
« Last Edit: February 16, 2006, 05:31:56 am by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #136 on: February 16, 2006, 07:46:39 am »
Umm, so he just plugged it into the USB OTG port?

What is that small thing he planted under OTG port connector? Is it a hardware switch?

These pictures are really bad quality - it's hard to see anything    
-albertr
« Last Edit: February 16, 2006, 07:50:58 am by albertr »

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #137 on: February 16, 2006, 06:06:11 pm »
to me it looks like he just paralelled the bluetooth adaptor to the usb port, with a simple very-low-profile sliding switch to cut  between the two.  he had to cut two holes, one for the blue led, the other for the switch.

I'd say it's a lot better than nothing...

but from what albertr has said, there's a spare usb host port in the 1000/3x00 which would be much better!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #138 on: February 16, 2006, 10:20:38 pm »
Yes, according to the documentation, there's one. I even can see it on the pictures here:
http://www.piro.hopto.org/~piro/pukiwiki/p...%A2%B2%BD%5D%5D

I'll try to find some time to open up my C1K and solder flying leads to it. I think that the kernel needs to be modified to enable this port, too.

The BTUART is a little more difficult. I don't know the exact location for its lines, but I have a good guess where they could be. This UART has four lines - transmit, receive and two lines which could be used for hardware flow control. In case of BCSP, hardware flow control is not used, so these two lines could be re-purposed as GPIO lines and could be used to control power on/off thru software, for instance.
-albertr
« Last Edit: February 16, 2006, 10:22:33 pm by albertr »

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #139 on: February 16, 2006, 11:56:44 pm »
cant wait and see if the kernel needs recompiling, hopefully not, i have a bt dongle that is ultra tiny, from my belkin bt mouse purchase, and I will free up just enough room with the microdrive-->cf upgrade. I am rready to rock provided we can get say tetsus kernel recompiled or cacko with special kernel compiled.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #140 on: February 19, 2006, 02:26:06 am »
albertr: i am studying electrical egineering at the momont so if you need a hand just e-mail me, i am very intrested in the posability of another usb host port thot has been routed somewhere on board, i just hope this is HOST 2 and not HOST1 or 3 (the CPU has 3 USB HOST controllers on it, but only one meets the USB spec, the other two are missing the d- line as they are intended to be  connected to on board devices)
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #141 on: February 19, 2006, 11:56:55 am »
I might be wrong, but I thought that all usb hosts ports on PXA have both data signal lines? Sharp has traced data lines for port 1. It has differential signals, which I thik is a good thing, since doesn't require additional logic to connect it to usb device. Only data lines are traced, power control is not.

Just a quick status update: I've opened up my C1K today, and oh boy, these lines are tiny! It would take a really steady hand to solder flying leads to it.
I'll try to do my best soldering and hopefully not to destroy the pcb, Then usb host driver needs to be modified to enable this port.
-albertr

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #142 on: February 19, 2006, 01:50:22 pm »
Quote
I might be wrong, but I thought that all usb hosts ports on PXA have both data signal lines? Sharp has traced data lines for port 1. It has differential signals, which I thik is a good thing, since doesn't require additional logic to connect it to usb device. Only data lines are traced, power control is not.

Just a quick status update: I've opened up my C1K today, and oh boy, these lines are tiny! It would take a really steady hand to solder flying leads to it.
I'll try to do my best soldering and hopefully not to destroy the pcb, Then usb host driver needs to be modified to enable this port.
-albertr
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115337\"][{POST_SNAPBACK}][/a][/div]

/me waits patiently.

also we could get a usb router chip and just run an internal usb router for both bt and a usb connection(no kernel mod needed), and yes found the schematics for it already. As for room switching to a cf type 1 vs type 2 micro-drive will free room for this(on a 3100 of course)
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #143 on: February 20, 2006, 12:32:13 am »
i may be wrong i shold break out the data sheet and double cheak this (give me a sec) Ok, it looks like both USB HOST 1 and 2 are differential but number 3 is not.

i am trying to find a usb hub small enogh to fit in my case however i think i should just build a new case bottom and have about 3 usb ports and another CF and SD slot ()

albert: did you find port 1 or are you doing what you saw on the site (he uses port 2 which is multiplexed with the client controller) if so i NEED pics as i will solder as soon as they arrive (i have a soldering iorn for smt and small pitch work)
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #144 on: February 20, 2006, 01:49:59 am »
Quote
albert: did you find port 1 or are you doing what you saw on the site (he uses port 2 which is multiplexed with the client controller) if so i NEED pics as i will solder as soon as they arrive (i have a soldering iorn for smt and small pitch work)

Soldering is done, but driver doesn't work yet (it crashes the Z every time I'm trying to
initialize it). I'll take another look today and let you all know. Pictures and schemantics will be provided, of course, when it works.
-albertr

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #145 on: February 20, 2006, 08:21:52 am »
I will break out a descrete parts list for a usb hub sometime tonight, right now its work time.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #146 on: February 21, 2006, 09:09:47 am »
Just a quick status update: the driver works now, but it can't see the usb device connected to port 1.  I'm positive that wiring is done correctly, so it must be something else I'm missing. I'll be busy with other projects in the next few days, so have to put this one on hold now...
-albertr

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #147 on: February 21, 2006, 08:22:22 pm »
Umm, this is getting more and more interesting... Actually, I was testing with CSR bt04-ext bluetooth module only and it looks like it might have some problems with usb 1.1 ohci, but at least it seems that data lines are working, i.e.:

Code: [Select]
Feb 21 20:12:12 c1000 user.debug kernel: hub.c: port 1, portstatus 100, change 1, 12 Mb/s
Feb 21 20:12:12 c1000 user.debug kernel: hub.c: port 1 connection change
Feb 21 20:12:12 c1000 user.debug kernel: hub.c: port 1, portstatus 100, change 1, 12 Mb/s
Feb 21 20:12:12 c1000 user.debug kernel: hub.c: port 2, portstatus 103, change 0, 12 Mb/s

I'm no expert in usb protocol specs, so not sure why nothing happens after connection change. I'll try some other usb device and see if it would make any difference.
-albertr

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #148 on: February 21, 2006, 09:15:24 pm »
IT WORKS WORKS WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Code: [Select]
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1 connection change
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 1, portstatus 103, change 10, 12 Mb/s
Feb 21 21:03:08 c1000 user.info kernel: hub.c: USB new device connect on bus1, assigned device number 4
Feb 21 21:03:08 c1000 user.debug kernel: usb.c: kmalloc IF c3b3cae0, numif 1
Feb 21 21:03:08 c1000 user.debug kernel: usb.c: new device strings: Mfr=0, Product=0, SerialNumber=1
Feb 21 21:03:08 c1000 user.debug kernel: usb.c: USB device number 4 default language ID 0x409
Feb 21 21:03:08 c1000 user.info kernel: SerialNumber: KJLee
Feb 21 21:03:08 c1000 user.debug kernel: usb.c: unhandled interfaces on device
Feb 21 21:03:08 c1000 user.warn kernel: usb.c: USB device 4 (vend/prod 0x967/0x204) is not claimed by any active driver.
Feb 21 21:03:08 c1000 user.emerg kernel:   Length              = 18
Feb 21 21:03:08 c1000 user.emerg kernel:   DescriptorType      = 01
Feb 21 21:03:08 c1000 user.emerg kernel:   USB version         = 1.10
Feb 21 21:03:08 c1000 user.emerg kernel:   Vendor:Product      = 0967:0204
Feb 21 21:03:08 c1000 user.emerg kernel:   MaxPacketSize0      = 8
Feb 21 21:03:08 c1000 user.emerg kernel:   NumConfigurations   = 1
Feb 21 21:03:08 c1000 user.emerg kernel:   Device version      = 1.32
Feb 21 21:03:08 c1000 user.emerg kernel:   Device Class:SubClass:Protocol = 00:00:00
Feb 21 21:03:08 c1000 user.emerg kernel:     Per-interface classes
Feb 21 21:03:08 c1000 user.emerg kernel: Configuration:
Feb 21 21:03:08 c1000 user.emerg kernel:   bLength             =    9
Feb 21 21:03:08 c1000 user.emerg kernel:   bDescriptorType     =   02
Feb 21 21:03:08 c1000 user.emerg kernel:   wTotalLength        = 0027
Feb 21 21:03:08 c1000 user.emerg kernel:   bNumInterfaces      =   01
Feb 21 21:03:08 c1000 user.emerg kernel:   bConfigurationValue =   01
Feb 21 21:03:08 c1000 user.emerg kernel:   iConfiguration      =   00
Feb 21 21:03:08 c1000 user.emerg kernel:   bmAttributes        =   80
Feb 21 21:03:08 c1000 user.emerg kernel:   MaxPower            =  500mA
Feb 21 21:03:08 c1000 user.emerg kernel:
Feb 21 21:03:08 c1000 user.emerg kernel:   Interface: 0
Feb 21 21:03:08 c1000 user.emerg kernel:   Alternate Setting:  0
Feb 21 21:03:08 c1000 user.emerg kernel:     bLength             =    9
Feb 21 21:03:08 c1000 user.emerg kernel:     bDescriptorType     =   04
Feb 21 21:03:08 c1000 user.emerg kernel:     bInterfaceNumber    =   00
Feb 21 21:03:08 c1000 user.emerg kernel:     bAlternateSetting   =   00
Feb 21 21:03:08 c1000 user.emerg kernel:     bNumEndpoints       =   03
Feb 21 21:03:08 c1000 user.emerg kernel:     bInterface Class:SubClass:Protocol =   ff:ff:ff
Feb 21 21:03:08 c1000 user.emerg kernel:     iInterface          =   00
Feb 21 21:03:08 c1000 user.emerg kernel:     Endpoint:
Feb 21 21:03:08 c1000 user.emerg kernel:       bLength             =    7
Feb 21 21:03:08 c1000 user.emerg kernel:       bDescriptorType     =   05
Feb 21 21:03:08 c1000 user.emerg kernel:       bEndpointAddress    =   81 (in)
Feb 21 21:03:08 c1000 user.emerg kernel:       bmAttributes        =   02 (Bulk)
Feb 21 21:03:08 c1000 user.emerg kernel:       wMaxPacketSize      = 0040
Feb 21 21:03:08 c1000 user.emerg kernel:       bInterval           =   00
Feb 21 21:03:08 c1000 user.emerg kernel:     Endpoint:
Feb 21 21:03:08 c1000 user.emerg kernel:       bLength             =    7
Feb 21 21:03:08 c1000 user.emerg kernel:       bDescriptorType     =   05
Feb 21 21:03:08 c1000 user.emerg kernel:       bEndpointAddress    =   02 (out)
Feb 21 21:03:08 c1000 user.emerg kernel:       bmAttributes        =   02 (Bulk)
Feb 21 21:03:08 c1000 user.emerg kernel:       wMaxPacketSize      = 0040
Feb 21 21:03:08 c1000 user.emerg kernel:       bInterval           =   00
Feb 21 21:03:08 c1000 user.emerg kernel:     Endpoint:
Feb 21 21:03:08 c1000 user.emerg kernel:       bLength             =    7
Feb 21 21:03:08 c1000 user.emerg kernel:       bDescriptorType     =   05
Feb 21 21:03:08 c1000 user.emerg kernel:       bEndpointAddress    =   83 (in)
Feb 21 21:03:08 c1000 user.emerg kernel:       bmAttributes        =   03 (Interrupt)
Feb 21 21:03:08 c1000 user.emerg kernel:       wMaxPacketSize      = 0008
Feb 21 21:03:08 c1000 user.emerg kernel:       bInterval           =   01
Feb 21 21:03:08 c1000 user.debug kernel: usb.c: kusbd: /sbin/hotplug add 4
Feb 21 21:03:08 c1000 user.debug kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s
Feb 21 21:03:08 c1000 user.notice /sbin/hotplug: arguments (usb) env (ACTION=add DEBUG=kernel OLDPWD=/ HOME=/ DEVFS=/proc/bus/usb PATH=/bin:/sbin:/usr/sbin:/usr/bin TYPE=0/0/0 INTERFACE=255/255/255 PRODUCT=967/204/132 PWD=/etc/hotplug DEVICE=/proc/bus/usb/001/004)
Feb 21 21:03:09 c1000 user.notice /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Feb 21 21:03:09 c1000 user.notice /etc/hotplug/usb.agent: ... no modules for USB product 967/204/132

Looks like CSR BC4-ext has a problem with OHCI, I'll try to contact CSR regarding possible firmware updates. Too bad, since the module is very small (could be nice fit for Z) and supports high transmittion speeds.
I wired a Prism3-based 802.11b usb module and it ...

WORKS WORKS WORKS WORKS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Ok, I'll try to make some hi-res pictures and provide schemantics this weekend.
-albertr

Boris

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Stuffing Serial Bluetooth Module Inside C1k Casing
« Reply #149 on: February 21, 2006, 09:23:15 pm »
Quote
I wired a Prism3-based 802.11b usb module and it ...

WORKS WORKS WORKS WORKS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Man, you rule!