Linux - HOWTO (With Stats)

Status
Not open for further replies.
Did you send those commands to the first port ?

As for the linksys stuff - don't waste your time - it doesn't include the Vodacom/Vodafone stuff :(

Hey tux,

Ok ... using the 3rd serial port of the Huawei card you can get status updates regarding the connection.

I see 4 updates sent...

^RSSI:n <= appears to be the receive signal strength, what n means i'm not sure
^DSFLOWRPT:n,n,n,n,n,n,n <= no clue what this is
^BOOT:n,n,n,n,n <= no clue what this is
^MODE:n,n <= here i get 5,4 or 5,5 ..... the light changes from blue to bluegreen respectively. This may be the technology being used indicator?

The commands... both return errors.
GPRS Only - AT^SYSCFG=13,1,3FFFFFFF,2,4
3G Only - AT^SYSCFG=14,1,3FFFFFFF,2,4

I'm going to hack around with the Linksys code and see what the exact command is it issues to the card to change modes.



-WP
 
Did you send those commands to the first port ?

As for the linksys stuff - don't waste your time - it doesn't include the Vodacom/Vodafone stuff :(

Yep, to the first port before the cgdcont command.

Appears the huawei e620 tries for the highest possible speed automagically depending on if its supported.

The linksys source has got a command to stick the huawei into gprs only mode, it looked like a ^SYSINFO command or something .... must just decipher it, appears to be enclosed in a if/for/while/do loop of sorts.


check in WRT54G3G-ST_v2.00.4_0809_US/release/src/router/pcmcia-cs-3.2.8/etc/huawei_gprs_net
 
hhhmmmm - mine didn't have that - time to re-extract....

Yep, to the first port before the cgdcont command.

Appears the huawei e620 tries for the highest possible speed automagically depending on if its supported.

The linksys source has got a command to stick the huawei into gprs only mode, it looked like a ^SYSINFO command or something .... must just decipher it, appears to be enclosed in a if/for/while/do loop of sorts.


check in WRT54G3G-ST_v2.00.4_0809_US/release/src/router/pcmcia-cs-3.2.8/etc/huawei_gprs_net
 
Hey Tazz Tux

Talk about drawing the short straw: Vodacom swopped me a Huawei card. It ain't working well in Linux - I get error messages - I'm gonna try plugging in my Samsung D600 and see what happens. BTW, if I insert a flash disk (on which the conf files are loaded), how do I see what's on it from the root console? Remember IPCop doesn't have a fancy GUI, all you get is the web interface for setup, and the console for maintenance. Reminds me of DOS, except now I don't know any of the commands!

I notice the huawei is conspicuously absent from your setup :D

Let you know how it's going....
 
Hey all,

I'm having a problem inserting a module into the kernel in Ubuntu. I've compiled to create nozomi.ko and everything goes smoothly until i want to insmod. This is what happens:

Code:
root@****:/home/ploempie/nozomi# insmod nozomi.ko
insmod: error inserting 'nozomi.ko': -1 Unknown symbol in module

Does anyone know how i can get this module into the kernel?

Thanks
Pp
 
Anyone? OK I'm up on my cell (D600) and GPRS. Connected Laptop>Wireless>Wireless Access Point>Ethernet>IPCop>D600>Vodacom. IPCop calls the port USB ACM0. No luck with the Huawei card, though. When I plug it into IPCop, Linux reports the following:

Code:
cardmgr[140]: socket 0:CardBus hotplug device
kernel: hub.c: new USB device 02:00.0-1, assigned address 2
kernel: usb.c: USB device 2 (vend/prod 0x12d1/0x1001) is not claimed by any active driver.

Any advice, where to from here?
 
Use ssh or something to get to the "command prompt" or shell. Then type
Code:
modprobe usbserial vendor=0x12d1 product=0x1001
and you should have a port or three. First unload the module with rmmod if it's loaded :)

Laterz !

Anyone? OK I'm up on my cell (D600) and GPRS. Connected Laptop>Wireless>Wireless Access Point>Ethernet>IPCop>D600>Vodacom. IPCop calls the port USB ACM0. No luck with the Huawei card, though. When I plug it into IPCop, Linux reports the following:

Code:
cardmgr[140]: socket 0:CardBus hotplug device
kernel: hub.c: new USB device 02:00.0-1, assigned address 2
kernel: usb.c: USB device 2 (vend/prod 0x12d1/0x1001) is not claimed by any active driver.

Any advice, where to from here?
 
Hey all,

I'm having a problem inserting a module into the kernel in Ubuntu. I've compiled to create nozomi.ko and everything goes smoothly until i want to insmod. This is what happens:

Code:
root@****:/home/ploempie/nozomi# insmod nozomi.ko
insmod: error inserting 'nozomi.ko': -1 Unknown symbol in module

Does anyone know how i can get this module into the kernel?

Thanks
Pp

Tazz??? Anyone???


EDIT: Up and running in Ubuntu. I had to copy nozomi.ko to the hotplug dir and then insmod it. also has to edit nozomi.c and remove a few lines.
 
Last edited:
Anyone know of a simple app allowing one to send one or more AT commands to your modem/datacard ?

The reason being, I've discovered that the AT+COPS command also "locks" my card to a particullar network..

For example: AT+COPS=1,2,"65501",0 not only puts it into 2G only mode, it also puts it into "Vodacom only" mode.. this lasts indefintely , i.e., if I shove a MTN simcard in, it will not init... I need to run AT+COPS=1,2,"65510",0 to put it into "MTN 2G only" mode..

It would be cool, if I could just run a simple command which sets the card's modes without performing a dialup...

I can easily do this with minicom, but I don't want to have to type AT+COPS=xx etc.. each time...

Any clever ideas? :)
 
You are going to kill yourself over this. If the serial port is setup and working (which by this stage it is :D), then these commands should work:

Code:
echo "AT+COPS=1,2,"65501",0 > /dev/<serial_port>

and

echo "AT+COPS=1,2,"65510",0 > /dev/<serial_port>
Replace <serial_port> with the port and you are a for away !

Sometimes for some reason - these commands don't work. I know you can get minicom to read commands from the command line, which we will do if this doesn't work :)

