Commit Graph

464 Commits (tools-release-6.0.0)

Author SHA1 Message Date
Kevin Bracey 355b45ade1 Cellular: Convert to Chrono
Note that documentation for random_max_start_delay config setting has
been changed to indicate that the setting is in seconds, and always has
been. No functional change.
2020-05-11 14:18:04 +03:00
Kimmo Vaisanen 214df550c0 Cellular: Check if serial is supported
Baud rate can be only changed if BufferedSerial (or Serial in general) object is supported
2020-04-14 13:14:22 +03:00
Syed Fahimuddin Alavi c6b6efc456 Added deativation of context associated with profile
Added emt method in At cellular context stub file
2020-03-25 16:02:18 +05:00
Martin Kojtal c17f32f04e
Merge pull request #12507 from variablo87/cellular-context-semaphore-release
Cellular: release _semaphore only once
2020-03-09 07:14:47 +00:00
Kimmo Vaisanen 6e1f7bf1f9 Cellular: Fix trace to use new SocketAddress based get_ip_address
String based get_ip_address has been removed and SocketAddress based must be
used.
2020-03-03 12:12:16 +02:00
Norbert Hesse 327445a00b release _semaphore only once
see issues #12325
2020-02-28 15:06:55 +01:00
Martin Kojtal 8f1bf967d3
Merge pull request #11942 from michalpasztamobica/remove_deprecated_apis
IPCore String-based API removal
2020-02-21 12:14:06 +00:00
Martin Kojtal d7f3341974
Merge pull request #12339 from jeromecoutant/PR_MODEMVERSION
Cellular : add modem version in mbed trace
2020-02-13 13:04:30 +00:00
Kimmo Vaisanen 2b19fd8661 Cellular: Delete created context if activation fails
If new context is created but the activation fails to any error, it will
be automatically deleted.

Fixes issue #12381
2020-02-10 13:14:21 +02:00
Martin Kojtal d847f9f164
Merge pull request #12305 from kivaisan/remove_multi_athandler_support_v2
Cellular: Remove support for multiple ATHandlers
2020-02-07 11:00:41 +00:00
jeromecoutant 5f1ea7d57b Cellular : add modem version in mbed trace 2020-02-06 14:40:23 +01:00
Michal Paszta f21b8c7fc1 Remove remaining string-based API functions
This removes any compiler warnings.
2020-02-06 11:27:50 +02:00
Michal Paszta 458957d399 IPCore deprecated string-based API removal
String-based functions should be replaced with an explicit DNS hostname resolution and a SocketAddress-based API.
2020-02-06 11:27:49 +02:00
Martin Kojtal 8dc15ee6e1
Merge pull request #12293 from mirelachirica/remove_empty_api
Cellular: Remove API's empty default implemetations
2020-02-06 09:05:40 +00:00
jeromecoutant a1fb286c06 AT_CellularStack: crash during TCP test
function tries to access _socket[1] whch is not opened
2020-01-28 13:10:41 +01:00
Kimmo Vaisanen bd0f939277 Cellular: Remove support for multiple ATHandlers
Major changes:
- Dependency to FileHandle removed from base classes
- AT_CellularDevice owns the default FileHandle and shares it with AT -classes
- Hang-up -detection moved as CellularContext::configure_hup(). Cannot be configured via CellularDevice any more.

Result on NRF52840_DK + BG96:
GCC:
Total Static RAM memory (data + bss): 29360(+296) bytes
Total Flash memory (text + data): 130660(-832) bytes

ARM:
Total Static RAM memory (data + bss): 261554(+8) bytes
Total Flash memory (text + data): 127573(-1193) bytes

IAR:
Total Static RAM memory (data + bss): 25479(+296) bytes
Total Flash memory (text + data): 102418(-527) bytes

