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 |
|
|
|
![]() |
Aug 31 2005, 07:39 AM
Post
#2
|
|
|
Group: Members Posts: 535 Joined: 7-March 04 Member No.: 2,195 |
Thanks for sharing your experience! Now I see how you traced uart lines
Here's a direct link to that picture: http://zaurus-ja.sourceforge.jp/images/sl-...250_removed.jpg Whoever did that had real nerve! I wish someone do the same to C1K/C3K, cause I'm afraid that pcb layout is different. However, it might be very helpful for folks who have 7x0/860 devices. What do you mean under "not stable"? At what baud rate? You may want to try to short flying leads, or maybe even better - shield them to avoid interference. I'm not an electric engineer, but do you have an o'scope to check the signal? As far as CSR module programming goes, take a look at their support web site. They have all required documentation available, so you can easily modify pskeys or write your own code to do that. I wrote some piece awhile ago for Win32 and can make it available on my site, so it can be used as a sample. Just let me know... It seems weird that TX/RX BTUART lines are used in C700. Are you sure in this? You may want to grep for relevant register addresses on the kernel source to see where it gets used. -albertr |
|
|
|
Aug 31 2005, 08:24 AM
Post
#3
|
|
|
Group: Members Posts: 44 Joined: 31-October 04 From: Moscow,Russia Member No.: 5,286 |
QUOTE Thanks for sharing your experience! Now I see how you traced uart lines wink.gif Yes. Exactly. QUOTE Whoever did that had real nerve! I wish someone do the same to C1K/C3K, cause I'm afraid that pcb layout is different. However, it might be very helpful for folks who have 7x0/860 devices. You may try to trace it another way: take devmem2 utility )from for example here http://2x4ever-vpn.compot.ru/zaurus/devmem2/devmem2 - compiled for arm) and write a little scipt to trigger a necessary GPIO pins while zaurus is running and oscilloscoping a PCB around CPU. This shoud trigger TX/RX up and down ever second (for PXA250): # while true; do devmem2 0x40E0001C 0xC00; sleep 1; devmem2 0x40E00028 0xC00; done QUOTE What do you mean under "not stable"? At what baud rate? You may want to try to short flying leads, or maybe even better - shield them to avoid interference. I'm not an electric engineer, but do you have an o'scope to check the signal? Dongle is configured to use CTS/RTS at 230400 speed and works a second or two after that dongle is stops sending anything. When i'm reseting dongle it continues. While it is works for hcitool it doesn't works for PSKEY utility. I'm able to read a length of the PS key but not a contained info. Now i'm soldering dongle to a FFUART to use CTS/RTS and will try to change PS keys. QUOTE It seems weird that TX/RX BTUART lines are used in C700. Are you sure in this? You may want to grep for relevant register addresses on the kernel source to see where it gets used. I'm sure. In the picture i've provided you can see that BTRXD is going to the chip named 2149 282 JRC. Googling on this gives me the folowing datasheet http://www.njr.co.jp/pdf/de/de05035.pdf. This is an amplifier for a zaurus buzzer. While i can't trace where BTTXD goes, grepping source of the linux 2.6 kernel for zaurus gives the folowing defines wich are used in a battery charge code: #define CORGI_GPIO_DISCHARGE_ON (42) /* Enable battery Discharge */ #define CORGI_GPIO_CHRG_UKN (43) /* Unknown Charging (Bypass Control?) */ |
|
|
|
Aug 31 2005, 09:24 AM
Post
#4
|
|
|
Group: Members Posts: 535 Joined: 7-March 04 Member No.: 2,195 |
QUOTE You may try to trace it another way: take devmem2 utility )from for example here http://2x4ever-vpn.compot.ru/zaurus/devmem2/devmem2 - compiled for arm) and write a little scipt to trigger a necessary GPIO pins while zaurus is running and oscilloscoping a PCB around CPU. This shoud trigger TX/RX up and down ever second (for PXA250): # while true; do devmem2 0x40E0001C 0xC00; sleep 1; devmem2 0x40E00028 0xC00; done That's a good idea in case there;s a suspected line. However, probing every line available doesn't seem to be practical unless you want to push your luck QUOTE Dongle is configured to use CTS/RTS at 230400 speed and works a second or two after that dongle is stops sending anything. When i'm reseting dongle it continues. While it is works for hcitool it doesn't works for PSKEY utility. I'm able to read a length of the PS key but not a contained info. Now i'm soldering dongle to a FFUART to use CTS/RTS and will try to change PS keys. Looks like a mising flow control, unless you see frame or parity errors. If that's the case, then BCSP should help. QUOTE I'm sure. In the picture i've provided you can see that BTRXD is going to the chip named 2149 282 JRC. Googling on this gives me the folowing datasheet http://www.njr.co.jp/pdf/de/de05035.pdf. This is an amplifier for a zaurus buzzer. While i can't trace where BTTXD goes, grepping source of the linux 2.6 kernel for zaurus gives the folowing defines wich are used in a battery charge code: #define CORGI_GPIO_DISCHARGE_ON (42) /* Enable battery Discharge */ #define CORGI_GPIO_CHRG_UKN (43) /* Unknown Charging (Bypass Control?) * Interesting... Of course, they can steal GPIO pins, but what they're gonna do with data lines? And how buzzer can send any data to uart? Weird... I'll try to take a look at 2.4.20 kernel source to see if there's any use of btuart data lines I have missed... -albertr |
|
|
|
albertr Stuffing Serial Bluetooth Module Inside C1k Casing Jun 29 2005, 09:04 AM
albertr Here's an output of running a serial BT module... Jun 29 2005, 09:18 AM
speculatrix way to go, Albert, good luck!
could you use t... Jun 30 2005, 04:51 AM
euroclie QUOTE(speculatrix @ Jun 30 2005, 02:51 PM)cou... Jun 30 2005, 05:12 AM
albertr C1K has two LEDs, both are software controlled, AF... Jun 30 2005, 05:17 AM
daniel3000 QUOTE(albertr @ Jun 30 2005, 03:17 PM)As far ... Jun 30 2005, 11:55 PM
speculatrix Here's a discussion I started, which floundere... Jun 30 2005, 02:05 PM
albertr I think doing 860 would be even more challenging t... Jun 30 2005, 04:55 PM
speculatrix QUOTE(albertr @ Jul 1 2005, 01:55 AM)I think ... Jun 30 2005, 10:23 PM
daniel3000 QUOTE(albertr @ Jul 1 2005, 02:55 AM)It looks... Jun 30 2005, 11:59 PM
Boris QUOTE(albertr @ Jul 1 2005, 06:55 AM)It looks... Jul 1 2005, 12:54 AM
speculatrix QUOTE(Boris @ Jul 1 2005, 09:54 AM)Nope, I... Jul 1 2005, 04:21 AM
albertr The backlight mod that you did is pretty cool. Com... Jul 1 2005, 04:52 AM
daniel3000 QUOTE(albertr @ Jul 1 2005, 02:52 PM)As far a... Jul 6 2005, 11:02 PM
Da_Blitz i am still intrested in the internal usb ports tha... Jul 1 2005, 07:35 PM
albertr Sorry, was busy with other projects last weekend..... Jul 6 2005, 04:54 PM
abegaza i like the idea here, but let me get a few things ... Jul 25 2005, 11:16 PM
polito I'm definitely interesting in what comes of al... Jul 29 2005, 11:07 PM
2x4ever Albertr at HPC.RU wrote:
QUOTEBTW, how did you ma... Aug 31 2005, 06:51 AM
2x4ever Any of BTUART pins can be used as usualy GPIO pins... Aug 31 2005, 09:40 AM
albertr Ahh, right! Sorry, I completely overlooked tha... Aug 31 2005, 12:17 PM
2x4ever QUOTE(albertr @ Aug 31 2005, 08:17 PM)Ahh, ri... Sep 1 2005, 06:43 AM

