OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

25 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Stuffing Serial Bluetooth Module Inside C1k Casing, share your success stories ...
albertr
post Jun 29 2005, 09:04 AM
Post #1





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Since I haven't yet read/seen any posts about success stories on the subj (except for someone who claimed he added a usb bt dongle, but didn't support it by any tech info/pics), I'm getting ready to perform a first surgery on my C1K. Time permitting, I hope to do it sometime next week (maybe on July 4th holiday weekend).

Here's a few thoughts I have on the subj:
- There's a ffuart wired up to a port on the back of the C1K (so-called sharp i/o port) that has all modem control lines. I'm leaving it as a last resort (if everything else fails), since I want to retain it for rs232 comm.
- There's a btuart in PXA270 that has CTS/RTS control lines, but it's unknown if Sharp traced it on PCB. I would guess that it would make sense to have it traced just in case, i.e. planning for future models with built-in BT, but with Sharp you never know...
- Well, it leaves us with stuart that is wired up to IRDA transmitter/diode, but doesn't have any control lines, so hardware flow control is not possible.

If btuart lines can't be traced, either rs232 or irda has to go. Personally, I don't use IRDA myself, so for me the choice is clear. But not having hardware flow control leaves us with a challange of fighting high interrupt latency of bloated Sharp's kernel to avoid fifo overruns. I took a look at Sharp's serial driver, and as usual with sharp it's ... well, not good. I had troubles with overruns even at modest speeds. Now, the good thing is that it;s Intel PXA270, not Sharp's proprientary hardware, so full tech specs are available. I spend a few hours on "unsharp'ing" the serial driver, so now it seems to run ok. I tested it @ 460800 and not getting overruns anymore. I still need to test it @ 921600 and implement suspend/resume hooks, maybe add some hooks to front LED to show activity, etc.

Anyway, just thought it would be useful to have a dedicated thread where we all can share tech info and success stories. Please feel free to contribute... and I'll update you on status of my surgery.
-albertr
Go to the top of the page
 
+Quote Post
albertr
post Jun 29 2005, 09:18 AM
Post #2





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Here's an output of running a serial BT module connected to my C1K via external rs232 transceiver:

CODE
# cat /proc/tty/driver/serial
serinfo:1.0 driver:5.05c revision:Jun 28 2005
0: uart:PXA UART port:F8100000 irq:22 baud:460800 tx:5675 rx:12368 RTS|CTS|DTR|DSR|CD|RI
1: uart:PXA UART port:F8200000 irq:21 tx:0 rx:0
2: uart:PXA UART port:F8700000 irq:20 tx:0 rx:0
3: uart:16C950/954 port:F60003F8 irq:135 tx:0 rx:0
# btctl -v                  
bt0     00:10:60:a2:cb:8e
       Name: "zaurus"
       Class: 0xB2010C, Computer (Laptop) [Networking,Object Transfer,Audio,Information]
       Scan Mode: discoverable, connectable
       Security: service pair [-auth, -encrypt]
       Packets: DM1 DH1 DM3 DH3 DM5 DH5 HV1 HV2 HV3
       Role: allow switch, remain slave
       Baseband:
               Manufacture: Cambridge Silicon Radio, id: 10
               Features: 1.1 compliant
       Buffers:
               ACL: 8 x 192 bytes
               SCO: 8 x 64 bytes
       Suported features:
               Packet types: 3-slots, 5-slots
               Radio features: RSSI, CQD data rate, paging scheme
               Policy: switch, hold mode, sniff mode, park mode
               Encryption: supported
               Clock modes: slot offset, timing accuracy
               Audio: SCO, HV2, HV3, u-Law log, a-Law log, CVSD, transparent SCO
               Power Control: supported

# cat /proc/tty/driver/serial
serinfo:1.0 driver:5.05c revision:Jun 28 2005
0: uart:PXA UART port:F8100000 irq:22 baud:460800 tx:5800 rx:12752 RTS|CTS|DTR|DSR|CD|RI
1: uart:PXA UART port:F8200000 irq:21 tx:0 rx:0
2: uart:PXA UART port:F8700000 irq:20 tx:0 rx:0
3: uart:16C950/954 port:F60003F8 irq:135 tx:0 rx:0
#


