no jakieś postępy mam, ale marne. Ciag dla PINu mam wyciągnięty.
Mianowicie po wysłaniu PINu i instrukcji przełączającej na cdma dioda na modemie gaśnie na chwile i stick przełącza na tryb mmc.
Ciag do przełączenia na cdma wysyłam taki: /bin/echo -ne "\xD2\x11\x00\x32\x70\x7E" > /dev/ttyUSB2
Cos nie tak z tym ciągiem ??
Instrukcje i PIN wysyłam na ttyUSB2, a polecenia AT an ttyACM0.
Sam już nie wiem co źle robię.
Ma ktoś jakieś pomysły czemu nie bengla ?
PS. próbowałem tez z innymi numerami PIN to samo :-(
Tutaj moj Log:
Jan 1 01:01:55 Gargoyle kern.notice kernel: [ 162.100000] scsi 0:0:0:0: CD-ROM AnyDATA MMC Storage 2.31 PQ: 0 ANSI: 2
Jan 1 01:02:24 Gargoyle kern.info kernel: [ 191.090000] usb 1-1: USB disconnect, device number 3
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.500000] usb 1-1: new high-speed USB device number 4 using ehci-platform
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.650000] usbserial_generic 1-1:1.0: GSM modem (1-port) converter detected
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.660000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.670000] usbserial_generic 1-1:1.1: GSM modem (1-port) converter detected
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.670000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.680000] usbserial_generic 1-1:1.2: GSM modem (1-port) converter detected
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.690000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.690000] usbserial_generic 1-1:1.3: GSM modem (1-port) converter detected
Jan 1 01:02:25 Gargoyle kern.info kernel: [ 191.700000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
Jan 1 01:02:25 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:25 Gargoyle user.notice hotplug-anydata: ttyUSB0 add
Jan 1 01:02:25 Gargoyle user.notice hotplug-anydata: dev not ttyUSB2
Jan 1 01:02:25 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata: ttyUSB1 add
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata: dev not ttyUSB2
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata: ttyUSB2 add
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata: dev = ttyUSB2
Jan 1 01:02:26 Gargoyle user.notice hotplug-anydata: Wysylanie PINu
Jan 1 01:02:27 Gargoyle kern.info kernel: [ 194.070000] usb 1-1: USB disconnect, device number 4
Jan 1 01:02:27 Gargoyle kern.err kernel: [ 194.070000] option: option_instat_callback: error -143
Jan 1 01:02:27 Gargoyle kern.info kernel: [ 194.070000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Jan 1 01:02:27 Gargoyle kern.info kernel: [ 194.080000] usbserial_generic 1-1:1.0: device disconnected
Jan 1 01:02:27 Gargoyle kern.info kernel: [ 194.090000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Jan 1 01:02:27 Gargoyle kern.info kernel: [ 194.100000] usbserial_generic 1-1:1.1: device disconnected
Jan 1 01:02:28 Gargoyle kern.info kernel: [ 194.130000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Jan 1 01:02:28 Gargoyle kern.info kernel: [ 194.130000] usbserial_generic 1-1:1.2: device disconnected
Jan 1 01:02:28 Gargoyle kern.err kernel: [ 194.140000] option: option_instat_callback: error -143
Jan 1 01:02:28 Gargoyle kern.info kernel: [ 194.140000] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Jan 1 01:02:28 Gargoyle kern.info kernel: [ 194.150000] usbserial_generic 1-1:1.3: device disconnected
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: Configured AnyDATA ADU890W for CDMA
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: ttyUSB3 add
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: dev not ttyUSB2
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: ttyUSB0 remove
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: dev not ttyUSB2
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: ttyUSB1 remove
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: dev not ttyUSB2
Jan 1 01:02:28 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata: ttyUSB2 remove
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata: dev = ttyUSB2
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata:
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata: ttyUSB3 remove
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata: dev not ttyUSB2
Jan 1 01:02:29 Gargoyle user.notice hotplug-anydata: koniec
Jan 1 01:02:31 Gargoyle kern.info kernel: [ 197.910000] usb 1-1: new high-speed USB device number 5 using ehci-platform
Jan 1 01:02:31 Gargoyle kern.info kernel: [ 198.060000] scsi1 : usb-storage 1-1:1.0
Jan 1 01:02:32 Gargoyle kern.notice kernel: [ 199.060000] scsi 1:0:0:0: CD-ROM AnyDATA MMC Storage 2.31 PQ: 0 ANSI: 2
Success
Nie wiem tylko co to ma dokładnie znaczyć:
Jan 1 01:02:28 Gargoyle kern.info kernel: [ 194.130000] usbserial_generic 1-1:1.2: device disconnected
Jan 1 01:02:28 Gargoyle kern.err kernel: [ 194.140000] option: option_instat_callback: error -143
Wywaliłem sleepa z pomiędzy instrukcji i zaskoczył !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Teraz działa prawie wszystko oprócz tego, ze po wyłączeniu routera nie wykonuje skryptu z Hotpluga. Musze odlaczyc modem i go ponownie podłączyć.
Problem rozwiązany Pomaga:
echo 0 > /sys/class/gpio/gpio8/value