2x4ever It would be interesnting to fetch a datasheer for ... Sep 1 2005, 06:55 AM
speculatrix QUOTE(albertr @ Aug 31 2005, 09:17 PM)Ahh, ri... Sep 1 2005, 07:04 AM
2x4ever QUOTEah, apparently the 255 has 30% lower power co... Sep 1 2005, 07:24 AM
speculatrix http://repair4pda.org/disassembly_sharp.html Sep 1 2005, 07:05 AM
albertr I believe the scoop is a proprientary Sharp's ... Sep 1 2005, 07:18 AM
albertr What about stuart? In case you don;t need SIR.
-al... Sep 1 2005, 07:19 AM
2x4ever QUOTEI believe the scoop is a proprientary Sharp... Sep 1 2005, 09:01 AM
speculatrix QUOTE(2x4ever @ Sep 1 2005, 06:01 PM)Yes it i... Sep 1 2005, 12:18 PM
2x4ever QUOTE(speculatrix @ Sep 1 2005, 08:18 PM)not ... Sep 1 2005, 12:26 PM
speculatrix QUOTE(2x4ever @ Sep 1 2005, 09:26 PM)If i... Sep 1 2005, 01:25 PM
2x4ever QUOTE(speculatrix @ Sep 1 2005, 09:25 PM)I... Sep 1 2005, 02:02 PM
albertr QUOTE(2x4ever @ Sep 1 2005, 05:02 PM)I'm ... Sep 1 2005, 03:03 PM
2x4ever QUOTE(albertr @ Sep 1 2005, 11:03 PM)I though... Sep 1 2005, 03:31 PM
albertr QUOTE(2x4ever @ Sep 1 2005, 06:31 PM)921600 i... Sep 1 2005, 03:55 PM
2x4ever QUOTE(albertr @ Sep 1 2005, 11:55 PM)QUOTE(2x... Sep 1 2005, 04:05 PM
mikekostousov QUOTE(2x4ever @ Sep 2 2005, 12:05 AM)QUOTE(al... Sep 1 2005, 04:29 PM
2x4ever QUOTE(mikekostousov @ Sep 2 2005, 12:29 AM)It... Sep 1 2005, 04:40 PM
mikekostousov QUOTE(2x4ever @ Sep 2 2005, 12:40 AM)I'll... Sep 1 2005, 05:15 PM
albertr QUOTE(mikekostousov @ Sep 1 2005, 08:15 PM)Wh... Sep 1 2005, 05:59 PM
2x4ever Sh*t. My bluetooth dongle is just sudenly stopped ... Sep 2 2005, 10:50 AM
albertr Ugh... In case you will be looking for a Class 2 d... Sep 2 2005, 11:48 AM
2x4ever Sorry, Albert, i don't know why but i can... Sep 2 2005, 12:38 PM
2x4ever I've bought the same billionton class 1 dongle... Sep 2 2005, 12:58 PM
albertr Yeah, BC2-Ext are getting hard to come by, since i... Sep 2 2005, 01:12 PM
2x4ever QUOTE(albertr @ Sep 2 2005, 09:12 PM)Yeah, BC... Sep 2 2005, 01:27 PM
2x4ever I've just bought a new NONAME dongle. I was un... Sep 3 2005, 05:47 AM
albertr It looks close to BC2-Ext reference design, but no... Sep 3 2005, 07:53 AM
2x4ever QUOTE(albertr @ Sep 3 2005, 03:53 PM)It looks... Sep 3 2005, 07:55 AM
albertr QUOTE(2x4ever @ Sep 3 2005, 10:55 AM)Yes, i... Sep 3 2005, 08:36 AM
2x4ever I have another porblem. After switching it to BCSP... Sep 3 2005, 08:05 AM
albertr QUOTE(2x4ever @ Sep 3 2005, 11:05 AM)I have a... Sep 3 2005, 08:44 AM
2x4ever QUOTE(albertr @ Sep 3 2005, 04:44 PM)Do you m... Sep 3 2005, 08:50 AM
albertr I don't use pskeys, but I believe it could be ... Sep 3 2005, 09:42 AM
2x4ever QUOTE(albertr @ Sep 3 2005, 05:42 PM)I don... Sep 3 2005, 10:43 AM
2x4ever Ok. I figured out. At the first look (internet sit... Sep 3 2005, 10:54 AM
albertr Correction: there're 17 soldering pads on the ... Sep 3 2005, 11:04 AM
2x4ever zharit' shashlik - is great All other things ... Sep 3 2005, 11:14 AM
albertr Here's the pics of DELL Truemobile 350 module ... Sep 3 2005, 05:54 PM
Da_Blitz Cant wait to see this working so i can do it mysel... Sep 4 2005, 05:01 PM
2x4ever I've contacted with an official Dell distribut... Sep 5 2005, 03:12 AM
mikekostousov QUOTE(2x4ever @ Sep 5 2005, 11:12 AM)I've... Sep 5 2005, 04:55 AM
2x4ever QUOTE(mikekostousov @ Sep 5 2005, 12:55 PM)QU... Sep 5 2005, 05:22 AM
mikekostousov QUOTE(2x4ever @ Sep 5 2005, 01:22 PM)QUOTE(mi... Sep 5 2005, 05:39 AM
mikekostousov For example:
http://www.maxim-ic.com/quick_view2.c... Sep 5 2005, 05:43 AM

2x4ever QUOTE(mikekostousov @ Sep 5 2005, 01:43 PM)Fo... Sep 5 2005, 06:12 AM
speculatrix QUOTE(mikekostousov @ Sep 5 2005, 02:39 PM)By... Sep 5 2005, 05:45 AM
albertr QUOTE(speculatrix @ Sep 5 2005, 08:45 AM)Sudd... Sep 5 2005, 06:17 AM
speculatrix QUOTE(albertr @ Sep 5 2005, 03:17 PM)QUOTE(sp... Sep 5 2005, 01:14 PM
albertr If BCSP protorol is used, then I don't believe... Sep 5 2005, 06:26 AM
2x4ever QUOTE(albertr @ Sep 5 2005, 02:26 PM)If BCSP ... Sep 5 2005, 06:35 AM
albertr Umm, I wasn't thinking about using the same se... Sep 5 2005, 06:45 AM
2x4ever QUOTE(albertr @ Sep 5 2005, 02:45 PM)Umm, I w... Sep 5 2005, 06:58 AM
speculatrix QUOTE(2x4ever @ Sep 5 2005, 03:58 PM)QUOTE(al... Sep 5 2005, 08:32 AM
2x4ever QUOTE(speculatrix @ Sep 5 2005, 04:32 PM)QUOT... Sep 5 2005, 09:05 AM
mikekostousov QUOTE(2x4ever @ Sep 5 2005, 05:05 PM)QUOTE(sp... Sep 5 2005, 10:14 AM
2x4ever QUOTE(mikekostousov @ Sep 5 2005, 06:14 PM)Ok... Sep 5 2005, 10:21 AM
2x4ever The whole schematic should be a somthing like this... Sep 5 2005, 11:00 AM
mikekostousov QUOTE(2x4ever @ Sep 5 2005, 07:00 PM)The whol... Sep 5 2005, 12:40 PM
albertr Ahh, now I see what you are saying... Sorry, I mis... Sep 5 2005, 03:38 PM
Da_Blitz try typing ledctl on your command line, should giv... Sep 5 2005, 07:09 PM
speculatrix I came across an advert for a company who sell emb... Sep 6 2005, 04:18 AM
2x4ever QUOTE(speculatrix @ Sep 6 2005, 12:18 PM)I ca... Sep 6 2005, 05:25 AM
albertr Can your friend's friend help with getting a h... Sep 6 2005, 05:07 AM
speculatrix QUOTE(albertr @ Sep 6 2005, 02:07 PM)Can your... Sep 6 2005, 05:38 AM
mikekostousov QUOTE(speculatrix @ Sep 6 2005, 01:38 PM)QUOT... Sep 7 2005, 12:25 PM
speculatrix not had a response from my contact, but he tends t... Sep 9 2005, 04:58 AM
speculatrix sorry, still no news Sep 12 2005, 04:15 AM
albertr Just got news from CSR (Thanks, Miguel!) - The... Sep 12 2005, 10:47 AM
2x4ever albertr, i need your help
It's seems that you... Sep 13 2005, 09:32 AM
Da_Blitz any one know if there is a second usb port with tr... Sep 12 2005, 07:03 PM
albertr Umm... weird. Is it in BCSP mode? Can you see if k... Sep 13 2005, 10:02 AM
2x4ever QUOTE(albertr @ Sep 13 2005, 06:02 PM)Umm... ... Sep 13 2005, 10:07 AM
2x4ever By the way: i've tried your desharpised serial... Sep 13 2005, 10:11 AM
albertr If you didn't solder it to ffuart, how about r... Sep 13 2005, 10:17 AM
2x4ever QUOTE(albertr @ Sep 13 2005, 06:17 PM)If you ... Sep 13 2005, 10:27 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 09:53 AM |