Hi
I have JT421E module with MiniPCIe to USB converter (with Sim slot)
and I want to use it with my Nano Pi Openwrt Router
lsusb shows this:
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=258d ProdID=2000 Rev= 3.07
S: Manufacturer=Sequans Communications
S: Product=SQN
S: SerialNumber=*******************
C:* #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=300mA
A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E: Ad=84(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= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Openwrt Added new interface As eth1 with module mac address
But i don't know How could I access the Internet via this Interface
1 Like
Create a new, or edit the existing WAN interface, put it in the WAN zone, and point it towards eth1.
The interface does not get any IP in Dhcp-client mode
or How could I set APN on Modem
In that case you need to define it as a LTE device when creating the WAN interface.
You'll probably need to install some additional modules, like luci-proto-3g.
This isn't one of those LTE modules runnig Android, you can access it by browser?
That's the HW related doc, you need the user/usage kind of manual ...
Try to identify what chip it uses, it might be a way to look for further info
about the usage - the product name doesn't give any useful hits on google.
did it expose any USB ports, too ?
mk24
December 2, 2021, 1:06pm
7
This probably needs to use the 3G ppp drivers. It doesn't look like a very modern card.
Also make sure your service provider offers a signal on one of the uncommon LTE frequency bands it supports (42 or 43). Those bands are not commonly used around the world.
A good way to test this is to plug into a Linux desktop / laptop and confirm the modem can reach the Internet before trying with OpenWrt. Observe the "big Linux" logs to see which drivers are in use.
bmork
December 2, 2021, 2:58pm
8
This shows an ACM function without a driver attached, mathcing the hardware manual. Install kmod-usb-acm. Hopefully you'll get an AT command channel then
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=258d ProdID=2000 Rev= 3.07
S: Manufacturer=Sequans Communications
S: Product=SQN
S: SerialNumber=**********************
C:* #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=300mA
A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E: Ad=84(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= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
AndrewZ
December 2, 2021, 9:08pm
10
Now install a terminal like picocom
and test your ports:
picocom /dev/ttyACM0
picocom /dev/ttyACM1
Try to find AT commands guide for your modem.
In the mean time you can get a list of supported commands by sending AT+CLAC
to one of the ports.
You may need to find a command that you need to send to the modem to establish a connection.
1 Like
Fri Dec 3 09:16:19 2021 kern.info kernel: [34073.710289] cdc_acm 3-1:1.2: ttyACM0: USB ACM device
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: add network interface eth1: event processed
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: event reported: action=add, name=eth1, subsystem=net
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: interface 'tlte' is set to configure device '/sys/devices/platform/soc/1c1d000.usb/usb3/3-1'
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: now waiting for modem at sysfs path /sys/devices/platform/soc/1c1d000.usb/usb3/3-1
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: error: modem not detected at sysfs path
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: add serial interface ttyACM0: event processed
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: event reported: action=add, name=ttyACM0, subsystem=tty
Fri Dec 3 09:16:20 2021 user.notice ModemManager: hotplug: already waiting for modem at sysfs path /sys/devices/platform/soc/1c1d000.usb/usb3/3-1
Fri Dec 3 09:16:25 2021 user.notice ModemManager: hotplug: error: modem not detected at sysfs path
Fri Dec 3 09:16:30 2021 daemon.info [2890]: <info> [device /sys/devices/platform/soc/1c1d000.usb/usb3/3-1] creating modem with plugin 'generic' and '2' ports
Fri Dec 3 09:16:30 2021 daemon.info [2890]: <info> [base-manager] modem for device '/sys/devices/platform/soc/1c1d000.usb/usb3/3-1' successfully created
Fri Dec 3 09:16:30 2021 user.notice ModemManager: hotplug: error: modem not detected at sysfs path
Fri Dec 3 09:16:30 2021 daemon.warn [2890]: <warn> [modem1] couldn't load supported charsets: Operation not supported
Fri Dec 3 09:16:30 2021 daemon.warn [2890]: <warn> [modem1] couldn't load power state: Couldn't parse +CFUN response: +CFUN:1
Fri Dec 3 09:16:31 2021 daemon.warn [2890]: <warn> [modem1/sim0] couldn't load operator identifier: SIM returned invalid MNC length 255 (should be either 2 or 3)
Fri Dec 3 09:16:31 2021 daemon.warn [2890]: <warn> [modem1/sim0] couldn't load list of emergency numbers: Failed to parse CRSM query result '+CRSM: 105,129'
Fri Dec 3 09:16:31 2021 daemon.warn [2890]: <warn> [modem1] couldn't load list of own numbers: Operation not allowed
Fri Dec 3 09:16:31 2021 daemon.info [2890]: <info> [modem1] state changed (unknown -> disabled)
Fri Dec 3 09:16:35 2021 user.notice ModemManager: hotplug: modem exported successfully at /sys/devices/platform/soc/1c1d000.usb/usb3/3-1
Fri Dec 3 09:16:35 2021 user.notice ModemManager: hotplug: setting interface 'tlte' as available
Log from ModemManager
AT!
AT&F
AT+BGLTEPLMN
AT+CAVIMS
AT+CCLK
AT+CEER
AT+CEMODE
AT+CEREG
AT+CESQ
AT+CFUN
AT+CGACT
AT+CGATT
AT+CGAUTH
AT+CGCMOD
AT+CGCONTRDP
AT+CGDCONT
AT+CGDSCONT
AT+CGEQOS
AT+CGEQOSRDP
AT+CGEREP
AT+CGMI
AT+CGMM
AT+CGMR
AT+CGPADDR
AT+CGPIAF
AT+CGSCONTRDP
AT+CGSN
AT+CGTFT
AT+CGTFTRDP
AT+CIMI
AT+CIND
AT+CLAC
AT+CLCK
AT+CMEC
AT+CMEE
AT+CMER
AT+CMGD
AT+CMGF
AT+CMGL
AT+CMGR
AT+CMGS
AT+CMGW
AT+CMSS
AT+CNMI
AT+CNUM
AT+COPN
AT+COPS
AT+CPAS
AT+CPIN
AT+CPIN2
AT+CPINR
AT+CPMS
AT+CPWD
AT+CRSM
AT+CSCA
AT+CSIM
AT+CSMS
AT+CSQ
AT+CTZR
AT+CTZU
AT+SCPWD
AT+SMART
AT+SQNAPNMODE
AT+SQNAUTOCONNECT
AT+SQNBANDS
AT+SQNBYPASS
AT+SQNCFGDPR
AT+SQNCLI
AT+SQNCTM
AT+SQNDPRMODE
AT+SQNHPLMN
AT+SQNSTKAPNE
AT+SQNUSBENUM
AT+SRSM
AT+TISTESTMODE
AT+UPGRADEDONE
AT+VZWRSRP
AT+VZWRSRQ
AT+WS46
AT+ZMBLER
AT+ZMCALI
AT+ZMCELLMEASINFO
AT+ZMCGMR
AT+ZMHARQ
AT+ZMMAC
AT+ZMSINR
AT+ZMSN
ATE0
ATE1
AT^AUTOATT
AT^CACAP
AT^CARDMODE
AT^CSG
AT^DIALMODE
AT^DNSR
AT^HVER
AT^IPCLOSE
AT^IPGETDATA
AT^IPINIT
AT^IPOPEN
AT^IPSENDEX
AT^MODE
AT^MSO
AT^RESET
AT^RFSW
AT^SYSINFO
AT^TIME
OK
picocom on ttyACM0
AndrewZ
December 3, 2021, 6:49am
13
Please check with AT+SQNUSBENUM?
and AT+SQNUSBENUM=?
AndrewZ:
AT+SQNUSBENUM?
ecm+acm
OK
AT+SQNUSBENUM=?
("none","ecm+acm+ecm","ecm+acm","ecm+ecm","ecm","mbim","mbim+ecm","mbim+ecm+acm","ums_win_only->ecm","ums_win_only->ecm+acm","ums_win_only->ecm+acm+ecm","mbim_win8_only_ums_win_only->ecm","mbim_win8_only_ums_win_only->ecm+acm","mbim_win8_only_ums_win_only->ecm+acm+ecm","rndis","auto")[,1]
AndrewZ
December 3, 2021, 7:57am
15
I would try to enable MBIM with AT+SQNUSBENUM="mbim+ecm+acm"
root@ZeroPi:~# ls -l /dev/cdc-wdm0
crw------- 1 root root 180, 176 Dec 3 11:47 /dev/cdc-wdm0
I Got new interface called wwan0
AndrewZ
December 3, 2021, 8:26am
17
AndrewZ:
AT+SQNUSBENUM?
how could I make this changes permanent
Fri Dec 3 12:08:39 2021 daemon.notice netifd: LTE (13607): modem available at /org/freedesktop/ModemManager1/Modem/1
Fri Dec 3 12:08:39 2021 daemon.notice netifd: LTE (13607): starting connection with apn 'mtn'...
Fri Dec 3 12:08:39 2021 daemon.notice netifd: LTE (13607): error: modem has no Simple capabilities
Fri Dec 3 12:08:39 2021 daemon.notice netifd: LTE (13664): stopping network
Fri Dec 3 12:08:39 2021 daemon.notice netifd: LTE (13664): couldn't load bearer path
Fri Dec 3 12:08:39 2021 daemon.notice netifd: Interface 'LTE' is now down
AndrewZ
December 3, 2021, 9:10am
20
I'm not using ModemManager and cannot comment on this log.
I would delete the interface configured and test manually:
umbim -n -d /dev/cdc-wdm0 caps
umbim -n -t 3 -d /dev/cdc-wdm0 pinstate
umbim -n -t 4 -d /dev/cdc-wdm0 subscriber
umbim -n -t 5 -d /dev/cdc-wdm0 registration
umbim -n -t 6 -d /dev/cdc-wdm0 attach
umbim -n -t 7 -d /dev/cdc-wdm0 connect {your APN here}
umbim -n -t 8 -d /dev/cdc-wdm0 config
1 Like