This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to control the KNX bus via SMS and send notices via SMS?
#25
It's an old thread, but the question belongs here. 

Using the scripts from previous page I made a configuration with Huawei modem, and it works on the test system. 

Now, the modem, powered USB hub and it's power supply are moved to the remote site, with the only difference in SIM card. And it won't work!
The setup is exactly the same, same HW/SW, known working modem and USB hub+cables. The SIM card is brand new, activated+PIN disabled, tested working/can send SMS from phone and make calls. The modem is unlocked, and the SIM is the same carrier as the modem (was before unlocking).

This line is repeated forever: 
Code:
May 21 20:43:50 homeLYnk kern.err kernel: [ 7416.514623] option1 ttyUSB1: option_instat_callback: error -71

Attached is the log after restart and unplug/replug of the modem.
Code:
May 21 18:41:15 homeLYnk user.notice usb-modeswitch: 1-1.4:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:15 homeLYnk user.notice usb-modeswitch: 1-1.4:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:14 homeLYnk user.notice usb-modeswitch: 1-1.4:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:14 homeLYnk user.notice usb-modeswitch: 1-1.4:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:14 homeLYnk user.notice usb-modeswitch: 1-1.4:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:14 homeLYnk user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:13 homeLYnk user.notice usb-modeswitch: 1-1.3:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
May 21 18:41:13 homeLYnk user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
May 21 18:41:12 homeLYnk user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
May 21 18:41:10 homeLYnk user.notice usb-modeswitch: 1-1.4:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:09 homeLYnk user.notice usb-modeswitch: 1-1.4:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:09 homeLYnk user.notice usb-modeswitch: 1-1.4:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:08 homeLYnk user.notice usb-modeswitch: 1-1.4:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:08 homeLYnk user.notice usb-modeswitch: 1-1.4:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:08 homeLYnk user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:07 homeLYnk user.notice usb-modeswitch: 1-1.3:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
May 21 18:41:07 homeLYnk user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
May 21 18:41:06 homeLYnk user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
May 21 18:41:04 homeLYnk user.notice usb-modeswitch: 1-1.4:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:04 homeLYnk user.notice usb-modeswitch: 1-1.4:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:03 homeLYnk user.notice usb-modeswitch: 1-1.4:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:03 homeLYnk user.notice usb-modeswitch: 1-1.4:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:02 homeLYnk user.notice usb-modeswitch: 1-1.4:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:02 homeLYnk kern.notice kernel: [ 48.205944] sd 7:0:0:0: [sda] Attached SCSI removable disk
May 21 18:41:02 homeLYnk kern.notice kernel: [ 48.191003] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
May 21 18:41:02 homeLYnk kern.notice kernel: [ 48.186445] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
May 21 18:41:02 homeLYnk user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.183299] scsi7 : usb-storage 1-1.4:1.5
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.182737] usb-storage 1-1.4:1.5: USB Mass Storage device detected
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.180401] scsi6 : usb-storage 1-1.4:1.4
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.176273] usb-storage 1-1.4:1.4: USB Mass Storage device detected
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.171861] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.170232] option 1-1.4:1.3: GSM modem (1-port) converter detected
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.165572] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.161950] option 1-1.4:1.2: GSM modem (1-port) converter detected
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.154640] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.151831] option 1-1.4:1.0: GSM modem (1-port) converter detected
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.145870] usb 1-1.4: Manufacturer: HUAWEI
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.145837] usb 1-1.4: Product: HUAWEI Mobile
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.145796] usb 1-1.4: New USB device strings: Mfr=3, Product=2, SerialNumber=0
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.145725] usb 1-1.4: New USB device found, idVendor=12d1, idProduct=1506
May 21 18:41:01 homeLYnk kern.info kernel: [ 47.140670] usb 1-1.4: not running at top speed; connect to a high speed hub
May 21 18:41:00 homeLYnk kern.info kernel: [ 47.035715] usb 1-1.4: new full-speed USB device number 14 using ci_hdrc
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.942723] hub 1-1.3:1.0: 4 ports detected
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.941495] hub 1-1.3:1.0: USB hub found
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.938795] usb 1-1.3: Product: USB 2.0 Hub
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.938754] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.938686] usb 1-1.3: New USB device found, idVendor=03eb, idProduct=0902
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.829707] usb 1-1.3: new full-speed USB device number 13 using ci_hdrc
May 21 18:41:00 homeLYnk kern.info kernel: [ 46.537653] hub 1-1:1.0: 4 ports detected
This text is not altered in any form. The text Serial=? is exactly copied from log.

Serial ports:
Code:
/dev/RS232
/dev/RS485
/dev/ttyUSB1 HUAWEI - HUAWEI Mobile
/dev/ttyUSB2 HUAWEI - HUAWEI Mobile
/dev/ttyUSB3 HUAWEI - HUAWEI Mobile

I've found some references on the internet regarding the usb-modeswitch bug, but can't access the device from CLI.

Edit:

Just noticed the error and the serial ports are changed while posting the original text. The new log:
Code:
/dev/RS232
/dev/RS485
/dev/ttyUSB0 HUAWEI - HUAWEI Mobile
/dev/ttyUSB1 HUAWEI - HUAWEI Mobile
/dev/ttyUSB2 HUAWEI - HUAWEI Mobile

May 21 21:02:50 homeLYnk kern.err kernel: [ 8556.495625] option1 ttyUSB0: option_instat_callback: error -71
May 21 21:02:50 homeLYnk kern.err kernel: [ 8556.359623] option1 ttyUSB0: option_instat_callback: error -71
May 21 21:02:49 homeLYnk kern.err kernel: [ 8556.287622] option1 ttyUSB0: option_instat_callback: error -71

Nothing was done to the device. It changed by itself while writing this post. It looks like the modem is restarting itself.

-- 
I know this is HomeLynk, but it's of no use to ask SE, they are useless in that matter - that's why we are switching to LM.
Reply


Messages In This Thread
RE: How to control the KNX bus via SMS and send notices via SMS? - by zoltan - 21.05.2016, 18:58

Forum Jump: