Commit Graph

8168 Commits

Author SHA1 Message Date
Denis Kenzior 684be2760c mbim: Add mbim_message_get_uuid 2017-10-05 11:08:38 -05:00
Denis Kenzior a12f3c73ac mbim: Add mbim_message_get_cid 2017-10-05 11:08:38 -05:00
Denis Kenzior d9b0bbf69b mbim: Rework mbim_message_new 2017-10-05 11:08:38 -05:00
Denis Kenzior 8c0caf5715 mbim: Add mbim_message_get_error 2017-10-05 11:08:38 -05:00
Denis Kenzior 5f6a0147ba unit: Add phonebook read build test 2017-10-05 11:08:38 -05:00
Denis Kenzior 0ce051f890 unit: Add subscriber ready build test 2017-10-05 11:08:38 -05:00
Denis Kenzior 95ac1efb13 unit: print mbim messages for easier debugging 2017-10-05 11:08:38 -05:00
Denis Kenzior dc19edbeb4 unit: Add device_caps build test 2017-10-05 11:08:38 -05:00
Denis Kenzior 75993d8edc mbim: Add mbim_message_set_arguments 2017-10-05 11:08:38 -05:00
Denis Kenzior 1ed919c368 mbim: Support for building variable-sized structs 2017-10-05 11:08:38 -05:00
Denis Kenzior 54ff05956c mbim: Add support for building arrays 2017-10-05 11:08:38 -05:00
Denis Kenzior 9ed20413cc mbim: Add _mbim_message_to_bytearray 2017-10-05 11:08:38 -05:00
Denis Kenzior 76c97996f5 mbim: Add _mbim_message_set_tid 2017-10-05 11:08:38 -05:00
Denis Kenzior f66c2fe982 mbim: Add _mbim_message_new_command_done
This is for unit testing purposes
2017-10-05 11:08:38 -05:00
Denis Kenzior 76811bb326 mbim: Add basic message builder support 2017-10-05 11:08:38 -05:00
Denis Kenzior 397079cc13 mbim: Add MBIM service UUID constants 2017-10-05 11:08:38 -05:00
Denis Kenzior 7ce3f9a401 unit: Add phonebook read parse test 2017-10-05 11:08:38 -05:00
Denis Kenzior 99501a7d1d mbim: Support parsing structures 2017-10-05 11:08:38 -05:00
Denis Kenzior db1a61cd27 mbim: Add support for arrays of fixed-size elements
Variable-sized arrays are handled by using an Element Count followed by
OL_PAIR_LIST.  For fixed size arrays, an Offset followed by Length is
used.
2017-10-05 11:08:38 -05:00
Denis Kenzior 506e77053b mbim: Don't assume 4-byte alignment
This change would make it possible to read individual bytes from ay type
structures.
2017-10-05 11:08:38 -05:00
Denis Kenzior bc239450b6 unit: Add subscriber ready status test 2017-10-05 11:08:38 -05:00
Denis Kenzior a64b5453e8 mbim: Parse variable sized item arrays 2017-10-05 11:08:38 -05:00
Denis Kenzior bbb9f33253 unit: Add test-mbim 2017-10-05 11:08:38 -05:00
Denis Kenzior b9de1d999f mbim: Add mbim_message_get_arguments 2017-10-05 11:08:38 -05:00
Denis Kenzior 3ee2343803 mbim: Handle extraction of strings 2017-10-05 11:08:38 -05:00
Denis Kenzior 60c9225169 mbim: add _mbim_information_buffer_length_offset 2017-10-05 11:08:38 -05:00
Denis Kenzior f854c8d193 mbim: Add basic message payload parser 2017-10-05 11:08:38 -05:00
Denis Kenzior 3ddbdda745 mbim: Add skeleton mbim-message class 2017-10-05 11:08:38 -05:00
Denis Kenzior e7597bcae2 mbim: Parse MBIM descriptors
This is needed to find out the maximum fragment size that this device
supports.  The minimum length specified in the spec is 64, however 512
bytes is recommended.

