VEHPI-13: 3G/GPRS Connectivity support



Issue Information

Issue Type: New Feature
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: VehManPi (VEHPI)
Resolution: Won't Fix (2019-09-09 16:24:41)
Target version: 1.0,
Components: Connectivity ,

Created: 2013-12-12 19:27:11
Time Spent Working


Description
Will need to define a config variable to enable/disable this functionality as well as one to control whether Wifi is preferred (generally it will be, but nice to have the choice).

It'd be good to have support for establishing connection via a 3G dongle - perhaps if Wifi connections fail? Would also mean a PAYG dongle could be attached, but only topped up if the car goes missing - that way VehManPi could report its location even if there are no Wifi points available.

Should be as simple as

https://www.bentasker.co.uk/documentation/linux/19-installing-and-using-a-t-mobile-zte-mf626-usb-3g-mobile-broadband-dongle-under-linux?highlight=WyIzZyJd



Toggle State Changes

Activity


After plugging the dongle in, dmesg shows the following



[ 788.043748] usb 1-1.3.1: New USB device found, idVendor=19d2, idProduct=0031
[ 788.043778] usb 1-1.3.1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[ 788.043795] usb 1-1.3.1: Product: ZTE CDMA Technologies MSM
[ 788.043829] usb 1-1.3.1: Manufacturer: ZTE,Incorporated
[ 788.043847] usb 1-1.3.1: SerialNumber: 1234567890ABCDEF
[ 788.058565] scsi1 : usb-storage 1-1.3.1:1.2
[ 788.255550] usbcore: registered new interface driver option
[ 788.259317] USB Serial support registered for GSM modem (1-port)
[ 788.260129] option 1-1.3.1:1.0: GSM modem (1-port) converter detected
[ 788.271057] usb 1-1.3.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 788.272935] option 1-1.3.1:1.1: GSM modem (1-port) converter detected
[ 788.285570] usb 1-1.3.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 788.297539] option 1-1.3.1:1.3: GSM modem (1-port) converter detected
[ 788.303469] usb 1-1.3.1: GSM modem (1-port) converter now attached to ttyUSB3
[ 789.053925] scsi 1:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
[ 789.071202] sd 1:0:0:0: [sdb] Attached SCSI removable disk
btasker changed status from 'Open' to 'In Progress'
After configuration (wvdial.conf contents below), wvdial detects the GPRS stick but consistently getting NO CARRIER. Have plugged my contract SIM into the stick, so it's either that the stick genuinely can't get a connection or there's something wrong with the config.

Created a Udev rule to ensure the modem always becomes /dev/GPRS

/etc/udev/rules.d/10-gprs.rules

ACTION=="add", ATTRS\{serial\}=="1234567890ABCDEF",KERNEL=="ttyUSB?",NAME="GPRS_Modem",SYMLINK="GPRS"



wvdial.conf

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *991#
ISDN = 0
Username = t-mobile
Init1 = ATZ
Password = pass
Modem = /dev/GPRS
Baud = 9600
Carrier Check = Off
Stupid Mode = On
Abort on No Dialtone = Off
Auto DNS = On
Bulk Close.

Realistically, project isn't going to see any further development so closing as Won't Fix
btasker changed status from 'In Progress' to 'Closed'
btasker added 'Won't Fix' to resolution