headros Posted March 24, 2013 Share Posted March 24, 2013 Hello people, I am trying to get the lovely Franklin U600 (Virgin Mobile USA) connected to the fruit. It supports 4G WiMax as well, but I am trying to get the 3G lit first. The modem has been activated (CD-ROM files are on the modem storage). When I run /pineapple/3g ./3g.sh script, i get the following: 00:01:47 Pineapple kern.info kernel: [ 107.370000] usbserial: USB Serial Driver core00:01:47 Pineapple kern.info kernel: [ 107.360000] usbcore: registered new interface driver usbserial_generic00:01:47 Pineapple kern.info kernel: [ 107.360000] USB Serial support registered for generic00:01:47 Pineapple kern.info kernel: [ 107.350000] usbcore: registered new interface driver usbserial00:01:44 Pineapple kern.info kernel: [ 104.310000] usbcore: deregistering interface driver usbserial00:01:44 Pineapple kern.info kernel: [ 104.310000] USB Serial deregistering driver generic00:01:44 Pineapple kern.info kernel: [ 104.300000] usbcore: deregistering interface driver usbserial_generic00:01:34 Pineapple user.info sysinit: Looking for target devices ...00:01:34 Pineapple user.info sysinit: Looking for default devices ...00:01:34 Pineapple user.info sysinit: No devices in default mode found. Nothing to do. Bye.00:01:34 Pineapple user.info sysinit: Found devices in target mode or class (1)00:01:34 Pineapple user.info sysinit: found matching product ID00:01:34 Pineapple user.info sysinit: adding device00:01:33 Pineapple user.info sysinit: Franklin Wireless U600 (Virgin Mobile) detected. Attempting mode switch00:01:33 Pineapple user.info sysinit: 1d6b:0002 05e3:0608 0cf3:9271 0781:5530 1a40:0101 1fac:015000:01:31 Pineapple user.notice root: 3G: Connection Script here, searching for modems00:01:31 Pineapple user.info sysinit: Searching for attached 3G Modems I am using these settings to activate the modem echo $MODEM case "$MODEM" in *1fac:0150* | *1fac:0151*) echo "Franklin Wireless U600 (Virgin Mobile) detected. Attempting mode switch" uci delete network.wan2 uci set network.wan2=interface uci set network.wan2.ifname=ppp0 uci set network.wan2.proto=3g uci set network.wan2.service=cdma uci set network.wan2.device=/dev/ttyUSB0 uci set network.wan2.apn=ggsnint.nexteldata.com uci set network.wan2.username=xxxxxxx@modem.vmobl.com uci set network.wan2.password= uci set network.wan2.defaultroute=1 uci set network.wan2.ppp_redial=persist uci set network.wan2.peerdns=0 uci set network.wan2.dns=8.8.8.8 uci set network.wan2.keepalive=1 uci set network.wan2.pppd_options=debug uci set network.wan2.pppd_options=noauth uci commit network usb_modeswitch -v 1fac -p 5031 -V 1fac -P 0150 -M 555342431234567824000000800108df200000000000000000000000000000 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x1fac product=0x0150 sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop logger "3G: firewall stopped" iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT ;; When I execute lsusb, the modem name still doesnt appear. When I execute ls /dev/ttyUSB* I keep getting ls: /dev/ttyUSB*: No such file or directory ...and of course I do not see 3g-wan2 I did replace references of 1fac:0150 to 1fac:0151 to get the mode switch to fire. Not sure what to do next, please hak ppl help! Quote Link to comment Share on other sites More sharing options...
pimmpinit Posted March 25, 2013 Share Posted March 25, 2013 how did you find the APN, username, and password? I also have the U600 from Virgin Mobile and I've fussing with it since three weeks. Good luck headros, I hope we both can make this work. Quote Link to comment Share on other sites More sharing options...
headros Posted March 26, 2013 Author Share Posted March 26, 2013 (edited) I hear ya pimmpinit, I'm on week 2. I never dealt with serial components on *nix The APN I got from your post, username I got after I activated the modem on windows (see screenshot), the password I have no idea... I am guessing it is null value. I hope someone familiar with installing generic usb modem drivers can steer us as in the right direction cu I'm totally taking shots in the dark here. Edited April 5, 2013 by headros Quote Link to comment Share on other sites More sharing options...
headros Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) I made a little progress. While browsing this directory /etc/usb_modeswitch.d I noticed a bunch of files with product IDs, I saw one for franklin fac:xxx and copied it and named it to 1fac:0150 Inside 1fac:0150 i added this # Franklin Wireless U600 DefaultVendor= 0x1fac DefaultProduct=0x0150 TargetVendor= 0x1fac TargetProduct= 0x0151 MessageContent="555342431234567824000000800108df200000000000000000000000000000" .3g script is *1fac:0150* | *1fac:0151*) echo "Franklin Wireless U600 (Virgin Mobile) detected. Attempting mode switch" uci delete network.wan2 uci set network.wan2=interface uci set network.wan2.ifname=ppp0 uci set network.wan2.proto=3g uci set network.wan2.service=cdma uci set network.wan2.device=/dev/ttyUSB0 uci set network.wan2.username=internet uci set network.wan2.password=internet uci set network.wan2.defaultroute=1 uci set network.wan2.ppp_redial=persist uci set network.wan2.peerdns=0 uci set network.wan2.dns=8.8.8.8 uci set network.wan2.keepalive=1 uci set network.wan2.pppd_options=debug uci set network.wan2.pppd_options=noauth uci commit network usb_modeswitch -v 1fac -p 5031 -V 1fac -P 0150 -M 555342431234567824000000800108df200000000000000000000000000000 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x1fac product=0x0150 sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop logger "3G: firewall stopped" iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT ;; esac Then I rebooted. Now my log reads like this: 00:01:49 Pineapple kern.info kernel: [ 109.850000] usbserial: USB Serial Driver core 00:01:49 Pineapple kern.info kernel: [ 109.840000] usbcore: registered new interface driver usbserial_generic 00:01:49 Pineapple kern.info kernel: [ 109.830000] usbcore: registered new interface driver usbserial 00:01:49 Pineapple kern.info kernel: [ 109.830000] USB Serial support registered for generic 00:01:46 Pineapple kern.info kernel: [ 106.790000] usbcore: deregistering interface driver usbserial 00:01:46 Pineapple kern.info kernel: [ 106.790000] USB Serial deregistering driver generic 00:01:46 Pineapple kern.info kernel: [ 106.780000] usbcore: deregistering interface driver usbserial_generic 00:01:36 Pineapple user.info sysinit: Looking for target devices ... 00:01:36 Pineapple user.info sysinit: Looking for default devices ... 00:01:36 Pineapple user.info sysinit: Franklin Wireless U600 (Virgin Mobile) detected. Attempting mode switch 00:01:36 Pineapple user.info sysinit: 1d6b:0002 05e3:0608 0cf3:9271 0781:5530 1a40:0101 1fac:0151 00:01:36 Pineapple user.info sysinit: No devices in target mode or class found 00:01:36 Pineapple user.info sysinit: No devices in default mode found. Nothing to do. Bye. 00:01:34 Pineapple user.notice root: 3G: Connection Script here, searching for modems 00:01:34 Pineapple user.info sysinit: Searching for attached 3G Modems 00:01:34 Pineapple user.info sysinit: No lease, failing 00:01:31 Pineapple user.info sysinit: Sending discover... 00:01:28 Pineapple user.info sysinit: Sending discover... 00:01:25 Pineapple user.info sysinit: udhcpc (v1.19.4) started 00:01:25 Pineapple user.info sysinit: Sending discover... 00:01:25 Pineapple user.info sysinit: Selected interface 'wlan0' 00:01:25 Pineapple user.info sysinit: OK 00:01:24 Pineapple kern.info kernel: [ 84.650000] br-lan: port 3(wlan1) entered forwarding state 00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.5: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? 00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.4: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? 00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.3: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? 00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.2: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? 00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.1: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? 00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.0: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? But lsusb still shows Bus 001 Device 007: ID 1fac:0151 Edited March 31, 2013 by headros Quote Link to comment Share on other sites More sharing options...
headros Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) Another Update, In the .3g script i posted above i notice my device was 151, not 150, So I used this *1fac:0150* | *1fac:0151*) echo "Franklin Wireless U600 (Virgin Mobile) detected. Attempting mode switch" uci delete network.wan2 uci set network.wan2=interface uci set network.wan2.ifname=ppp0 uci set network.wan2.proto=3g uci set network.wan2.service=cdma uci set network.wan2.device=/dev/ttyUSB0 uci set network.wan2.username=internet uci set network.wan2.password=internet uci set network.wan2.defaultroute=1 uci set network.wan2.ppp_redial=persist uci set network.wan2.peerdns=0 uci set network.wan2.dns=8.8.8.8 uci set network.wan2.keepalive=1 uci set network.wan2.pppd_options=debug uci set network.wan2.pppd_options=noauth uci commit network ##usb_modeswitch -v 1410 -p 5031 -V 1410 -P 6002 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20 usb_modeswitch -v 1fac -p 5031 -V 1fac -P 0151 -M 555342431234567824000000800108df200000000000000000000000000000 -n 1 -s 20 sleep 10; rmmod usbserial sleep 3; insmod usbserial vendor=0x1fac product=0x0151 sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop logger "3G: firewall stopped" iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT ;; esac Then I rebooted. I noticed the 3G lites where now solid and blinking as if there as activity. Then I went to the log and now I am issuing commands, 00:01:54 Pineapple local2.info chat[2535]: send (^M)00:01:54 Pineapple local2.info chat[2535]: CONNECT00:01:54 Pineapple local2.info chat[2535]: ATDT#777^M^M00:01:54 Pineapple local2.info chat[2535]: -- got it00:01:54 Pineapple daemon.notice pppd[2511]: Connect: 3g-wan2 <--> /dev/ttyUSB000:01:54 Pineapple daemon.info pppd[2511]: Using interface 3g-wan200:01:54 Pineapple daemon.info pppd[2511]: Serial connection established.00:01:51 Pineapple local2.info chat[2535]: timeout set to 30 seconds00:01:51 Pineapple local2.info chat[2535]: timeout set to 10 seconds00:01:51 Pineapple local2.info chat[2535]: send (AT^M)00:01:51 Pineapple local2.info chat[2535]: send (ATZ^M)00:01:51 Pineapple local2.info chat[2535]: send (ATDT#777^M)00:01:51 Pineapple local2.info chat[2535]: report (CONNECT)00:01:51 Pineapple local2.info chat[2535]: expect (OK)00:01:51 Pineapple local2.info chat[2535]: expect (OK)00:01:51 Pineapple local2.info chat[2535]: expect (CONNECT)00:01:51 Pineapple local2.info chat[2535]: abort on (NO DIAL TONE)00:01:51 Pineapple local2.info chat[2535]: abort on (NO CARRIER)00:01:51 Pineapple local2.info chat[2535]: abort on (NO ANSWER)00:01:51 Pineapple local2.info chat[2535]: abort on (ERROR)00:01:51 Pineapple local2.info chat[2535]: abort on (DELAYED)00:01:51 Pineapple local2.info chat[2535]: abort on (BUSY)00:01:51 Pineapple local2.info chat[2535]: ^M00:01:51 Pineapple local2.info chat[2535]: ^M00:01:51 Pineapple local2.info chat[2535]: OK00:01:51 Pineapple local2.info chat[2535]: OK00:01:51 Pineapple local2.info chat[2535]: AT^M^M00:01:51 Pineapple local2.info chat[2535]: ATZ^M^M00:01:51 Pineapple local2.info chat[2535]: -- got it00:01:51 Pineapple local2.info chat[2535]: -- got it00:01:50 Pineapple daemon.notice pppd[2511]: pppd 2.4.5 started by root, uid 000:01:49 Pineapple kern.warn kernel: [ 109.740000] usbserial_generic: probe of 1-1.3.2:1.0 failed with error -500:01:49 Pineapple kern.info kernel: [ 109.780000] usbserial_generic 1-1.3.2:1.4: generic converter detected00:01:49 Pineapple kern.info kernel: [ 109.770000] usbserial_generic 1-1.3.2:1.3: generic converter detected00:01:49 Pineapple kern.info kernel: [ 109.770000] usb 1-1.3.2: generic converter now attached to ttyUSB200:01:49 Pineapple kern.info kernel: [ 109.760000] usb 1-1.3.2: generic converter now attached to ttyUSB100:01:49 Pineapple kern.info kernel: [ 109.750000] usbserial_generic 1-1.3.2:1.2: generic converter detected00:01:49 Pineapple kern.info kernel: [ 109.750000] usb 1-1.3.2: generic converter now attached to ttyUSB000:01:49 Pineapple kern.info kernel: [ 109.740000] usbserial_generic 1-1.3.2:1.1: generic converter detected00:01:49 Pineapple kern.info kernel: [ 109.720000] usbcore: registered new interface driver usbserial00:01:49 Pineapple kern.info kernel: [ 109.720000] USB Serial support registered for generic00:01:49 Pineapple kern.err kernel: [ 109.730000] usbserial_generic 1-1.3.2:1.0: Generic device with no bulk out, not allowed.00:01:46 Pineapple kern.info kernel: [ 106.680000] usbcore: deregistering interface driver usbserial00:01:46 Pineapple kern.info kernel: [ 106.680000] USB Serial deregistering driver generic00:01:46 Pineapple kern.info kernel: [ 106.670000] usbcore: deregistering interface driver usbserial_generic00:01:36 Pineapple user.info sysinit: Looking for target devices ...00:01:36 Pineapple user.info sysinit: Looking for default devices ...00:01:36 Pineapple user.info sysinit: Franklin Wireless U600 (Virgin Mobile) detected. Attempting mode switch00:01:36 Pineapple user.info sysinit: 1d6b:0002 05e3:0608 0cf3:9271 0781:5530 1a40:0101 1fac:015100:01:36 Pineapple user.info sysinit: No devices in default mode found. Nothing to do. Bye.00:01:36 Pineapple user.info sysinit: Found devices in target mode or class (1)00:01:36 Pineapple user.info sysinit: found matching product ID00:01:36 Pineapple user.info sysinit: adding device00:01:34 Pineapple user.notice root: 3G: Connection Script here, searching for modems00:01:34 Pineapple user.info sysinit: Searching for attached 3G Modems00:01:34 Pineapple user.info sysinit: No lease, failing00:01:31 Pineapple user.info sysinit: Sending discover...00:01:28 Pineapple user.info sysinit: Sending discover...00:01:25 Pineapple user.info sysinit: udhcpc (v1.19.4) started00:01:25 Pineapple user.info sysinit: Sending discover...00:01:25 Pineapple user.info sysinit: Selected interface 'wlan0'00:01:25 Pineapple user.info sysinit: OK00:01:24 Pineapple kern.info kernel: [ 84.460000] br-lan: port 3(wlan1) entered forwarding state00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.5: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=?00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.4: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=?00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.3: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=?00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.2: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=?00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.1: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=?00:01:23 Pineapple user.notice usb-modeswitch: 1-1.3.2:1.0: Manufacturer=Franklin_Wireless_Corp. Product=U600_EVDO_Modem Serial=? Now its time to see if I can pull some data (FINALLY!!!). Edited April 3, 2013 by Mr-Protocol Spoiler Tags Quote Link to comment Share on other sites More sharing options...
headros Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) I connected a client to the wifi of the pineapple and hit some webpages. I noticed Interfaces-> 3g-wan2 rx and tx bytes increasing as I load webpages on the wifi client. I then went to see what IP the client had and it was the one issued by Virgin Mobile USA. Everything is working perfect. I didnt even have to do anything with ICS or change the internet gateway. Firewall was already setup. Next task, get the 4G WiMax lit up. Edited March 31, 2013 by headros Quote Link to comment Share on other sites More sharing options...
pimmpinit Posted April 2, 2013 Share Posted April 2, 2013 (edited) I keep getting this error. 00:02:23 Pineapple syslog.notice usb_modeswitch: switching device 1fac:0151 on 001/00400:02:23 Pineapple kern.warn kernel: [ 143.670000] usb 1-1.2: usbfs: interface 1 claimed by usbserial_generic while 'usb_modeswitch' sets config #200:02:23 Pineapple kern.warn kernel: [ 143.660000] usb 1-1.2: usbfs: interface 1 claimed by usbserial_generic while 'usb_modeswitch' sets config #200:02:23 Pineapple kern.warn kernel: [ 143.650000] usb 1-1.2: usbfs: interface 1 claimed by usbserial_generic while 'usb_modeswitch' sets config #200:02:23 Pineapple kern.warn kernel: [ 143.640000] usb 1-1.2: usbfs: interface 1 claimed by usbserial_generic while 'usb_modeswitch' sets config #200:02:23 Pineapple kern.warn kernel: [ 143.630000] usb 1-1.2: usbfs: interface 1 claimed by usbserial_generic while 'usb_modeswitch' sets config #200:02:22 Pineapple user.notice usb-modeswitch: 1-1.2:1.0: Switching seemingly failed Edited April 2, 2013 by pimmpinit Quote Link to comment Share on other sites More sharing options...
ibrokeit Posted April 2, 2013 Share Posted April 2, 2013 Did you make any progress with the 4g wimax? If i can't get my at&t lined out, I'm going to switch to this. Quote Link to comment Share on other sites More sharing options...
headros Posted April 2, 2013 Author Share Posted April 2, 2013 Pimminit, seems like the switching failed when checking #2 configuration. Did you add a 1fac:0150 config file in /etc/usb_modeswitch.d1 directory, then reboot? If so, does line #2 in 1fac:0150 read: DefaultProduct=0x0150 ibrokeit - I didnt attempt 4G yet. Researching whether or Not the driver auto-switches 3G/4G . Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted April 2, 2013 Share Posted April 2, 2013 Can you please go back and edit posts with logs to use the spoiler tags? On mobile right now or I would. It makes for a cleaner read. Quote Link to comment Share on other sites More sharing options...
headros Posted April 2, 2013 Author Share Posted April 2, 2013 Can you please stop pestering users to use spoiler tags. Its very annoying. Quote Link to comment Share on other sites More sharing options...
headros Posted April 2, 2013 Author Share Posted April 2, 2013 ibrokeit, to get 4G Wimax to work, it requires installing a separate driver for the 4G chipset. I believe 4G on u600 has the Beceem BCSM250 chipset. There is a similar post installing on beecem wimax on ubuntu/mint I'm going to try out. Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted April 2, 2013 Share Posted April 2, 2013 Can you please stop pestering users to use spoiler tags. Its very annoying. What is annoying is page after page of a log file on mobile devices. I will just handle it when I get home. Quote Link to comment Share on other sites More sharing options...
pimmpinit Posted April 4, 2013 Share Posted April 4, 2013 Pimminit, seems like the switching failed when checking #2 configuration. Did you add a 1fac:0150 config file in /etc/usb_modeswitch.d1 directory, then reboot? If so, does line #2 in 1fac:0150 read: DefaultProduct=0x0150 With the script I have running now it connects 50% of the time. I'm not sure what you mean about adding a 1fac:0150 config file to the directory. Do I SSH and edit a file or something? Quote Link to comment Share on other sites More sharing options...
headros Posted April 4, 2013 Author Share Posted April 4, 2013 OK, if you can connect and pull data, the driver must be reading your device. I noticed in the log my modem will disconnect occasionally, but it reconnects right away. How strong the your signal in your location? regarding your question abt the config file, what I did was: SSH into /etc/usb_modeswitch.d directory. You will see some 1fac:xxxx files. Copy one of those files, edit it by clearing all contents and paste this in # Franklin Wireless U600 DefaultVendor= 0x1fac DefaultProduct=0x0150 TargetVendor= 0x1fac TargetProduct= 0x0151 MessageContent="555342431234567824000000800108df200000000000000000000000000000" Save as 1fac:0150 and upload to /etc/usb_modeswitch.d, then reboot. Paste your log after a few disconnects here if your still having issues. Quote Link to comment Share on other sites More sharing options...
pimmpinit Posted April 5, 2013 Share Posted April 5, 2013 Headros its works! I pasted the into both 0150 and 0151 saved it and rebooted multiple times and it always connected at boot. Thanks so much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.