########################################################################################## VEHPI-13: 3G/GPRS Connectivity support ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Won't Fix (2019-09-09 16:24:41) Project: VehManPi (VEHPI) Reported By: btasker Assigned To: btasker Components: - Connectivity Targeted for fix in version: - 1.0 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue 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 ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2013-12-24 12:23:17 btasker ----------------------------------------------------------------------------------------- After plugging the dongle in, dmesg shows the following -- BEGIN QUOTE -- [ 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 -- END QUOTE -- ----------------------------------------------------------------------------------------- 2013-12-24 12:23:20 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'In Progress' ----------------------------------------------------------------------------------------- 2013-12-24 13:54:32 btasker ----------------------------------------------------------------------------------------- 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* -- BEGIN QUOTE -- ACTION=="add", ATTRS\{serial\}=="1234567890ABCDEF",KERNEL=="ttyUSB?",NAME="GPRS_Modem",SYMLINK="GPRS" -- END QUOTE -- *wvdial.conf* -- BEGIN QUOTE -- [Dialer Defaults] Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Modem Type = Analog Modem Phone = **99*1# 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 -- END QUOTE -- ----------------------------------------------------------------------------------------- 2019-09-09 16:24:41 btasker ----------------------------------------------------------------------------------------- Bulk Close. Realistically, project isn't going to see any further development so closing as Won't Fix ----------------------------------------------------------------------------------------- 2019-09-09 16:24:41 ----------------------------------------------------------------------------------------- btasker changed status from 'In Progress' to 'Closed' ----------------------------------------------------------------------------------------- 2019-09-09 16:24:41 ----------------------------------------------------------------------------------------- btasker added 'Won't Fix' to resolution