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
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
Martin Kojtal
1b11d2cb02
Merge pull request #12249 from kivaisan/remove_deprecated_cellulardevice_stop
...
Cellular: Remove deprecated CellularDevice::stop()
2020-01-15 13:06:27 +01:00
Kimmo Vaisanen
52b00a296e
Cellular: Remove friend definitions from cellular state machine
...
Instead of defining which classes can access state machine, CellularStateMachine
class is now "a normal" CPP class with public API.
2020-01-14 12:19:20 +02:00
Kimmo Vaisanen
0d525fff29
Cellular: Remove deprecated CellularDevice::stop()
...
CellularDevice::shutdown() should be used instead.
2020-01-14 10:47:05 +02:00
Antti Kauppila
eb78ba6624
Fixed PDP type handling
2020-01-10 13:48:25 +02:00
Antti Kauppila
2fb167be26
Fixed IOTCELL-2384
...
Earlier we called AT+QICSGP only if the username and password was set.
It seems that we must call it also to set up APN while in AT mode.
This commit fixes the issue + updated IPv4/v6 handling to be correct in the same call
2020-01-09 17:19:24 +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
Martin Kojtal
ec3fc672a1
Merge pull request #12215 from u-blox/ubx_get_ip_addr
...
Cellular: Implementation of virtual get_ip_address funtion in ublox-api
2020-01-09 12:43:12 +01:00
Martin Kojtal
1fb9dd7ddd
Merge pull request #12122 from AnttiKauppila/visibility_fixes
...
ATHandler refactoring
2020-01-09 12:05:08 +01:00
mudassar-ublox
075a6fdd99
Override virtual get_ip_address funtion in ublox-api for targets UBLOX_C030_U201 and UBLOX_C027
2020-01-09 12:16:48 +05:00
Kimmo Vaisanen
0d7cc428b1
Cellular: Move string_to_pdp_type method to CellularContext
...
string_to_pdp_type is only used in CellularContext classes and by having
the conversion method in CellularContext it can be used to check also
the non-standard Non-IP PDP type string.
2020-01-08 12:15:51 +02:00
Antti Kauppila
5553d0acd3
ATHandler class refactor
...
Refactored ATHandler class to have clear private and public elements
Also removed virtuality from ATHandler
Unittests updated to reflect changes
2020-01-07 17:15:27 +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