Hi, I am using RAK7243C (Rapsberry Pi 3 + Quectel EG95 LTE module) with BalenaOS and I’m trying to get the LTE module to work. It works with regular raspbian firmware, so hardware issues can be ruled out.
What I have tried:
-
mount -o remount,rw /
and
export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
-
dtoverlays:
"pi3-disable-bt", "disable-bt","uart-ctsrts"
-
systemctl disable hciuart
-
Adding UDEV rules (/etc/udev/rules.d/98.rules)
I also tried to set UDEV=0 without success.
ACTION=="add|change|move", KERNEL=="soc", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
ACTION!="add|change|move|bind", GOTO="mm_whitelist_end", DEVPATH=="/devices/platform/soc/3f201000.serial/tty/ttyAMA0", ENV{ID_MM_DEVICE_PROCESS}="1", LABEL="mm_whitelist_end"
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0195", NAME="LTE"
-
mmcli for testing:
mmcli -S
andmmcli -L
finds no modems. -
Enabling Module with GPIO bash script provided by RAK Wireless.(blue LED is indicating that the module is on).
-
minicom:
minicom -D /dev/ttyAMA0 -b 115200
I am able to communicate with the module using minicom to get responses from it, but the communication is bad, it doesn’t always take in my commands and spams random characters like if the baud rate would be wrong, check screenshot below:
(It does at least show up correct carriers of my location, but some characters seems wrong. )
Logs:
dmesg
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=tty1 rootfstype=ext4 rootwait root=PARTUUID=1f3ff645-02 rootwait
[ 0.000891] console [tty1] enabled
[ 0.943911] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
ModemManager (–debug)
root@d60fd98:~# journalctl -u ModemManager -f
-- Logs begin at Mon 2020-01-27 17:10:56 UTC. --
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708321] [plugin manager] task 2: no active tasks to probe
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708407] [plugin manager] task 2,eth0: deferred task completed, no suggested plugin
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708497] [plugin manager] task 2,eth0: finished in '2.500322' seconds
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708601] [plugin manager] task 2,eth0: not supported by any plugin
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708710] [device /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.1] fully ignoring port 'net/eth0' from now on
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708808] [plugin manager] task 2: no more ports to probe
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.708894] [plugin manager] task 2: finished in '2.500962' seconds
May 04 15:48:58 d60fd98 ModemManager[2465]: [1588607338.709011] Couldn't check support for device '/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.1': not supported by any plugin
May 04 15:49:01 d60fd98 ModemManager[2465]: [1588607341.507305] Parsing AT got: 'Serial command timed out'
May 04 15:49:01 d60fd98 ModemManager[2465]: [1588607341.507692] (ttyAMA0): --> 'AT<CR>'
May 04 15:49:04 d60fd98 ModemManager[2465]: [1588607344.507337] Parsing AT got: 'Serial command timed out'
May 04 15:49:04 d60fd98 ModemManager[2465]: [1588607344.507707] (ttyAMA0): --> 'AT<CR>'
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.507335] Parsing AT got: 'Serial command timed out'
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.507561] (tty/ttyAMA0) port is not AT-capable
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.507763] (tty/ttyAMA0) probing QCDM...
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.507867] (ttyAMA0) device open count is 0 (close)
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.507957] (ttyAMA0) closing serial port...
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.508105] (ttyAMA0) serial port closed
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.508235] (ttyAMA0) forced to close port
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.508659] (ttyAMA0) opening serial port...
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.508916] (ttyAMA0) device open count is 1 (open)
May 04 15:49:07 d60fd98 ModemManager[2465]: [1588607347.509115] (ttyAMA0): --> 7e 00 78 f0 7e
May 04 15:49:10 d60fd98 ModemManager[2465]: [1588607350.507532] (ttyAMA0): --> 7e 00 78 f0 7e
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.506934] (tty/ttyAMA0) port is not QCDM-capable
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507171] (Quectel) [ttyAMA0] filtered by vendor strings
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507285] [plugin manager] task 0,ttyAMA0: checking with plugin 'Via CBP7'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507464] (Via CBP7) [ttyAMA0] probe required: 'at, at-vendor, at-product'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507571] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507737] (ttyAMA0) device open count is 0 (close)
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507830] (ttyAMA0) closing serial port...
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.507980] (ttyAMA0) serial port closed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508112] (ttyAMA0) forced to close port
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508260] (Via CBP7) [ttyAMA0] filtered as no vendor/product strings given
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508361] [plugin manager] task 0,ttyAMA0: checking with plugin 'Iridium'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508510] (Iridium) [ttyAMA0] probe required: 'at, at-vendor, at-product'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508613] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508770] (Iridium) [ttyAMA0] filtered as no vendor/product strings given
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.508868] [plugin manager] task 0,ttyAMA0: checking with plugin 'Cinterion'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509000] (Cinterion) [ttyAMA0] probe required: 'at, at-vendor'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509101] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509247] (Cinterion) [ttyAMA0] filtered by vendor strings
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509339] [plugin manager] task 0,ttyAMA0: checking with plugin 'Nokia'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509477] (Nokia) [ttyAMA0] probe required: 'at, at-vendor, at-icera'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509577] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509721] (Nokia) [ttyAMA0] filtered by vendor strings
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509837] [plugin manager] task 0,ttyAMA0: checking with plugin 'u-blox'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.509972] (u-blox) [ttyAMA0] probe required: 'at, at-vendor'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510070] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510214] (u-blox) [ttyAMA0] filtered by vendor strings
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510307] [plugin manager] task 0,ttyAMA0: checking with plugin 'Telit'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510438] (Telit) [ttyAMA0] probe required: 'at, at-vendor'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510537] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510680] (Telit) [ttyAMA0] filtered by vendor strings
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510775] [plugin manager] task 0,ttyAMA0: checking with plugin 'Generic'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.510904] (Generic) [ttyAMA0] probe required: 'at, qcdm'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.511010] (tty/ttyAMA0) port probing finished: no more probings needed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.511155] [plugin manager] task 0,ttyAMA0: found best plugin for port (Generic)
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.511249] [plugin manager] task 0,ttyAMA0: finished in '17.337522' seconds
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.511368] [plugin manager] task 0: no more ports to probe
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.511451] [plugin manager] task 0: finished in '17.338209' seconds
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.511590] [device /sys/devices/platform/soc] creating modem with plugin 'Generic' and '1' ports
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.518316] Could not grab port (tty/ttyAMA0): 'Cannot add port 'tty/ttyAMA0', unhandled serial type'
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.518552] Modem (Generic) '/sys/devices/platform/soc' completely disposed
May 04 15:49:13 d60fd98 ModemManager[2465]: [1588607353.518654] Couldn't create modem for device '/sys/devices/platform/soc': Failed to find primary AT port
The ModemManager gives the error Could not grab port (tty/ttyAMA0): 'Cannot add port ‘tty/ttyAMA0’, unhandled serial type’ for the used port, I have not been able to find any information on what that error means. It looks maybe like the communication is so broken that it can’t get any proper responses from it(as minicom also had problems).
Thanks in advance!