Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Martin Kojtal
58d6f5f39f
Merge pull request #11873 from AnttiKauppila/disable_sms
...
Make SMS configurable in Cellular stack
2019-11-27 09:03:55 +01:00
Antti Kauppila
353782bf63
Disable SMS by default from Cellular stack
...
Put SMS behind configuration flag to save some memory (4,5kB) for Cellular users not needing SMS features.
UBlox N2XX target is also updated
2019-11-25 11:38:06 +02:00
Seppo Takalo
c54d76eddf
Allow MBED_ASSERT to throw errors in unittests, so we can verify it.
...
GoogleTest allows you to check whether certain function throws errors.
For example:
ASSERT_ANY_THROW(mbed::HeapBlockDevice one(3050, 100));
or
ASSERT_NO_THROW(bd.init());
As MBED_ERROR is now only function that can throw errors, there is
no need to check the type of thrown object.
2019-11-22 13:10:46 +02:00
Michal Paszta
fd5b4b9119
Deprecate string-based APIs in IPCore
...
MBED_DEPRECATE macros is added to string-based APIs.
New, non-string-based APIs are added in their place.
Wiced binaries rebuilt
Any existing stubs or mocks are adjusted to compile and run with the newly added non-string based functions.
2019-11-22 11:31:12 +02:00
Martin Kojtal
fe940924cc
Merge pull request #11683 from AnttiKauppila/baremetal_support
...
Baremetal profile fixes
2019-11-04 15:53:57 +01:00
Mirela Chirica
c484fc88f9
Cellular: Added set routine for baud rate
2019-11-01 17:21:31 +02:00
Antti Kauppila
ac0b0f1f2c
Unittests fixed
2019-11-01 15:22:28 +02:00
Anna Bridge
ad891d9658
Merge pull request #11548 from AriParkkila/cell-dns-ip
...
Cellular: Fix resolving of DNS server IPv4/6 address
2019-10-07 16:46:47 +01:00
Ari Parkkila
8054b8eef8
Cellular: Fix resolving of DNS server IPv4/6 address
2019-09-25 03:16:45 -07:00
Kimmo Vaisanen
6ba0efc969
Cellular: Use more specific error codes for socket open and connect
...
- When calling socket APIs when socket is not open, NSAPI_ERROR_NO_SOCKET will be
returned instead of generic NSAPI_ERROR_DEVICE_ERROR
- If socket_send() is called when connection is not open, NSAPI_ERROR_NO_CONNECTION
will be returned instead of generic NSAPI_ERROR_DEVICE_ERROR
2019-09-25 09:25:33 +03:00
Martin Kojtal
d91ed5fa42
Merge pull request #11495 from kivaisan/improve_cellular_ut
...
Improve cellular unittests
2019-09-24 16:37:02 +02:00
Martin Kojtal
1afece7f1b
Merge pull request #11488 from kivaisan/fix_cellular_get_interface_name
...
Cellular: Fix get_interface_name to not include leading zero
2019-09-19 12:43:45 +02:00
Kimmo Vaisanen
da77cdc52e
UT for CellularDevice get/set timeouts methods
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
b6ecce0bfb
Add UT for AT_CellularNetwork::is_active_context
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
02de20acb6
Add UT for CEREG URC handler
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
d83f52a2a1
Improve UT for cellular properties
2019-09-17 12:15:18 +03:00
Kimmo Vaisanen
e824714cd8
Add UT for CellularUtil::hex_to_char and ::hex_str_to_char_str
...
Also added checks for pointer validity.
2019-09-17 12:15:03 +03:00
Kimmo Vaisanen
0b9e80f76e
Unittests for CellularList
2019-09-17 10:45:01 +03:00
Ari Parkkila
823993e7b1
Cellular: Add flow control (IFC) in BG96 AT driver
2019-09-16 03:16:36 -07:00
Kimmo Vaisanen
ab71b2dba8
Cellular: Fix get_interface_name to not include leading zero
...
Multihoming documentation about interface name:
"Two character name string is concatenated with 8 bit value containing index which is incremented on each netif addition"
Cellular uses context id as index and to follow LWIP (LWIP::Interface::get_interface_name), index does not include leading zeros.
2019-09-16 09:59:31 +03:00
Ari Parkkila
cb20277701
Cellular: Fix BG96 power on and connect
2019-09-04 03:24:11 -07:00
Teppo Järvelin
753ba8ceb6
Cellular: fix ATHandler destructor possible crash on delete
...
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-09-03 09:09:05 +03:00
Martin Kojtal
5c09ff12ac
Merge pull request #11220 from jarvte/fix_cellular_dns_test
...
Fix cellular dns test with IAR compiled binary
2019-08-22 10:57:22 +02:00
Marcin Radomski
ce0bb7f568
Update test_AT_CellularSMS_get_sms
...
0 is now a valid value
2019-08-16 14:25:29 +02:00
Teppo Järvelin
6a17d74b55
Cellular: notify global up after we have IP address
...
CellularContext now tries to get an IP address after connect and before
sending NSAPI_STATUS_GLOBAL_UP. Even if we don't the IP address from
the modem we will send NSAPI_STATUS_GLOBAL_UP and return success.
Modem has an ip address but for some reason some modems don't
give it to us.
2019-08-14 12:54:13 +03:00
Teppo Järvelin
3c1bf0a9e2
Cellular: moved string_to_pdp_type from AT_CellularContext to CellularUtil
...
string_to_pdp_type is a common method for AT and other layers.
Without moving there will be duplicate methods.
2019-08-12 10:27:57 +03:00
Ari Parkkila
e1124668db
Cellular: Add DNS servers from PDP contexts to nsapi_dns
2019-08-05 21:53:24 -07:00
Kevin Bracey
fc8e8f67c6
Deprecate wait/wait_ms APIs
2019-07-15 10:13:50 +03:00
Antti Kauppila
369e2d53ff
Fixed unittests
2019-07-02 10:17:06 +03:00
Anna Bridge
15b5b5da23
Merge pull request #10694 from jarvte/set_authentication_type
...
Cellular: add method to set authentication type to CellularContext
2019-06-21 12:19:04 +01:00
Anna Bridge
6000724de6
Merge pull request #10703 from AnttiKauppila/optimisation
...
Cellular: Removed boilerplate code
2019-06-19 12:06:10 +01:00
Antti Kauppila
1ed338ef28
Valgrind & unittest fixes
2019-06-13 15:15:53 +03:00
Martin Kojtal
523ad23a30
Merge pull request #10656 from jarvte/fix_cellularctx_destr
...
Cellular: AT_CellularContext disconnect in non-blocking mode
2019-05-31 12:35:59 +01:00
Teppo Järvelin
8922eeb014
Cellular: add method to set authentication type to CellularContext
...
Authentication type must be able to set. It was hard coded to CHAP.
Added unit tests for CellularContext to be able to add test for new function.
2019-05-29 09:46:15 +03:00
Kevin Bracey
2fbbd9d2ca
Introduce Semaphore::acquire methods
...
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().
Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".
Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Teppo Järvelin
779fb6defd
Cellular: AT_CellularContext disconnect in non-blocking mode
...
Disconnect was supporting only blocking mode.
2019-05-27 12:23:29 +03:00
Teppo Järvelin
d559338b3b
Cellular: fix unit test valgrind warnings
...
Stub files did have some memory leaks and using
unintialized variables.
2019-05-21 14:23:21 +03:00
Mirela Chirica
4d58e58b6b
Cellular: Added UT for case when read_string buff size hits middle of stop tag
2019-04-26 12:48:26 +03:00
Cruz Monrreal
d1672d0200
Merge pull request #10341 from mirelachirica/check_urc_resp_stop_1
...
Cellular: Check for URC during AT response stop
2019-04-09 11:05:56 -05:00
Teppo Järvelin
2470a3611c
Cellular: new state machine state and better info from stm
...
Added new state (signal quality) and more information about progress
so application/driver can build recovery logic.
2019-04-09 13:44:45 +03:00
Mirela Chirica
f100cd59c8
Cellular: Check for URC during AT response stop
2019-04-09 11:15:28 +03:00
Teppo Järvelin
fe5f97895b
Cellular: Fix deleting of state machine to correct class
2019-04-08 12:50:29 +03:00
Martin Kojtal
2369c12dea
Merge pull request #10269 from TeemuKultala/cellular_valgrind_fix
...
cellular: valgrind defect fix
2019-04-03 13:49:26 +02:00
Teemu Kultala
453d7b86af
cellular: valgrind defect fix
...
at_cellulardevicetest.cpp: fix potential memory leak
at_cellularsmstest.cpp: fix potential memory leak, uninitialized memory conditional
athandlertest.cpp: fix potential memory leak, uninitialized memory conditional,
uninitialized memory read
ATHandler_stub.cpp, ATHandler_stub.h: fix potential memory leak, uninitialized memory conditional
2019-04-03 10:35:15 +03:00
Teppo Järvelin
b0ee22c96b
Cellular: CellularContext must provide access to CellularDevice
...
When using NetworkInterface::get_default_instance() application gets handle
to CellularInterface which is actually CellularContext derived from CellularInterface.
Application needs also handle to CellularDevice to open other interfaces.
2019-03-26 07:29:11 +02:00
Teppo Järvelin
dba3d42362
Cellular: call AT+CGEREP after sim is ready
...
Current implementation did call AT+CGEREP before sim was ready
and it was failing in most modems.
2019-03-18 08:10:09 +02:00
Cruz Monrreal
6c4b4a5212
Merge pull request #10084 from mirelachirica/info_resp_issue_8829
...
Cellular: AT information response to return false on empty prefix
2019-03-16 22:59:24 -05:00
Cruz Monrreal
dbb33ef423
Merge pull request #9801 from vmedcy/fix-eventqueue-h
...
Correctly include EventQueue.h
2019-03-16 22:52:40 -05:00