Hi,
I got some extra sim cards to play with the modem a bit, but can't really find any docs on how to get a data connection going.
I found the AT command specification, and the hardware interface description, and from that side everything seems to connect and respond fine, but nothing really for the steps required after that on the linux side of things.
The letux wwan script also doesn't help here, with just a #todo and it sending a command to get the module voltage in the pyra section.
It would be nice to know what all these ttyACM and wwan0/1 ethernet ports are for, and how to use them properly.
Do you have any more docs/sdk stuff from gemalto on this ?
Hi,
Am 02.08.2019 um 16:17 schrieb aTc atc@k-n-p.org:
Hi,
I got some extra sim cards to play with the modem a bit, but can't really find any docs on how to get a data connection going.
I found the AT command specification, and the hardware interface description, and from that side everything seems to connect and respond fine, but nothing really for the steps required after that on the linux side of things.
The letux wwan script also doesn't help here, with just a #todo and it sending a command to get the module voltage in the pyra section.
It would be nice to know what all these ttyACM and wwan0/1 ethernet ports are for, and how to use them properly.
Do you have any more docs/sdk stuff from gemalto on this ?
Unfortunatley, there isn't much more than the AT commands. And the 3GPP standards. The ttyACM ports are for AT commands - some do echo others don't. And some can send unsolicited messages. Allare more or less running in parallel. They have some predefined purposes "Application", "NMEA", "Modem".
So usually user-space uses some middleware taking care of all the AT commands and talking to the modem though one of the ttyACM ports. Examples of such middleware are FSO and ofono or RIL (Android).
The root/pin, root/dial and root/tam scripts do that with pure shell scripts and show several commands.
There is also https://github.com/akemnade/simple-gsmgui
But this all is for telephony and not data.
There is the root/wwan script and indeed it has only a stub for the Gemalto modem because I didn't find time to finish it and setup data connections myself.
The wwan ports seem to be instantiated automatically by the kernel because the module appears to support some standard-USB protocol. There is no special setup to make that happen. Maybe Ethernet over USB? But I do not know. I think dmesg and maybe /sys reveals something about these network interfaces and which driver is responsible.
So I think it could suffice to ifconfig up and add some routing table to make them work. Maybe it also needs some AT command to connect in 2G, 3G or 4G data mode. This should be in the list of AT commands.
The general approach should not be extremely different from the OPTION GTM601, just the vendor private AT commands differ.
Hope this helps to move a little forward.
BR, Nikolaus
If there is a separate pyra_defconfig it suffices to replace
CONFIG_GENERIC_ADC_BATTERY=m
by
#CONFIG_GENERIC_ADC_BATTERY is not configured
This removes the driver from the list of modules and it will not be built and create the duplicate entry in /sys/class/power_supply
If it is to be removed/suppressed without recompiling the kernel:
1. rmmod generic_adc_battery 2. or write a blacklist entry for /etc/modprobe.d echo blacklist generic_adc_battery >/etc/modprobe.d/gab-blacklist.conf 3. or remove the kernel module and run depmod -a once: rm /lib/modules/4.19.*-letux+/kernel/drivers/power/supply/generic-adc-battery.ko
Hope one of these ideas works well. At the moment I'd recommend #2 since it is connected to the PyraOS rootfs config and just a static file and not a shell command to be run during boot.
BR, Nikolaus
Am Freitag, den 02.08.2019, 16:50 +0200 schrieb H. Nikolaus Schaller
Hm, isn't that exactly what ModemManager should handle? https://www.freedesktop.org/wiki/Software/ModemManager/
"ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB dongles, bluetooth-paired telephones, or professional RS232/USB devices with external power supplies, ModemManager is able to prepare and configure the modems and setup connections with them."
Is the Gemalto-Modem that non-standard that it doesn't use the standard commands?
Hi,
Am 02.08.2019 um 16:17 schrieb aTc atc@k-n-p.org:
Hi,
I got some extra sim cards to play with the modem a bit, but can't really find any docs on how to get a data connection going.
I found the AT command specification, and the hardware interface description, and from that side everything seems to connect and respond fine, but nothing really for the steps required after that on the linux side of things.
The letux wwan script also doesn't help here, with just a #todo and it sending a command to get the module voltage in the pyra section.
It would be nice to know what all these ttyACM and wwan0/1 ethernet ports are for, and how to use them properly.
Do you have any more docs/sdk stuff from gemalto on this ?
Unfortunatley, there isn't much more than the AT commands. And the 3GPP standards. The ttyACM ports are for AT commands - some do echo others don't. And some can send unsolicited messages. Allare more or less running in parallel. They have some predefined purposes "Application", "NMEA", "Modem".
So usually user-space uses some middleware taking care of all the AT commands and talking to the modem though one of the ttyACM ports. Examples of such middleware are FSO and ofono or RIL (Android).
The root/pin, root/dial and root/tam scripts do that with pure shell scripts and show several commands.
There is also https://github.com/akemnade/simple-gsmgui
But this all is for telephony and not data.
There is the root/wwan script and indeed it has only a stub for the Gemalto modem because I didn't find time to finish it and setup data connections myself.
The wwan ports seem to be instantiated automatically by the kernel because the module appears to support some standard-USB protocol. There is no special setup to make that happen. Maybe Ethernet over USB? But I do not know. I think dmesg and maybe /sys reveals something about these network interfaces and which driver is responsible.
So I think it could suffice to ifconfig up and add some routing table to make them work. Maybe it also needs some AT command to connect in 2G, 3G or 4G data mode. This should be in the list of AT commands.
The general approach should not be extremely different from the OPTION GTM601, just the vendor private AT commands differ.
Hope this helps to move a little forward.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
Am 02.08.2019 um 17:51 schrieb Michael Mrozek EvilDragon@openpandora.org:
Am Freitag, den 02.08.2019, 16:50 +0200 schrieb H. Nikolaus Schaller
Hm, isn't that exactly what ModemManager should handle? https://www.freedesktop.org/wiki/Software/ModemManager/
Yes, this is also an alternative. There are several options and nobody know all of them...
"ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections. Whether built-in devices, USB dongles, bluetooth-paired telephones, or professional RS232/USB devices with external power supplies, ModemManager is able to prepare and configure the modems and setup connections with them."
Is the Gemalto-Modem that non-standard that it doesn't use the standard commands?
All Modems have vendor specific AT commands, but usually such software has config tables and "knows" about many of them.
So you should look at the documentation of ModemManager if it supports the PLS8 out of the box.
BR, Nikolaus
Hi,
Am 02.08.2019 um 16:17 schrieb aTc atc@k-n-p.org:
Hi,
I got some extra sim cards to play with the modem a bit, but can't really find any docs on how to get a data connection going.
I found the AT command specification, and the hardware interface description, and from that side everything seems to connect and respond fine, but nothing really for the steps required after that on the linux side of things.
The letux wwan script also doesn't help here, with just a #todo and it sending a command to get the module voltage in the pyra section.
It would be nice to know what all these ttyACM and wwan0/1 ethernet ports are for, and how to use them properly.
Do you have any more docs/sdk stuff from gemalto on this ?
Unfortunatley, there isn't much more than the AT commands. And the 3GPP standards. The ttyACM ports are for AT commands - some do echo others don't. And some can send unsolicited messages. Allare more or less running in parallel. They have some predefined purposes "Application", "NMEA", "Modem".
So usually user-space uses some middleware taking care of all the AT commands and talking to the modem though one of the ttyACM ports. Examples of such middleware are FSO and ofono or RIL (Android).
The root/pin, root/dial and root/tam scripts do that with pure shell scripts and show several commands.
There is also https://github.com/akemnade/simple-gsmgui
But this all is for telephony and not data.
There is the root/wwan script and indeed it has only a stub for the Gemalto modem because I didn't find time to finish it and setup data connections myself.
The wwan ports seem to be instantiated automatically by the kernel because the module appears to support some standard-USB protocol. There is no special setup to make that happen. Maybe Ethernet over USB? But I do not know. I think dmesg and maybe /sys reveals something about these network interfaces and which driver is responsible.
So I think it could suffice to ifconfig up and add some routing table to make them work. Maybe it also needs some AT command to connect in 2G, 3G or 4G data mode. This should be in the list of AT commands.
The general approach should not be extremely different from the OPTION GTM601, just the vendor private AT commands differ.
Hope this helps to move a little forward.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
-- Mit freundlichen Grüßen,
Michael Mrozek
OpenPandora GmbH Geschäftsführer: Michael Mrozek
Schäffbräustr. 11 85049 Ingolstadt Deutschland Tel.: 0841 / 990 5548 http://www.openpandora.de/ HRB 4879, Amtsgericht Ingolstadt
eMail: mrozek@openpandora.org
Am Freitag, den 02.08.2019, 16:50 +0200 schrieb H. Nikolaus Schaller:
Hi,
here is a thread about the ModemManager and the Cinterion PLS8 from 2013: https://lists.freedesktop.org/archives/modemmanager-devel/2015-August/002162...
Just follow the "Next Message" threads. They got it to work, just didn't have ModemManager properly setup.
Maybe that helps :)
Hi,
Am 02.08.2019 um 16:17 schrieb aTc atc@k-n-p.org:
Hi,
I got some extra sim cards to play with the modem a bit, but can't really find any docs on how to get a data connection going.
I found the AT command specification, and the hardware interface description, and from that side everything seems to connect and respond fine, but nothing really for the steps required after that on the linux side of things.
The letux wwan script also doesn't help here, with just a #todo and it sending a command to get the module voltage in the pyra section.
It would be nice to know what all these ttyACM and wwan0/1 ethernet ports are for, and how to use them properly.
Do you have any more docs/sdk stuff from gemalto on this ?
Unfortunatley, there isn't much more than the AT commands. And the 3GPP standards. The ttyACM ports are for AT commands - some do echo others don't. And some can send unsolicited messages. Allare more or less running in parallel. They have some predefined purposes "Application", "NMEA", "Modem".
So usually user-space uses some middleware taking care of all the AT commands and talking to the modem though one of the ttyACM ports. Examples of such middleware are FSO and ofono or RIL (Android).
The root/pin, root/dial and root/tam scripts do that with pure shell scripts and show several commands.
There is also https://github.com/akemnade/simple-gsmgui
But this all is for telephony and not data.
There is the root/wwan script and indeed it has only a stub for the Gemalto modem because I didn't find time to finish it and setup data connections myself.
The wwan ports seem to be instantiated automatically by the kernel because the module appears to support some standard-USB protocol. There is no special setup to make that happen. Maybe Ethernet over USB? But I do not know. I think dmesg and maybe /sys reveals something about these network interfaces and which driver is responsible.
So I think it could suffice to ifconfig up and add some routing table to make them work. Maybe it also needs some AT command to connect in 2G, 3G or 4G data mode. This should be in the list of AT commands.
The general approach should not be extremely different from the OPTION GTM601, just the vendor private AT commands differ.
Hope this helps to move a little forward.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
I've dug though the gemalto forums a bit and found that they've hidden the docs here : https://files.c-wm.net/index.php/s/GRPgoz5m7a73c54?path=/pls8/pls8-e/pls8-e_...
Password : Gemalto019
als3_pls8_an39_usb_interface_v01.pdf has the info on all the ports the modem creates, and on how to get a connection going.
In Pyraos things work slightly different from the docs, but to get a data connection going :
- Wait for the modem to show up. - Send the following commands to the modem on /dev/ttyACM1 (i'm just using "picocom /dev/ttyACM1")
# unlock sim card (where 0000 is your PIN) AT+CPIN=0000 OK # attach to the network AT+CGATT=1 OK # create connection (use your provider's apn) AT+CGDCONT=1,"IP","live.vodafone.com" OK # connect it to wwan0 AT^SWWAN=1,1,1 OK
- exit terminal (on picocom ctrl-a + ctrl-q ) - get an ip address, etc : "dhclient wwan0" - done. check "ip a" , "ip r" and /etc/resolv.conf
Am 02.08.2019 um 22:49 schrieb aTc atc@k-n-p.org:
als3_pls8_an39_usb_interface_v01.pdf has the info on all the ports the modem creates, and on how to get a connection going.
In Pyraos things work slightly different from the docs, but to get a data connection going :
- Wait for the modem to show up.
- Send the following commands to the modem on /dev/ttyACM1 (i'm just using "picocom /dev/ttyACM1")
Yes, picocom can also be used. femtocom is just one magnitude smaller :)
# unlock sim card (where 0000 is your PIN) AT+CPIN=0000 OK # attach to the network AT+CGATT=1 OK # create connection (use your provider's apn) AT+CGDCONT=1,"IP","live.vodafone.com" OK # connect it to wwan0 AT^SWWAN=1,1,1 OK
- exit terminal (on picocom ctrl-a + ctrl-q )
- get an ip address, etc : "dhclient wwan0"
- done. check "ip a" , "ip r" and /etc/resolv.conf
Oh, great! I think it is not difficult to add it to the wwan script. Pin is defined by the pin script.
Something like
( echo "AT^SBV"; sleep 1 # show battery voltage echo "AT+CGATT=1"; sleep 1 # connect to the network echo "AT+CGDCONT=1,"IP","$APN"" # create connection (use your provider's apn) echo "AT^SWWAN=1,1,1"; sleep 1 # connect it to wwan0 ) | $SCRIPTPATH/femtocom $IF dhclient wwan0
I'll test as soon as I find time (at the moment I am focussed on SGX).
Thanks for finding out how it works.
BR, Nikolaus