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

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #180 on: March 10, 2012, 12:52:45 AM »
#!/bin/sh
echo -e "AT\041SCACT=1,2\r" > /dev/ttyUSB2
kwrite


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



do i put both of those in the same kwrite file ?

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2428
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #181 on: March 10, 2012, 01:03:47 AM »
derekf
Absolutely not,  ;D

You have to have two files, connect320.sh and disconnect320.sh this is for simplicity.

connect320.sh content

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


disconnect320.sh content

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


You already have the first file, the connect320.sh and you have made the shortcut/Icon on the Desktop to this file?

You had better confirm above line.
« Last Edit: March 10, 2012, 01:08:32 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

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #182 on: March 10, 2012, 01:11:10 AM »
Now i have made 2 files for connect320.sh & disconnect320.sh and saved them in desktop - dolphin.

 Is that right so far ?

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2428
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #183 on: March 10, 2012, 01:36:18 AM »
derekf

Post the value of

Quote
ls -al /home/derek/Desktop/*connect320.sh

Quote
cat /home/derek/Desktop/connect320.sh

Quote
cat /home/derek/Desktop/disconnect320.sh

You have not said if you have the Icons for each one on the desktop.
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 #184 on: March 10, 2012, 02:22:21 AM »
[root@8 ~]# ls -al /home/derek/Desktop/*connect320.sh
-rw-rw-r-- 1 derek derek 60 Mar 10 18:08 /home/derek/Desktop/connect320.sh
-rw-rw-r-- 1 derek derek 59 Mar 10 18:09 /home/derek/Desktop/disconnect320.sh

[root@8 ~]# cat /home/derek/Desktop/connect320.sh
#!/bin/sh
echo -e "AT\041SCACT=1,2\r" > /dev/ttyUSB2
kwrite

[root@8 ~]# cat /home/derek/Desktop/disconnect320.sh
#!/bin/sh
echo -e "AT\041SCACT=0,2\r" > /dev/ttyUSB2
kwrite

I have the Icons for each one on the desktop by opening dolphin and drop and drag- Link Here. click on each one of them opens the file with kwrite.
« Last Edit: March 10, 2012, 02:24:02 AM by derekf »

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2428
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #185 on: March 10, 2012, 02:34:59 AM »
derekf

Opening in Kwrite is due to the files have not been made executable, one way to do this is in root konsole run these two once

Quote
chmod a+x /home/derek/Desktop/connect320.sh

Quote
chmod a+x /home/derek/Desktop/disconnect320.sh

After you have run this try clicking on the links on the desktop.   :)





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 #186 on: March 10, 2012, 02:40:20 AM »
I did what you said in terminal, and i clicked on the disconnect icon on the desktop and a blank kwrite file popped up and then it disconnected from the net.

Then i clicked on the connect icon on the desktop and a blank kwrite file popped up and it connected to the net.

So they work great. is there anything else we need to do ? 
« Last Edit: March 10, 2012, 02:49:53 AM by derekf »

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2428
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #187 on: March 10, 2012, 03:04:48 AM »
derekf
For the time being I suggest you give it a real good try, with an eye on if you seem to forget to turn off the modem before shutting down if you are disciplined enough you are probably close enough to consider it solved on your part.

The Kwrite flashing an empty page, this is a bit crude. You might have a requirement to open a specific file each time you log on to the internet in which case it could be said to be a feature. You could then make your notes and close it at your leisure.   ;D

What I would like to do is invite suggestions from people who know better, for example I guess that triggering a Notifier event would be more professional but I know absolutely nothing.

I am going to look a bit closer at the the use of su -c, In another thread I asked a few questions and in a short time got the answer to what I thought might be a problem. I can now try out some su -c working.
« Last Edit: March 10, 2012, 03:07:09 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

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11541
  • ----IOFLU----
Re: [SOLVED] Bigpond 4G USB driver
« Reply #188 on: March 10, 2012, 03:38:10 AM »
derekf
For the time being I suggest you give it a real good try, with an eye on if you seem to forget to turn off the modem before shutting down if you are disciplined enough you are probably close enough to consider it solved on your part.

The Kwrite flashing an empty page, this is a bit crude. You might have a requirement to open a specific file each time you log on to the internet in which case it could be said to be a feature. You could then make your notes and close it at your leisure.   ;D

What I would like to do is invite suggestions from people who know better, for example I guess that triggering a Notifier event would be more professional but I know absolutely nothing.

I am going to look a bit closer at the the use of su -c, In another thread I asked a few questions and in a short time got the answer to what I thought might be a problem. I can now try out some su -c working.


What is the purpose of calling kwrite in each of the scripts?  ???

Comment both of those kwrite lines out, create a new line at the end of each script, save each file, and then try clicking each icon again.
« Last Edit: March 10, 2012, 03:39:59 AM by Old-Polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2428
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #189 on: March 10, 2012, 03:59:31 AM »
Old-Polack

The purpose is 'positive feedback' for less experienced people, so you know that something happened, despite no obvious change in operation. What it indicates is that konsole session finished, if the internet connection is made, you don't care less but if not you know at least that the string was sent.

Now in case that something went wrong  and there actually might be some error message I would have preferred that the konsole was involved instead. 

Say something like this:  You hit the desktop Icon > konsole opens > you see the string on the command line, perhaps delayed a short time > then error messages if any, else the 'closing' command line. Then you can close the konsole.

In the Whirlpool forum which successfully helped a number of novices with linux connecting this particular modem we had the basic information just trying to tweak it to pclos. 

Another though I had the idea of triggering Event Notifier or something, but I have no idea how that works.
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 Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11541
  • ----IOFLU----
Re: [SOLVED] Bigpond 4G USB driver
« Reply #190 on: March 10, 2012, 04:08:18 AM »
wedgetail:

Is not the icon in the system tray indication enough?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2428
  • Any Bugs in site?
Re: [SOLVED] Bigpond 4G USB driver
« Reply #191 on: March 10, 2012, 04:55:57 AM »
Old-Polack
I don't remember anyone making a comment on the tray having an icon.  That could be a good solution especially if the use of the Desktop  connections icons work satisfactorily.

derekf
When the modem connects to the internet do you see any icon related to the Sierra 320U appear in the tray bottom right corner? If that is the case then you may prefer to disable the kwrite in the two files and just rely on the tray for information.  As an experiment you can  put this charcter  #  in front of the kwrite, this will make the line a comment and no action will be taken, then it is easy to re-install
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 AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [SOLVED] Bigpond 4G USB driver
« Reply #192 on: March 10, 2012, 05:01:22 AM »
Old-Polack
I don't remember anyone making a comment on the tray having an icon.  That could be a good solution especially if the use of the Desktop  connections icons work satisfactorily.

derekf
When the modem connects to the internet do you see any icon related to the Sierra 320U appear in the tray bottom right corner? If that is the case then you may prefer to disable the kwrite in the two files and just rely on the tray for information.  As an experiment you can  put this charcter  #  in front of the kwrite, this will make the line a comment and no action will be taken, then it is easy to re-install

the icon is that one from net_applet that is working for any types of internet connection, no matter the device used.  ;)

Offline derekf

  • Full Member
  • ***
  • Posts: 249
Re: [SOLVED] Bigpond 4G USB driver
« Reply #193 on: March 10, 2012, 04:40:24 PM »
THe only icon i can see in the bottom right corner is the normal round one with a green tick.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11541
  • ----IOFLU----
Re: [SOLVED] Bigpond 4G USB driver
« Reply #194 on: March 10, 2012, 05:03:47 PM »
THe only icon i can see in the bottom right corner is the normal round one with a green tick.

That would be the one.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...