So you can make a simple file that contains the following,

vodacom.sh:
Code:
#!/bin/bash
echo "AT+COPS=1,2,"65501",0 > /dev/<serial_port>

chmod +x vodacom.sh
./vodacom.sh

Laterz !

Anyone know of a simple app allowing one to send one or more AT commands to your modem/datacard ?

The reason being, I've discovered that the AT+COPS command also "locks" my card to a particullar network..

For example: AT+COPS=1,2,"65501",0 not only puts it into 2G only mode, it also puts it into "Vodacom only" mode.. this lasts indefintely , i.e., if I shove a MTN simcard in, it will not init... I need to run AT+COPS=1,2,"65510",0 to put it into "MTN 2G only" mode..

It would be cool, if I could just run a simple command which sets the card's modes without performing a dialup...

I can easily do this with minicom, but I don't want to have to type AT+COPS=xx etc.. each time...

Any clever ideas? :)
 
Last edited:
Hey AK65,

When you loaded/inserted the D600 can you show the log of what happened ?

Laterz !

Sure thing

Will post later when I get home....
It sure is frustrating. All I know are old dos commands, and I have this text environment that I know is very powerful, if I knew what the hell to do. For example, I don't know how to copy a file onto the machine. I don't know what I am looking at either when I call for a directory. I am trying, but the curve is steep. I'll be trawling for resources like a Linux command reference......

What I surmise is that I will have to do some driver and script 'surgery' once I know what the hell everything is and what it's doing....

It's a bit like the old PC lab at varsity before the advent of Windows. All we had was a reference DOS manual and a dual floppy drive machine...

Windows has really made me soft and flabby.....
 
@TAzz Tux

For sure the ACM0 is a serial port of some sort. This is what I get when I disconnected and then reconnected the D600:

Code:
kernel: usb.c : USB disconnect on device 00:07.2-2 address 3
kernel: hub.c : new USB device 00:07.2-2, assigned address 4
kernel: ttyACM0: USB ACM active
I will wait for that then...the acm0 driver should be a usbserial of some sorts :)

From my limited assessment, the kernel is not recognising the Huawei card. well, it is sort of but not quite. I've tried ports ACM0-4 and COM1-5 and there is no joy.

??????:confused:
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X