Another thing comes to mind is how to control the power of BT module? Of course, bt draws much less then wi-fi, but still you won't probably want to shorten your battery life more than absolutely necessary. I'm thinking of trying to use some controlled power domain for +3.3V if I can find any inside C1K. I.e. irda diode or maybe sd/mmc slot? Any ideas?

-albertr
Go to the top of the page
 
+Quote Post
speculatrix
post Jun 30 2005, 04:51 AM
Post #3





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



way to go, Albert, good luck!

could you use the control line from one of the LEDs with a PNP transister to control power to the module? Dunno if the C3/C1-000 has the same envelope/email icon + LED?
Go to the top of the page
 
+Quote Post
euroclie
post Jun 30 2005, 05:12 AM
Post #4





Group: Members
Posts: 205
Joined: 5-January 05
From: Paris, France
Member No.: 6,125



QUOTE(speculatrix @ Jun 30 2005, 02:51 PM)
could you use the control line from one of the LEDs with a PNP transister to control power to the module? Dunno if the C3/C1-000 has the same envelope/email icon + LED?

No, the C3k has a hard disk activity LED on the bottom, and a battery charge LED on the top, in the left end of the chromed hinge.

That being said, there's a "Use HDD LED as Email LED" setting in the Light & Power applet, so that LED can probably be controled somehow by the end user...
Go to the top of the page
 
+Quote Post
albertr
post Jun 30 2005, 05:17 AM
Post #5





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



C1K has two LEDs, both are software controlled, AFAIK. One is charging, another is email. I'm thinking of using the email LED to blink on uart activity.

As far as module's power consumption goes, I'll need to find +3.3V or +5V (both would work in my case) with peak load of approx. 50-80mA (@ 3.3V). I'm not sure how IRDA transmitter power is controlled and what's its peak load capability. If it can supply 80mA and can be software controlled (via some GPIO pin?) I can use it. Otherwise I'll need to find other source. If anyone has ideas on what it could be, please let me know...

On a side note, was not able to get it work @ 921600 baud, so I settled on 460800 for now.
-albertr
Go to the top of the page
 
+Quote Post
speculatrix
post Jun 30 2005, 02:05 PM
Post #6





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



Here's a discussion I started, which floundered, about doing the same thing for the Sl-C860
http://www.oesf.org/forums/index.php?showtopic=13238
Go to the top of the page
 
+Quote Post
albertr
post Jun 30 2005, 04:55 PM
Post #7





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



I think doing 860 would be even more challenging than C1K, since if I remember correctly the fifo size of PXA25X is half of that on PXA27X (32 vs 64 bytes).

It looks like there're only two of us on this forum who are interested in the subject sad.gif
-albertr
Go to the top of the page
 
+Quote Post
speculatrix
post Jun 30 2005, 10:23 PM
Post #8





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(albertr @ Jul 1 2005, 01:55 AM)
I think doing 860 would be even more challenging than C1K, since if I remember correctly the fifo size of PXA25X is half of that on PXA27X (32 vs 64 bytes).

true, but even a slow-ish bluetooth link is usable. I can understand why people bought the bluetooth air-cable, to make use of the serial port now. Pity they're relatively rare 2nd hand, and not cheap.

QUOTE
It looks like there're only  two of us on this forum who are interested in the subject sad.gif
-albertr


three, if you include someone putting one inside a 6000 to turn it into a 6000W, so far he's put a module inside, but struggling with the power I think. But yes, a surprisingly low number considering how people rave about a clamshell with built-in wireless.
Go to the top of the page
 
+Quote Post
daniel3000
post Jun 30 2005, 11:55 PM
Post #9





Group: Members
Posts: 1,002
Joined: 28-April 05
From: Germany
Member No.: 7,027



QUOTE(albertr @ Jun 30 2005, 03:17 PM)
As far as module's power consumption goes, I'll need to find +3.3V or +5V (both would work in my case) with peak load of approx. 50-80mA (@ 3.3V). I'm not sure how IRDA transmitter power is controlled and what's its peak load capability. If it can supply 80mA and can be software controlled (via some GPIO pin?) I can use it. Otherwise I'll need to find other source. If anyone has ideas on what it could be, please let me know...
*


