Author Topic: Bigpond 4G USB driver  (Read 16370 times)

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #165 on: March 09, 2012, 07:26:04 PM »
What i did was opened small dolphin window and drag & dropped to the desktop, a menu appeared and i clicked on Link Here. not sure if that was right.

Then as SU i typed chmod a+x /home/derek/desktop/connect320.sh. then clicked on the icon on the desktop, but did nothing at all.

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #166 on: March 09, 2012, 07:48:33 PM »
derekf
Post the result of your chmod, including prompt.

And repeat

Code: [Select]
ls -al /home/derek/Desktop/con*
Edit the connect320.sh file, use Dolphin > right click on file > open with Kwrite
and as last line type kwrite, save file

Try click on desktop link again, Kwrite should then open.  This is just a crude way of checking that the file did run.   ;D  I have forgotten how to print a line message from a script so I am cheating.  Probably could have added echo end of action this would print to konsole stdout but kwrite is more spectacular, you won't miss it.

The reason why nothing happened I am assuming the state of the modem is not determined.  We will get there. (I have the AT command set now for the modem but not read the list yet)
« Last Edit: March 09, 2012, 07:55:09 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #167 on: March 09, 2012, 07:57:54 PM »
[root@8 ~]# chmod a+x /home/derek/desktop/connect320.sh - is blank


[root@8 ~]# ls -al /home/derek/Desktop/con*
-rwxrwxr-x 1 derek derek 56 Mar 10 11:42 /home/derek/Desktop/connect320.sh*


Edit the connect320.sh file, use Dolphin > right click on file > open with Kwrite
and as last line type kwrite, save file


I did that then clicked on the desktop icon and kwrite don`t open it.
« Last Edit: March 09, 2012, 08:05:47 PM by derekf »

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #168 on: March 09, 2012, 08:22:26 PM »
derekf
Just to be sure I want to see the content of the connect320 file. I am pretty sure you have got it right, right now caution is needed though, I am not short of things to test, you only need patience with me.  ;D  

Copy/paste to konsole, and post the result

Code: [Select]
cat /home/derek/Desktop/connect320.sh*
Added:

There is a problem here, just sit tight we need somebody to help

Quote
echo -e "AT!SCACT=1,2\r" > /dev/ttyUSB2

I tried to send the string to a file, now this may not be correct testing method but:


[gert@KDE-mini-Cprog Desktop]$ echo -e "AT!SCACT=1,2\r"
bash: !SCACT=1,2\r": event not found

[gert@KDE-mini-Cprog Desktop]$ echo -e "AT\!SCACT=1,2\r"
AT\!SCACT=1,2


I think there is a problem with special character  ! , anybody got some suggestions?


« Last Edit: March 09, 2012, 09:35:48 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline JALU

  • Sr. Member
  • ****
  • Posts: 456
  • Just Another Linux User
Re: [SOLVED] Bigpond 4G USB driver
« Reply #169 on: March 09, 2012, 09:51:32 PM »
wedgetail,  

if the modem has been switched into GPS mode then perhaps you should be communicating with ttyUSB3,  not ttyUSB2
eg
echo -e "AT!SCACT=1,2\r" > /dev/ttyUSB3

(as per my PM)

Cages
THEN and THAN usage..
Use than to make a comparison. Use then when referring to time.

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #170 on: March 09, 2012, 10:15:30 PM »
drkgs
No we are up against something else, we have to assume the modem is really communicating on ttyUSB2, this is where we want to be eventually anyway  ;D  

A bit more elaboration, we know that ttyUSB0..3 exists, now if you look at the red echo line in my post above, you will notice that in the first section, the command breaks up when the ! is reached, and this depends on what position and nearest neighbours it has.  Put it like this if the line breaks up there is no way that the modem can get the right message, the AT sequences are very unforgiving (famous "trust me", I have sweated over them back in the landline modem days  :'( :'( ;D)

This is why I am at pains to get not only the characters right also the individual bits if needed add to that the wireless AT sets are completely new to me so I have my work cut out.

My consolation is that to a degree I am a Wireless enthusiast, well when I am not doing other things like linux work. I am seriously considering buying one of these 320U just to play with, we will see.  :D


derekf
Back to work,  I would still like to see the output of the cat /home/derek/Desktop/connect320.sh* command.

Copy past this to root konsole:

To connect the Sierra 320U:
Quote
echo -e "AT\041SCACT=1,2\r" >/dev/ttyUSB2

If that works we will work backwards into the script again.  I understand the problem now with the command.
If any message shows here then post


To disconnect the Sierra 320U
Quote
echo -e "AT\041SCACT=0,2\r" >/dev/ttyUSB2
« Last Edit: March 09, 2012, 10:40:12 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #171 on: March 09, 2012, 10:33:35 PM »
[root@8 ~]# cat /home/derek/Desktop/connect320.sh*
!/bin/sh
su -c "echo -e "AT!SCACT=1,2\r" > /dev/ttyUSB2
kwrite!/bin/sh
su -c "echo -e "AT!SCACT=1,2\r" > /dev/ttyUSB2[root@8 ~]#

[root@8 ~]# echo -e "AT\041SCACT=1,2\r"
AT!SCACT=1,2

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #172 on: March 09, 2012, 10:45:18 PM »
derekf

Fine, you have confirmed that your system can handle my work around the ! in the echo, now go back to my earlier message that I have modified to live action hopefully

The content of the connect320 file does not look right, but this will have to be modified anyway so it does not matter at this stage.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #173 on: March 09, 2012, 10:54:01 PM »
ok i copy & pasted in the terminal:

echo -e "AT\041SCACT=1,2\r" >/dev/ttyUSB2

echo -e "AT\041SCACT=0,2\r" >/dev/ttyUSB2

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #174 on: March 09, 2012, 11:15:52 PM »
derekf
Notice I get no confirmation that you really did use a root terminal, it is important that I see two command lines at least, perhaps with extra lines between them. As an example, using something that does not work, don't try and use this:

[gert@KDE-mini-Cprog ~]$ echo -e "AT!SCACT=1,2\r "
bash: !SCACT=1,2\r: event not found
[gert@KDE-mini-Cprog ~]$

Preferably like this:

Code: [Select]
[gert@KDE-mini-Cprog ~]$ echo -e "AT!SCACT=1,2\r "
bash: !SCACT=1,2\r: event not found
[gert@KDE-mini-Cprog ~]$


What you are meant to do with the two statements is: Run the connect statement. Watch the modem lights, hopefully some activity and you should be able to surf the internet.

Then when you have finished and want to do other thing you may prefer to disconnect the modem with the other statement, again watch the lights on the modem, you can find out in the manual or at Whirlpool what they might indicate.

Then you can switch the power off to the modem safely.  This is the idea of disconnecting the data activity from the internet first so that there is not action going on involving your SIM card just when power is removed.  It is a small chance but not worth taking for you that the card may screw up data and then scrapping your card.
« Last Edit: March 09, 2012, 11:19:28 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #175 on: March 09, 2012, 11:31:53 PM »
I`m not sure what you mean, but in the terminal i type:

