Author Topic: Gprs On C3k  (Read 4758 times)

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« on: January 08, 2005, 11:57:04 am »
Hey eveybody:

I have a SL-5500 and now a C3000. I managed to get my AUDIOVOX
GPRS card to run on the Sl-5500 by replacing the serial_cs.o module.

On the C3000, serial_cs is compiled into the kernel - but I managed
to adapt the serial_cs module and to recompile the kernel.

The modem is now initialized and able to connect to T-Mobile's GPRS
network. So far, so good.

I haven't been able to get any useful data over the network. This
os how my ifconfig looks like:

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
Rx packets: 16  errors: 65  dropped: 0 overruns:0 frame:0
Tx packets: 85  errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3
RX bytes: 552 (552.0 b) TX bytes:5977 (5.8Kb)

The error-counter seems to be the problem. Somehow, most data-packages
get whacked somewhere. But .. where?

This is what I tried so far:

Original kernel: Is not able to initialize modem
serial_cs.c from vanilla 2.4.27: compiled as module: Connects, lots of errors.
serial_cs.c from vanilla 2.4.27: compiled in to kernel: Same
serial_cs from Sharp Kernel, patched, as module: Same
serial_cs from Sharp Kernel, patched, compiled into kernel: Same

Change mtu's / mru's and a lot of other ppp options,  with or without
compression, whatever, result is the same.
I modified /etc/pcmcia/serial.opts with UART and without: same
Change baudrates in ppp script: same

No messages of any specific meaning in regard to that problem from
syslog (yep - I changed configuration accordingly)

I 've started to look for ghosts now :) Any other suggestions?

Michaela
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« Reply #1 on: January 08, 2005, 12:26:37 pm »
Update:

Added DEFLATE Option in kernel: No change

Pinging (any) IP-address looks like this

PING www.spiegel.de  (195.71.11.67)
64 bytes from 195.71.11.67: icmp_seq=7 ttl=237 time=822.6ms
64 bytes from 195.71.11.67: icmp_seq=8 ttl=237 time=912.6ms
64 bytes from 195.71.11.67: icmp_seq=13 ttl=237 time=788.5ms
64 bytes from 195.71.11.67: icmp_seq=21 ttl=237 time=1104.2ms
64 bytes from 195.71.11.67: icmp_seq=22 ttl=237 time=711.1ms
64 bytes from 195.71.11.67: icmp_seq=29 ttl=237 time=855.2ms

etc ..


Wireless with a AmbiCom wireless card works flawlessly.
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« Reply #2 on: January 08, 2005, 02:16:28 pm »
Update II:

Just brought my SL-5500 to a new life. Of course batteries dead and I had
to install my usual tools first. It connected to the GPRS with no problems
and data-transmission was just fine. I used the ppp-scripts from the C3000
to be sure, it's not a script issue.

ifconfig and netstat on the SL-5500 looked ok (no errors) and the routes
are exactly the way they are on the C3000.

I than copied the pppd binary from the SL-5500  to the C3000 and retried.
Guess what: Same problem: A connect, but not usable data transfer (rx
error counter going up).

If its not a script issue, if it is not the pppd, the modem or the provider, that
leaves me with no other choice than the kernel ? Damn.
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« Reply #3 on: January 08, 2005, 06:19:47 pm »
Update III

Went back into the serial_cs Kernel source. Everything seems to be
fine:

kernel reports: ttyS03 at port 0xf60003f8 (irq=135) is a 16C950/954

I am more used to IRQs in the range of 35 though, but read on ..
setserial says: /dev/ttyS3, UART 16550A, Port 0xf60003f8, IRQ: 135

Everything ok.

cat /proc/interrupts gives me a  135:          172       Serial

as soon as I start to play around with the modem. So, interrupts are
assigned and are responding to the card.  But why the hell am I not
getting any useable data over this port .. ?
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« Reply #4 on: January 09, 2005, 12:36:05 pm »
Update IV

Patched kernel-ppp.c to show what is wrong with the incoming
packages. Well, almost all packages come with bad FCS (Frame
Check Sequence), that means the data packet got corrupted
somweher in the serial chain. And I mean almost _all_ (> 90%) of
them are bad.

Change the baudrate from 115200 to 57600, no effect. Replaced
the kernel-serial.c with a version from a sl-5500 kernel, no
effect.