As a power source, have a look at the CF ports. It should have 3.3V and maybe also 5V available.

I have developed a backlight upgrade for the HP 200LX which needed quite some current at 5V. I used the 5V source of the PCMCIA port of the 200LX and a GPIO line of the processor to control power using a software driver with hotkey (see http://www.daniel-hertrich.de/backlight/install ).

The "power switch" was in that case built into the backlight driver chip, which I could directly connect the GPIO pin to.

For the Zaurus BT project, a simple trnsistor circuit or something like that could combine a GPIO line for switching and the power source to a GPIO-controlled high-current power source.

daniel
Go to the top of the page
 
+Quote Post
daniel3000
post Jun 30 2005, 11:59 PM
Post #10





Group: Members
Posts: 1,002
Joined: 28-April 05
From: Germany
Member No.: 7,027



QUOTE(albertr @ Jul 1 2005, 02:55 AM)
It looks like there're only  two of us on this forum who are interested in the subject sad.gif
*



Oh, not at all! I'm very interested in this project.
The only problem for me is that I have only one C3000 and I use it for my daily work, so I cannot risk any damage to it. So I have to wait until I have a second (backup) unit some day to make such exprtiments.

I had and still have several HP 200LX units which I did many hardware hacks on (backlight, LED front light, ear phones output, IR port shielding against EMI, memory and speed upgrades, and recently of course the idea came up to attach a bluetooth module to the serial port :-)

daniel
Go to the top of the page
 
+Quote Post
Boris
post Jul 1 2005, 12:54 AM
Post #11





Group: Members
Posts: 29
Joined: 23-April 05
Member No.: 6,972



QUOTE(albertr @ Jul 1 2005, 06:55 AM)
It looks like there're only  two of us on this forum who are interested in the subject sad.gif

Nope, I'm sure there are a lot of interest in it. I'll follow your's research to stick BT module in my C3000 (if it will fit in it).
Go to the top of the page
 
+Quote Post
speculatrix
post Jul 1 2005, 04:21 AM
Post #12





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(Boris @ Jul 1 2005, 09:54 AM)
Nope, I'm sure there are a lot of interest in it.  I'll follow your's research to stick BT module in my C3000 (if it will fit in it).


might be harder in the C3000 - the C1000 has all the space where the microdrive would be.
Go to the top of the page
 
+Quote Post
albertr
post Jul 1 2005, 04:52 AM
Post #13





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



The backlight mod that you did is pretty cool. Complexity-wise, adding a serial bluetooth module shouldn't be that hard. Hardware changes are minimum, it's mostly all software to get it run reliably. As far as CF slot goes, I think it's 3.3V only in C1K (860 might have both 3.3V & 5V). Regardless, it's a dedicated power domain and it's controlled by pcmcia sybsystem, i.e. power is on on insert/resume pcmcia events, power is off on remove/suspend events, so it can't be used for other purposes which require its own power control.

I'm still not sure where to draw power from. I would like to have software control over it. If nothing suitable found, I might end up pumping it from sd/mmc slot (assuming that sharp's sdmmc driver didn't turn it off when card is removed). Any other ideas?
-albertr
Go to the top of the page
 
+Quote Post
Da_Blitz
post Jul 1 2005, 07:35 PM
Post #14





Group: Members
Posts: 1,565
Joined: 7-April 05
From: Sydney, Australia
Member No.: 6,806



i am still intrested in the internal usb ports that could be used (the pxa had 3 host ports and one client that could be multiplexed with one of the host ones) however these werent balanced lines so were basically the D+ line without the D- one so some dongles may not work with it

i belive thats what the guy who did the mod connected it to. which would be great as then i could have another usb port for bluetooth, wifi or anything else i like, i do remeber him mentioning power bieng a problem but you can get that from the usb mini port
Go to the top of the page
 
+Quote Post
albertr
post Jul 6 2005, 04:54 PM
Post #15





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Sorry, was busy with other projects last weekend....
-albertr
Go to the top of the page
 
+Quote Post

25 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th August 2014 - 06:24 PM