Commit Graph

813 Commits (tools-release-6.1.0)

Author SHA1 Message Date
Martin Kojtal 32a032bbf0
Merge pull request #13149 from kivaisan/cellular_alt1250_save_rat
Cellular: ALT1250: Store RAT to permament memory
2020-06-18 22:24:24 +02:00
Martin Kojtal 3e42991289
Merge pull request #13046 from hugueskamba/hk_use_chrono
Use std::chrono based functions
2020-06-18 22:16:00 +02:00
Kimmo Vaisanen a8fd02adfb Cellular: ALT1250: Store RAT to permament memory
When RAT is changed it is now saved to modem's permanent memory. This avoid unnecessary
changing of it on every reboot.
2020-06-18 09:44:29 +03:00
Hugues Kamba a3f4cf212d Use std::chrono based functions
The chrono based functions improve readability. Using them also removes
warnings related to usage of deprecated warnings.
2020-06-17 14:52:50 +01:00
Martin Kojtal b1629b7e59
Merge pull request #13098 from AriParkkila/cell-free-stack
Cellular: Fix CellularContext destructor memory leak
2020-06-17 13:24:17 +02:00
Chris Trowbridge 125f169342 Add support for the Telit ME310 module (LwIP/PPP and AT command-based IP stacks) 2020-06-12 09:21:42 -04:00
Ari Parkkila dd73a93887 Cellular: Fix CellularContext destructor memory leak 2020-06-10 22:21:48 -07:00
Ari Parkkila 985e72f65d Cellular: Fix unittest for CellularNetwork 2020-06-05 00:45:49 -07:00
Martin Kojtal b3e8e8ad8a
Merge pull request #13013 from AriParkkila/cell-creg
Cellular: Fix packet data registration after CREG
2020-06-04 15:22:57 +02:00
Ari Parkkila de765a41f0 Cellular: Fix packet data registration after CREG 2020-05-25 11:17:59 +03:00
Kimmo Vaisanen f22325d08d Cellular: Enable tac info for ALT1250
ALT1250 supports tac info in registration status, so this commit enables the feature.
2020-05-14 15:19:03 +03:00
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
Martin Kojtal b622a25688
Merge pull request #12810 from MarceloSalazar/platform_cleanup
Remove unsupported targets

Note, commit 21e364e is just a styling fix, no target removal.
2020-04-22 10:58:50 +02:00
MarceloSalazar 4b1ad8ad4c Remove MTB_STM_L475 target 2020-04-20 16:55:33 +01:00
Kimmo Vaisanen fe98dbef94 Cellular: Fix BG96 offloaded DNS query for new API
Fixed following issues in BG96 offloaded DNS:
- Fixed mbed-os 6 API change for asynchronous DNS callback. Return value is no longer
  an error value but in success case the amount of DNS records
- Asynchronous request returns request ID instead of NSAPI_ERROR_OK. BG96 supports only
  one asynchronouse DNS query at the time, so ID 1 is used.
- BG96 does not support multi-ip DNS responses, so disabled multi-ip tests
2020-04-20 12:35:09 +03:00
Kimmo Vaisanen 738f9fbcf6 Cellular: Disable AT traces when mbed-trace is disabled
Earlier if mbed-trace was disabled but debug-at enabled, some AT trace codes were still
enabled causing unnecessary code size increase.

This commit fixes the issue that AT debug trace code is enabled only when both
mbed-trace.enable and cellular.debug-at are enabled.

Reduces binary size by about ~340bytes when mbed-trace is disabled but debug-at enabled.
2020-04-16 16:24:40 +03:00
Kimmo Vaisanen 2f384e3c1f Cellular: Fix build problem if cellular.debug-at is set as null 2020-04-16 13:50:02 +03:00
Martin Kojtal 447cfbc9a0
Merge pull request #12804 from kivaisan/check_serial_for_set_baud_rate
Cellular: Check if serial is supported
2020-04-15 15:01:03 +02:00
Martin Kojtal 8926ea0983
Merge pull request #12763 from kivaisan/fix_athandler_read_string
Cellular: Fix ATHandler::read_string to handle delimiter inside string
2020-04-15 09:27:40 +02: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
Martin Kojtal 149235f731
Merge pull request #12589 from u-blox/disconnect
Cellular: Add deativation of context associated with profile
2020-04-09 09:39:27 +02:00
Kimmo Vaisanen 584d54e955 Cellular: Fix ATHandler::read_string to handle delimiter inside string
For example if input buffer includes:
+CCLK: "20/04/05,15:38:57+12"

read_string return "20/04/05,15:38:57+12" instead of "20/04/05"
2020-04-06 16:28:04 +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
Kimmo Vaisanen 4f7d7750e4 Cellular: Make Quectel EC2x modem start up timeout configurable
Default timeout also increase from 5sec to 15sec.
2020-03-19 12:31:46 +02:00
Martin Kojtal dc21432cc1
Merge pull request #12633 from kivaisan/bg96_use_offload_tlssocket_flags
Cellular: Add offload TLSSocket implementation inside feature flag
2020-03-17 12:17:12 +01:00
Kimmo Vaisanen 51175eed1f Cellular: Add offload TLSSocket implementation inside feature flag
Reduce binary size (~500 bytes with GCC_ARM and developer profile) when offloaded TLSSocket is not in use.
2020-03-17 08:42:59 +02:00
Martin Kojtal 2a4e48179d
Merge pull request #12624 from OpenNuvoton/nuvoton_ec2x
Cellular: Support EC2x power control pin support no connect
2020-03-16 14:34:58 +00:00
Chih-Chiang Chang 73b96c1cbc Support EC2x PWRKEY set as no connect 2020-03-13 13:46:24 +08:00
Kimmo Vaisanen 164a2cab4d Cellular: Add ALT1250 PPP cellular target
Co-authored-by: Mirela Chirica <mirela.chirica@arm.com>
Co-authored-by: Antti Kauppila <antti.kauppila@arm.com>
2020-03-09 14:47:52 +02: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
Martin Kojtal 498e2d2bc8
Merge pull request #12499 from u-blox/ubx_cellular
Cellular: For ublox modem, read '@' char first then send data.
2020-03-04 07:58:51 +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
mudassar-ublox 2fc95a5421 Read '@' char first then send data 2020-02-27 11:07:56 +05: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 3d038e55ee
Merge pull request #12396 from felser/mtqn-IPV4V6
PDP Type needs to be IPV4V6
2020-02-14 14:56:48 +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
Leon Lindenfelser 77218f04e0 PDP Type needs to be IPV4V6
1.Testing with Verizon and AT&T SIMs, PDP type is automatically set to IPV4V6.
2. Testing with AT&T IoT SIM, PDP type automatically sets to IP. It will connect
but not communicate. Setting a subsequent APN to IPV4V6 with the same APN communicates.
2020-02-07 15:31:40 -06: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
Martin Kojtal 96861107f5
Merge pull request #12251 from kivaisan/remove_friends_from_statemachine
Cellular: Remove friend definitions from cellular state machine
2020-02-05 14:51:29 +00:00
Martin Kojtal e3ad1cae55
Merge pull request #12334 from AriParkkila/cell-c030-r412m
Update cellular drivers/tests for UBLOX_C030_R412M
2020-02-05 12:50:11 +00:00
Ari Parkkila 1234b3fc28 Cellular: Fix UDP/IP on UBLOX_AT driver 2020-01-29 03:04:46 -08:00
Ari Parkkila d6f8fece69 Cellular: Enable IP over PPP on UBLOX_C030_R41XM 2020-01-29 03:03:35 -08: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