|
#1
|
|||
|
|||
|
Success!
I want to report success with this combination; after much reading on Quozl (http://quozl.us.netrek.org/bp3-usb/) and a little messing about with the latest stable koppel.cz CDMA firmware (http://koppel.cz/cdmawifi/download/165/) I have a system that works - you fire up the router, plug in the BP3-USB modem and within seconds you have a WAN hookup. This firmware has the options on the USB Modem > Dial-Up page to hard-code the USB settings (vendor ID and product ID) to cause the supplied usbserial driver to recognise the BP3-USB modem. Tweaks from stock koppel.cz 1.6.5: 1. Used USB Modem > Dial Up option - Dial Up config options: * username: {username}@bigpond.com * password: duh! * number: *99# (I have been given a different dial-up number by Tel$tra to use for this - actually got a Telstra engineer who was interested enough to talk about this - when I am home again, I'll publish this information) * alternate number: *99***1# (this according to the Telstra tech was a more appropriate number to use ^.^) Vendor ID and Product ID are 0x16d8, 0x6280 respectively 2. Telnet'ed into the router, edited /tmp/ppp/dialup/update to match this - I found the same as Quozl that it would respond to pppd on /dev/usb/tts/1 but not on the other two. Find this line (doing this from memory, so I'm not sure exactly of the regex on the first line - use whatever is there for you): Code:
sed -e "s/\\\$username\\\$/$USERNAME/g" /tmp/ppp/dialup/dialup > /tmp/ppp/peers/dialup Code:
sed -e "s/\\\$username\\\$/$USERNAME/g" /tmp/ppp/dialup/dialup > /tmp/ppp/peers/dialup.tmp sed -e "s/tts\/0/tts\/1/g" /tmp/ppp/peers/dialup.tmp > /tmp/ppp/peers/dialup rm -f /tmp/ppp/peers/dialup.tmp Look for (on line 6) Code:
insmod usbserial vendor=$(nvram get dialup_vid) product=$(nvram get dialup_pid) Code:
insmod usbserial vendor=$(nvram get dialup_vid) product=$(nvram get dialup_pid) maxpacketsize=4096 Code:
/tmp/ppp/dialup/dial /tmp/ppp/dialup/update Code:
flashfs save flashfs commit flashfs enable reboot ![]() Improvements to this tutorial; 1. Detection of which USB port is being used, instead of hardcoding this in /tmp/ppp/dialup/update - my guess is that the one that will respond to /sbin/pppd is the one out of /dev/usb/tts/0, /dev/usb/tts/1 and /dev/usb/tts/2 that has a different file date - ie two of these will have the same file date and one will be different... Any other suggestions? NOTE: please do not ask for the custom firmware for this, as it's just one file that needs editing out of existing custom firmware... Last edited by Natcher00; 03-09-2007 at 12:16.. Reason: Incorporating extra tips submitted by cowgoesmoo on 070901 |
|
#1
|
|||
|
|||
|
#2
|
|||
|
|||
|
Questions and Trouble
Downloaded the firmware from the above linked site. Got the firmware prefixed with the model of my router which is the WL500gp.
Is the first section of code above ment to be the same as the first line of the second section? Are we just adding a line or are we also changing that first line. Followed all the instructions as far as I can tell. However after I run the command : flashfs commit I have been running the command : reboot After the reboot all the changes made in the files are gone. What should I be doing instead? The modem seems to be detected ok however pppd connect script fails. Quote:
|
|
#3
|
|||
|
|||
|
At the time I was doing this I didn't have Internet access to the router yet - the purpose of this being to get online again... So I was not able to find or compile a new driver - this is just to get an existing firmware with minimal modification to connect via the modem I mentioned.
Quote:
Once you have made this change, you will need to edit the /tmp/local/.files file to add the line I indicated. Then when you run flashfs save, it should give you a list of files it is going to pickup and save back to the flash; at the top of the list should be the /tmp/ppp/dialup/update file. Once that's ready it should flashfs commit correctly. None of this precludes you setting it up correctly - paste in your entire log from boot (after a reboot with the modem plugged in) so I can see what's happening there - it's possible your modem is not being recognised - make sure you are not running the modem via a USB hub into the router as this device will not cope with that... Which router do you have? I have the WL-500gP with two USB ports - and I have it plugged into the top one of the two (maybe that's why for me it was /dev/usb/tts/1 instead of tts/0 - I'm not an expert, just a tinkerer - YMMV unless you are replicating these conditions. |
|
#4
|
|||
|
|||
|
Here's the full file mods for your reference:
/tmp/ppp/dialup/update Code:
#!/bin/sh USERNAME=$(nvram get dialup_username) PASSWORD=$(nvram get dialup_password) DIALNO=$(nvram get dialup_dialno) echo \"$USERNAME\" \* \"$PASSWORD\" \*>>/tmp/ppp/chap-secrets chmod 600 /tmp/ppp/chap-secrets sed -e "s/\\\$username\\\$/$USERNAME/g" /tmp/ppp/dialup/dialup>/tmp/ppp/peers/dialup.tmp sed -e "s/tts\/0/tts\/1/g" /tmp/ppp/peers/dialup.tmp>/tmp/ppp/peers/dialup echo $(nvram get dial_param_$1)>>/tmp/ppp/peers/dialup sed -e "s/\\\$dialno\\\$/$DIALNO/g" /tmp/ppp/dialup/dialup.chat>/tmp/ppp/peers/dialup.chat Code:
# Enter full path of files to be saved via flashfs /tmp/ppp/dialup/update Code:
drwxr-xr-x 1 admin root 0 Jan 1 1970 . drwxr-xr-x 1 admin root 0 Jan 1 1970 .. crw------- 1 admin root 188, 0 Jan 1 1970 0 crw------- 1 admin root 188, 1 Aug 10 23:26 1 crw------- 1 admin root 188, 2 Jan 1 1970 2 |
|
#5
|
|||
|
|||
|
Still having trouble commiting the changes....
I also have the WL-500g Premium and am also connecting it to the top USB port. I have nothing else connected to it on the USB ports. I have two computer plugging into the switch as you will see in the Logs.
I am using vi to edit the files from telnet so that they look exactly the same as yours. (Had to get out my old text books to remember how to use it. Why don't people put pico or nano in these things??) Saved the changes to the files using :w. Went back into the files after I saved them to make sure that it DID save. committed using the following. Quote:
If I then telnet back in and look at the files they are back they way they where before I edited them! Very frustrating. Have just thought that I may have to specify specifically which file i want to commit so will try that in a min. Last edited by Cowgoesmoo; 11-08-2007 at 09:35.. Reason: Attached full log file |
|
#6
|
|||
|
|||
|
Log file
I have removed the log file info as I solved the problem and it didn't have anything to do with the log file.
For whatever reason the flashfs commit command was not committing the file created by flashfs save. To get around this problem I plugged in my usbstick and copied the file created by flashfs save (/tmp/flash.tar.gz) to it. I then removed the USB stick plugged it into the computer I am using now and uploaded it using the web interface. System Setup -> Flashfs Managment -> New Flashfs file. The system uploaded the file and rebooted. After the reboot as soon as I clicked on the status and log tab on the left menu it was showing my IP address dns servers etc in the right hand window. I am now sending this reply using the router instead of directly through the modem. Here is the command to copy the file to a USB stick (or any usb storage device) for those who may not know. Quote:
Last edited by Cowgoesmoo; 11-08-2007 at 10:31.. Reason: Info no longer valid. |
|
#7
|
|||
|
|||
|
Maybe you missed to enable flashfs with
Code:
flashfs enable |
|
#8
|
|||
|
|||
|
Speed problems solved!
As engy noted the reason I was having trouble getting my changes to survive a reboot was the missing
Code:
flashfs enable ALSO If you had tried the above you would notice that the max speed you would have been getting would have been about 270k down 90 up which is quite small! After lots of reading I now have mine working at 600k down 200k up. Which is faster than under windows by about 100k down. Have been looking at ways to fix this since I made the above post. Most suggestions seem to be to use the Airprime driver in 2.6 kernel which you can put on your router using the Openwrt firmware. But there is no Wireless support for the wirless card in the WL500ap. I then found this site. http://www.ipcops.com/index.php?name...wtopic&p=54546 After reading this and learning a bit about how all this stuff works I approached Engy, one of the developers of the firmware image we are using, with what I had learned and asked him if there was a solution. He suggested that the same method could by used in his firmware by editing a line in the file /tmp/ppp/dialup/dial and adding the option Code:
maxpacketsize=4092 Code:
insmod usbserial vendor=$(nvram get dialup_vid) product=$(nvram get dialup_pid) maxpacketsize=4096 Code:
/etc/ppp/dialup/update /etc/ppp/dialup/dial Code:
flashfs save flashfs commit flashfs enable reboot Note : Engy suggested that the maxpacketsize should be 1024 however I have set it to 4092 as per the suggestion on the thread I linked above. I did try Engys value and it worked as fast as the 4092 or maybe even faster however because of the reboot and the fact that I get a different ip and traceroute to the speed test host I am using each time Its really hard to say which is better. I stuck with 4092 as from looking at the source for some of the wirless modem drivers it is the value that is used. Also the above linked tread suggests that it is more stable *shrugs*. |
|
#9
|
|||
|
|||
|
Thanks for the update - I have incorporated this change, and have seen no marked effect, but I've incorporated the changes you have researched into the tutorial as well as clarified the points you made above in the OP - thanks pal.
|
|
#10
|
|||
|
|||
|
Great tutorial, I have a friend who have the same router, have NextG broadband, but he have the desktop USB modem (the one for desktop and have two antennas) instead of the MAXON BP3-USB.
I think I have heard in some forum that Telstra won't allow you to share your internet if you have the desktop version of the modem, is that true? |
|
#11
|
|||
|
|||
|
They don't provide any technical support for this config (i.e. running the NextG equipment via Linux or via serial dial-up mechanisms other than the supplied software) - if you want to get Telstra help with this, then you'll need to plug the modem back into your computer directly.
I don't believe that there is any stipulation on whether you can share it or not - for example if you were to use ICS (egads!) on Windoze you could share it - but then you;d be relying on any MS or installed software firewall... |
|
#12
|
|||
|
|||
|
Sharing is fine
Quote:
|
|
#13
|
|||
|
|||
|
Good speeds being acheived
Telstra's new firmware has enabled me to get download speeds of nearly 3mb according to www.speedtest.net. I get the same through the ASUS as I get with the modem connected directly to my laptop.
|
|
#14
|
|||
|
|||
|
forgive my ignorance but, need laymans help set up nextg powered d/top modem to wl500
hi trying to set up xp home desktop with vista laptop to next g desktop powered modem with asus wl500g premium wireless router.
next g modem when connected to pc has all three red lights working and internet conection when put through router the router usb wont recognise modem have read through posts and all seems possible but i dont understand how or where to execute these commands if some could spell it out for me from looking at a desktop to final execution that would be very helpful thankyou all of you in advance and a merry xmas to all as well ![]() |
|
#14
|
|||
|
|||
|
#15
|
|||
|
|||
|
Telneting
hey,
if anyone visits this old thread, i apprecaite what you guys have been doing, helped me so much. i have downloaded the firmware, installed it and completed dial-up options for USB modem. How do u telnet? i have a program called putty. but how do u access these files to change the wording? thx heaps |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|