[root@8 ~]#  echo -e "AT\041SCACT=1,2\r" >/dev/ttyUSB2 - connects to the net ( 2 solid blue lights ).

[root@8~]# echo -e "AT\041SCACT=0,2\r" >/dev/ttyUSB2  - disconnects from net ( 1 solid blue light and 1 flashing light).

Now that i can connect and disconnect from the net, what do i do with that file connect320.sh you made ?
« Last Edit: March 09, 2012, 11:34:32 PM by derekf »

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #176 on: March 10, 2012, 12:00:27 AM »
derekf

We will get to the files a bit later, I don't want to go there and then have to come back at this level again.

Quote
[root@8 ~]#  echo -e "AT\041SCACT=1,2\r" >/dev/ttyUSB2

When you press enter on above is that all you get?  Or do you get this:

Quote
[root@8 ~]#  echo -e "AT\041SCACT=1,2\r" >/dev/ttyUSB2
[root@8 ~]# 

I want to know if the session is complete in its own right.

The same goes for the closing session, do you get the normal prompt back immediately.

32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #177 on: March 10, 2012, 12:05:02 AM »
When i type it in i get:

[root@8 ~]#  echo -e "AT\041SCACT=1,2\r" >/dev/ttyUSB2
[root@8 ~]# 

yes i get the normal prompt back immediately.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: [SOLVED] Bigpond 4G USB driver
« Reply #178 on: March 10, 2012, 12:12:29 AM »

Open Kwrite  on your desktop and copy/paste this into the file

Quote
#!/bin/sh
su -c "echo -e "AT!SCACT=1,2\r" > /dev/ttyUSB2

Save the file as connect320.sh to the Desktop for convenience


!/bin/sh
su -c "echo -e "AT!SCACT=1,2\r" > /dev/ttyUSB2

did that in kwrite and saved it to Desktop as connect320.sh.


I realize he saved the file as root user. But, if his post accurately reflects the contents of connect320.sh, it's missing the first character in the script. He entered bang instead of crunch-bang. (Should be #!/bin/sh)
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #179 on: March 10, 2012, 12:46:06 AM »
djohnston
I would have missed that I think, much appreciated, shows you can't be too careful.  :) I am happy that I asked for the file content you save us time.

derekf
There is now a problem with the whirlpool method, and I am striking out on my own, for the time being.  I need to have some discussion with experienced people on that. Will make another thread to delve into the details.  I think I can get you going as follows.

Open the disconnect320.sh file with kwrite, delete everything in it.  Replace, copy/paste with the following.

Quote
#!/bin/sh
echo -e "AT\041SCACT=1,2\r" > /dev/ttyUSB2
kwrite


Same process for the disconnect320.sh

Quote
#!/bin/sh
echo -e "AT\041SCACT=0,2\r" > /dev/ttyUSB2
kwrite

Again I have used a very crude way to show that the files did run by flashing and empty Kwrite file in your face.  You just close it.

So as the file was made executable then clicking on the connect320 icon on the desktop (any desktop if you run multiple was the idea) then Kwrite spring up and your modem goes on line.

Post back
« Last Edit: March 10, 2012, 12:59:21 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen