1

Temat: Picocom i LEDE

Cześć,

Czy ktoś korzysta może z picocom na LEDE? Nie jestem w stanie skomunikować się z modemem (architektura mt7620). Korzystam z ostatniego snapshot'a z eko.one.pl

Tak wygląda domyślna konfiguracja:

root@LEDE:~# picocom /dev/ttyUSB1
picocom v1.7

port is        : /dev/ttyUSB1
flowcontrol    : none
baudrate is    : 9600
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        :
omap is        :
emap is        : crcrlf,delbs,

2

Odp: Picocom i LEDE

picocom -b 115200  /dev/ttyUSB1

Używam od zawsze picocoma.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Picocom i LEDE

Niestety nadal nie działa. Modem ZTE MF831 po przełączeniu wygląda tak (usbserial został załadowany ręcznie):

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.01 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1244 Rev=f1.55
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE Wireless Ethernet Adapter
S:  SerialNumber=MF8310ZTED000000***********************_*_****&&&&&&&&&&&&&&&&&0
C:* #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbserial_generic
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbserial_generic
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
I:* If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbserial_generic
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Połączenie na interfejsie cdc też nie działa. Po windowsem mogę się skomunikować z modemem bez problemów.

Logi po przełączeniu modemu na inny tryb:

Wed May 31 21:07:40 2017 kern.info kernel: [30485.308896] usb 1-1: USB disconnect, device number 3
Wed May 31 21:07:40 2017 kern.info kernel: [30485.319914] cdc_ether 1-1:1.0 usb0: unregister 'cdc_ether' usb-101c0000.ehci-1, CDC Ethernet Device
Wed May 31 21:07:40 2017 daemon.notice netifd: Network device 'usb0' link is down
Wed May 31 21:07:40 2017 daemon.notice netifd: Interface 'wan' has link connectivity loss
Wed May 31 21:07:40 2017 daemon.notice netifd: Interface 'wan6' has link connectivity loss
Wed May 31 21:07:40 2017 daemon.notice netifd: Interface 'wan' is disabled
Wed May 31 21:07:40 2017 daemon.notice netifd: Interface 'wan6' is disabled
Wed May 31 21:07:40 2017 daemon.notice netifd: wan (962): udhcpc: SIOCGIFINDEX: No such device
Wed May 31 21:07:40 2017 daemon.notice netifd: wan (962): udhcpc: received SIGTERM
Wed May 31 21:07:40 2017 kern.info kernel: [30485.749276] usb 1-1: new high-speed USB device number 4 using ehci-platform
Wed May 31 21:07:40 2017 daemon.err odhcp6c[966]: Failed to send DHCPV6 message to ff02::1:2 (Permission denied)
Wed May 31 21:07:41 2017 kern.info kernel: [30485.881438] cdc_ether 1-1:1.0 usb0: register 'cdc_ether' at usb-101c0000.ehci-1, CDC Ethernet Device, 36:4b:50:b7:ef:da
Wed May 31 21:07:41 2017 kern.err kernel: [30485.905398] cdc_ether 1-1:1.0 usb0: kevent 12 may have been dropped
Wed May 31 21:07:41 2017 kern.err kernel: [30485.918214] cdc_ether 1-1:1.0 usb0: kevent 11 may have been dropped
Wed May 31 21:07:41 2017 kern.err kernel: [30485.941691] cdc_ether 1-1:1.0 usb0: kevent 11 may have been dropped
Wed May 31 21:07:41 2017 daemon.notice netifd: Interface 'wan' is enabled
Wed May 31 21:07:41 2017 daemon.notice netifd: Interface 'wan6' is enabled
Wed May 31 21:07:41 2017 kern.info kernel: [30485.974393] usb-storage 1-1:1.5: USB Mass Storage device detected
Wed May 31 21:07:41 2017 kern.info kernel: [30486.001900] scsi host2: usb-storage 1-1:1.5
Wed May 31 21:07:42 2017 kern.notice kernel: [30486.625591] scsi 2:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
Wed May 31 21:07:42 2017 kern.notice kernel: [30486.654977] scsi 2:0:0:1: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 2
Wed May 31 21:07:42 2017 kern.notice kernel: [30486.680230] sd 2:0:0:1: [sda] Attached SCSI removable disk
Wed May 31 21:07:42 2017 daemon.err block: Unkown action change
Wed May 31 21:07:42 2017 daemon.err block: Unkown action change
Wed May 31 21:07:42 2017 daemon.info dnsmasq[1194]: exiting on receipt of SIGTERM
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: started, version 2.76 cachesize 150
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: DNS service limited to local subnets
Wed May 31 21:07:42 2017 daemon.info dnsmasq-dhcp[2675]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: using local addresses only for domain lan
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: reading /tmp/resolv.conf.auto
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: using local addresses only for domain lan
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: using nameserver 192.168.8.1#53
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: read /etc/hosts - 4 addresses
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: read /tmp/hosts/odhcpd - 1 addresses
Wed May 31 21:07:42 2017 daemon.info dnsmasq[2675]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Wed May 31 21:07:42 2017 daemon.info dnsmasq-dhcp[2675]: read /etc/ethers - 0 addresses

4

Odp: Picocom i LEDE

Czemu wymusiłeś usbserial_generic na nim zamiast modułu option? Może właśnie te interfejsy to nie są interfejsy szeregowy po których możesz gadać z modemem.

PS. Przełączałeś w ten sposób? https://technicalexperiments.wordpress. … cdc_ether/

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Picocom i LEDE

Moduł option nie zna urządzenia 19d2:1244. Interfejs z id 3 powinien działać.

Tak próbowałem, niestety ten sam problem.

6 (edytowany przez Cezary 2017-05-31 21:56:11)

Odp: Picocom i LEDE

To wymuś załadowanie option, naucz go obsługiwać ten modem.

Zrób gcom -d /dev/ttyUSBx info

Jak nie będzie odpowiadał to masz problem z komunikacją z modemem a a nie z picocomem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Picocom i LEDE

Option jednak ładuje jeden interfejs:

{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1244, 0xff, 0xff, 0xff) },

A gcom nie działa niestety:

root@LEDE:~# comgt -d /dev/ttyUSB0 info
##### Wireless WAN Modem Configuration #####
Product text:
====

====
Manufacturer:           IMEI and Serial Number: comgt 23:09:17 -> -- Error Report --
comgt 23:09:17 -> ---->                       ^
comgt 23:09:17 -> Error @776, line 45, String is shorter than second argument. (7)

root@LEDE:~# comgt -d /dev/ttyUSB1 info
##### Wireless WAN Modem Configuration #####
Product text:
====

====
Manufacturer:           IMEI and Serial Number: comgt 23:09:32 -> -- Error Report --
comgt 23:09:32 -> ---->                       ^
comgt 23:09:32 -> Error @776, line 45, String is shorter than second argument. (7)

root@LEDE:~# comgt -d /dev/ttyUSB2 info
##### Wireless WAN Modem Configuration #####
Product text:
====

====
Manufacturer:           IMEI and Serial Number: comgt 23:09:45 -> -- Error Report --
comgt 23:09:45 -> ---->                       ^
comgt 23:09:45 -> Error @776, line 45, String is shorter than second argument. (7)

root@LEDE:~# comgt -d /dev/ttyUSB3 info
##### Wireless WAN Modem Configuration #####
Product text:
====
comgt 23:09:49 -> -- Error Report --
comgt 23:09:49 -> ---->                 ^
comgt 23:09:49 -> Error @187, line 10, Could not write to COM device. (1)

8

Odp: Picocom i LEDE

Czyli w ogóle nie możesz po tym interfejsie gadać z modem z jakiegoś powodu. Szkoda, bo wg internetu na usb2 powinien się odezwać. On ma oryginalny soft zte w sobie, czy brandowany jest przez kogoś?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Picocom i LEDE

Oprogramowanie jest od beeline.ru
Mam tam odblokowany telnet.
Zastanawia mnie tylko dlaczego pod windowsem działa bez problemu. Postaram się jeszcze sprawdzić na innym routerze (inna architektura).