We also attempt to parse how many simultaneous commands can be
outstanding at a given time.  In theory MBIM supports multiple
outstanding commands through the use of transaction-id matching, but it
seems some devices only support a single outstanding command at a time.
2017-10-05 11:08:38 -05:00
Denis Kenzior 868ce1536b udevng: Store MBIM descriptors file 2017-10-05 11:08:38 -05:00
Denis Kenzior 2d4093ae27 mbim: Add MBIM descriptor utilities
Used to find MBIM Functional and MBIM Extended Functional descriptors
2017-10-05 11:08:38 -05:00
Denis Kenzior 1bfa2749cd mbim: Add skeleton mbim_device object 2017-10-05 11:08:38 -05:00
Denis Kenzior 4a6007ba2d udevng: Add basic detection for MBIM
Currently only Telit LN930 has been tested to work
2017-10-05 11:08:38 -05:00
Denis Kenzior 649d204158 mbim: Add skeleton mbim modem driver 2017-10-05 11:08:38 -05:00
Denis Kenzior ab58196e31 mbimmodem: Add skeleton driver 2017-10-05 11:08:38 -05:00
Denis Kenzior 8dc66c11bd build: Add optional ell dependency 2017-10-05 11:08:38 -05:00
Marcel Holtmann abe70b50e3 Release 1.21 2017-10-05 16:28:01 +02:00
Christophe Ronco 22adf6402c huawei: add LTE support
Huawei LTE modems use AT^SYSCFGEX and AT^SYSINFOEX instead of
AT^SYSCFG and AT^SYSINFO.
If we want to be able to attach on LTE with this modem, we must use
AT^SYSCFGEX to configure rat mode and band. Using AT^SYSCFG, mode any
means UMTS or GSM.
2017-09-14 20:05:54 -05:00
Ankit Navik 215a6a1df3 udevng/xmm7xxx: Allow to detect xmm7xxx series modems
The Intel xmm7xxx series modem uses id as 8087:0930
2017-09-13 10:30:08 -05:00
Ankit Navik 66aa34b37e Add support for Intel xmm7xxx series modems
This adds plugin for xmm7xxx series modems
2017-09-13 10:30:01 -05:00
Denis Kenzior 9405c9733c ifxmodem: Fix minor style issues 2017-09-13 10:28:56 -05:00
Ankit Navik ffbf6159e0 ifxmodem: support automatic context activation
Add support for automatic context activation by adding read_settings.
It also adds detach_shutdown to make sure context is cleaned up when
network registration is lost.
2017-09-13 10:27:32 -05:00
Ankit Navik aadd4668f1 atutil: Add logic for cgcontrdp to get address and netmask 2017-09-13 10:26:35 -05:00
Jonas Bonn e267da8bc4 gobi: create NetworkMonitor atom 2017-09-12 12:53:05 -05:00
Jonas Bonn fd453816cc qmi: add NetworkMonitor interface
This is a rudimentary implementation that contains technology and RSSI
and BitErrorRate, plus RSRQ/RSRP for LTE networks.  More data can be
added as needed.

This implementations uses the 'Get Signal Strength' QMI method to retrieve
the data.  Operator fields (MNC, LAC, etc) can be gotten from the 'Serving
Cell' method if needed, but since this data is already provided in the
NetworkRegistration object it doesn't seem necessary to repeat it here
when an additional communication to the modem is required.
2017-09-12 12:52:42 -05:00
Jonas Bonn 3796744b5e Fix out of tree build 2017-09-12 12:48:23 -05:00
Denis Kenzior b8654e455b AUTHORS: Mention Joey's contributions 2017-09-12 12:47:18 -05:00
Joey Hewitt a7007fd0c3 gobi: enable message waiting atom 2017-09-12 12:44:55 -05:00
Joey Hewitt d80b3da897 qmimodem: implement SIM write functions 2017-09-12 12:39:26 -05:00
Nishanth V 76c3dcec11 netmonagent: fix unnecessary function declaration 2017-09-12 12:29:24 -05:00