I even slipped the modem-card back into the sl5500 (worked
instantly) and hold the antenna close to the C3000 (I thought
there might be some interference from the C3000)  but the
connection continued to work well in the sl5500.

Conclusion: I have not the slidest idea what the hell is going
on. I know, the scripts are ok, the modem is ok, the provider
works well (all tested with the SL5500), I replaced serial_cs.c
with different versions from different Zaurus and Vanilla kernels,
I replaced serial.c with other Zaurus und vanilla versions, all
to no avail. I tried a different pppd - all gives me the same
result. The only difference is the interrupt, the modem card
is assigned to : On the SL5500 it's IRQ35, on the C3000 its
IRQ 135 (even though that does not seem to be a problem,
see Update III).

I need that modem running. After all, what is a pda good for
if you can't take it outside and still keep connected .. ?
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« Reply #5 on: January 10, 2005, 10:46:05 am »
SOLVED:

I got it: After lots and lots of research, I finally found the solution.

You have to add the following to /etc/pcmcia/serial

echo 1 > /proc/lock_fcs

into the resume section and the corresponding

echo 0 > /proc/lock_fcs

into the suspend and stop sections

Works flawlessly now. I am *happy*
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

MRNUTTY

  • Newbie
  • *
  • Posts: 43
    • View Profile
Gprs On C3k
« Reply #6 on: February 18, 2005, 01:35:19 pm »
misch: i have an c3000 and the Audiovox GPRS card, but i'm quite baffled how to get even as far as your first post. my WIFI card configured through the network configuration wizard ok, but i don't know how to get this card recognized. any help please?
Thanks!

misch

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://www.steyla.com
Gprs On C3k
« Reply #7 on: March 04, 2005, 01:18:17 am »
Quote
misch: i have an c3000 and the Audiovox GPRS card, but i'm quite baffled how to get even as far as your first post. my WIFI card configured through the network configuration wizard ok, but i don't know how to get this card recognized. any help please?
Thanks!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67765\"][{POST_SNAPBACK}][/a][/div]

Go to www.steyla.com, scroll al the way to the bottom, click on special on zaurus computers, then click on 'Connect an Audiovox GPRS modem to a C-3000'

Feel free to contact me, if you can't get it running now.

mm.
---
SL-5500, SL C-3000, Ambicom WL1100C-CF WiFi,
Audiovox RTM-8000 GPRS modem

MRNUTTY

  • Newbie
  • *
  • Posts: 43
    • View Profile
Gprs On C3k
« Reply #8 on: March 04, 2005, 04:53:52 pm »
Quote
Quote
misch: i have an c3000 and the Audiovox GPRS card, but i'm quite baffled how to get even as far as your first post. my WIFI card configured through the network configuration wizard ok, but i don't know how to get this card recognized. any help please?
Thanks!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67765\"][{POST_SNAPBACK}][/a][/div]

Go to www.steyla.com, scroll al the way to the bottom, click on special on zaurus computers, then click on 'Connect an Audiovox GPRS modem to a C-3000'

Feel free to contact me, if you can't get it running now.

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

Jeepers! i thought i responded to this  thanks to your instructions i've been GPRS-ing for a couple of weeks! IT'S great!!!!!!

Thanks!!
John

Bombur

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • http://
Gprs On C3k
« Reply #9 on: May 16, 2005, 10:14:37 pm »
Misch,

I just obtained a Treo 650 and the BT DUN was not working worth a sh*t.  Then I remembered this post and lo and behold the BT DUN started working!  Funny thing is, the BT DUN on my T637 worked just fine.  I never would have figured this out.

Thanks a lot for your perseverence.

J.
Nokia N800 (Intec Gameboy Advance Case)
SL-C3000 Sharp ROM
Socket CF BT card
Socket BT Serial Adapter
SMC CF Wifi  2642W
Socket CF Ethernet (RJ45)
Sharp Camera (CE-AG06)
GoldX 5 in 1 USB cable kit (GXQU-06)
Socket IO USB-Serial Cable
Krusell Horizontic Premium Case
Qualendar
tkc Applications

vc24

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://
Gprs On C3k
« Reply #10 on: August 11, 2005, 11:41:28 am »
Nice job, misch! I've just tried Pretec GPRS CF card and it works perfectly after applying all your hints. Thanks a lot!