RAM increase is because now ATHandler is no longer created with new -operator but is now member of AT_CellularDevice,
so image tool is able to count it. Actually total RAM consumption has decreased due to removed variables.
2020-01-23 09:27:44 +02:00
Anna Bridge 80fe861f1d
Merge pull request #12035 from kjbracey-arm/callback_prep
Preparation for Callback changes
2020-01-21 11:50:43 +00:00
Mirela Chirica e2048b06b2 Cellular: Remove API's empty default implemetations 2020-01-21 10:45:09 +02:00
Ari Parkkila 2871721e08 Cellular: Refactor socket_stack_init() from generic to modem specific 2020-01-20 00:56:09 -08:00
Martin Kojtal ecf4d62dc5
Merge pull request #12265 from AriParkkila/cell-fea-refactor
Refactor unnecessary functions from cellular driver
2020-01-17 13:57:06 +00:00
Martin Kojtal 4924264769
Merge pull request #12211 from hugueskamba/hk-replace-uartserial-cellular
Cellular: Replace UARTSerial references with BufferedSerial
2020-01-17 13:30:12 +00:00
Ari Parkkila 031d90a3ce Fix UDP socket test cases
Fix UDP socket test cases to check more strictly on failure,
and lower trace levels to not print errors on successful cases.
2020-01-17 01:24:51 -08:00
Ari Parkkila f9eef97ead Cellular Refactor get_send_delay() into CellularProperty 2020-01-17 00:28:41 -08:00
Hugues Kamba 9e11e5b43d Cellular: Replace UARTSerial references with BufferedSerial
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-16 16:22:07 +00:00
Ari Parkkila ceea992b40 Cellular: Refactor is_protocol_supported() into CellularProperty 2020-01-15 23:04:00 -08:00
Ari Parkkila e2cb18061e Cellular: Refactor get_max_socket_count() into CellularProperty 2020-01-15 23:04:00 -08:00
Kimmo Vaisanen 2c4194bbe3 Cellular: Fix compilation fail with APN lookup enabled
Compilation failed if cellular APN lookup was enabled as stop command has been
removed.
2020-01-15 14:42:04 +02:00
Kevin Bracey d6a48b5124 Turn NULLs into nullptr
Avoids overload problems with Callback(nullptr) versus Callback(fnptr).
2020-01-09 14:52:54 +02:00
Antti Kauppila 36ca4d6516 ATHandler relocated
ATHandler is part of our API so header file was moved under API folder and .cpp file was moved under device/ folder
ATHandler is used in both AT and PPP mode so it has been in slightly wrong place at the beginning.
2020-01-07 17:15:27 +02:00
Ari Parkkila 7899fead59 Cellular: Refactor CellularBase from AT_ControlPlane_netif 2020-01-07 04:03:33 -08:00
Ari Parkkila 4b3ef73333 Cellular: Fix astyle 2020-01-06 22:35:53 -08:00
Ari Parkkila f4158ca00e Cellular: Change ATHandler debug print levels 2020-01-06 22:35:18 -08:00
Ari Parkkila 913cbd96a6 Cellular: Change 3GPP TS 27.007 NIDD to async
Add a missing license header.
Remove semaphores and add +CRTDCP to support async operation.
Fix delete context and disconnect to execute just once.
Add support for NONIP PPD type.
Change CellularNetwork::clear() to virtual so it can be overridden.
2020-01-06 22:35:18 -08:00
Ari Parkkila feee2a234e Cellular: Fix Non-IP of Quectel/BG96 modem driver
Add missing license headers.
Remove semaphores to allow async operation.
Change hex format to allow binary payload.
Limit payload size to 100 bytes.
Fix missing plus char at +QCFGEXT.
2020-01-06 22:33:49 -08:00
Martin Kojtal 0dbf34bf06
Merge pull request #12123 from kivaisan/refactor_variable_visibilities
Cellular: Refactor cellular variable visibilities
2020-01-03 12:11:52 +00:00
Martin Kojtal 6baa5e479d
Merge pull request #12020 from linlingao/fix_rat
Fix issues in setting radio access technology
2020-01-02 10:08:11 +00:00
Kimmo Vaisanen f7cc3db70b Cellular: Refactor cellular variable visibilities
- Earlier some variables were public even though used only internally
- Also refactored variables to the end of class definitions
- Removed duplicate _property_array from CellularDevice
- Changed _impl methods as protected
2019-12-30 10:00:24 +02:00
Ari Parkkila d5abab8843 Cellular: Add check for network congestion in BC95 driver 2019-12-20 04:25:26 -08:00
Lin Gao 0bc8f4f726 Revert BUFF_SIZE fix, to be fixed in another PR. Add missing property entries 2019-12-19 13:45:30 -06:00
Lin Gao c8524c25be add config option and property to choose automatic fallback for PLMN manual operator selection 2019-12-19 11:26:13 -06:00
Lin Gao a5a9683348 Change AT+COPS mode to manual first then fall back to auto to improve reliability. Fix a syntax error when RAT is set 2019-12-19 11:23:30 -06:00
Lin Gao 9e17653723 Increase BUFF_SIZE to avoid error in AT response when debug is turned on 2019-12-19 11:21:14 -06:00
Kimmo Vaisanen f5ef066055 Cellular: Suppress long AT traces
When AT traces are enabled and very long AT commands are traced,
system can easily go to unwanted state. Therefore the length of the AT
traces is limited to DEBUG_MAXLEN (currently 60 characters).

This commit fixes read_hex_string, read_bytes and write to use this
limitter.
2019-12-19 09:54:23 +02:00
Anna Bridge eac7d30ca5
Merge pull request #12114 from AriParkkila/cell-dns-zero
Cellular: Fix to not use all zero address for DNS
2019-12-17 16:41:39 +00:00
Anna Bridge e28daf7c84
Merge pull request #12110 from AnttiKauppila/cp_recv_len
Moved CP Max recv len into mbed_lib.json
2019-12-17 16:28:37 +00:00
Anna Bridge 298f3f22b7
Merge pull request #12088 from AriParkkila/cell-cops
Cellular: Fix AT command for COPS manual network selection
2019-12-17 16:24:28 +00:00
Antti Kauppila 6d0b2fae9b Moved CP Max recv len into mbed_lib.json
According to [3GPP-TS_24.008] the maximum size for Non-IP link MTU is 1358 octets to prevent fragmentation in the backbone network.
Therefore reduced the maximum size to follow the standard.
2019-12-16 15:48:46 +02:00
Ari Parkkila 50ab644380 Cellular: Fix to not use all zero address for DNS 2019-12-16 04:56:45 -08:00
Ari Parkkila 483c557f9b Cellular: Fix AT command for COPS manual network selection 2019-12-12 00:31:43 -08:00
Antti Kauppila 35c2b60800 Coverity fix for ATHAndler
Unneeded NULL check removed
2019-12-11 09:25:29 +02:00