Mirela Chirica
e2048b06b2
Cellular: Remove API's empty default implemetations
2020-01-21 10:45:09 +02: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
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
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
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
50ab644380
Cellular: Fix to not use all zero address for DNS
2019-12-16 04:56:45 -08:00
Antti Kauppila
30ea858f51
Disable APN lookup by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
e51230c5e4
Remove CellularBase and AT_CellularBase
...
Removed CellularBase and AT_CellularBase from cellular stack and updated both code and unittests accordingly.
Moved property handling into AT_CellularDevice
2019-12-09 15:25:22 +02:00
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
Adrien CABARBAYE
de57ba8b50
Fix for ARMC5 compilation errors for some targets
...
the following compilation error is seen for a number of targets when compiling using ARMC5
`tools.utils.ToolException: "./mbed-os/features/cellular/framework/AT/AT_CellularContext.cpp", line 247: Error: #20 : identifier "sprintf" is undefined`
Failing command:
> 5.06u6/bin/armcc -c --gnu -Ospace --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 -DMBED_TRAP_ERRORS_ENABLED=1 --cpu=Cortex-M4.fp.sp --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp11 --no_rtti --no_vla -DDEVICE_SERIAL_ASYNCH=1 -D__MBED__=1 -D__CORTEX_M4 -DTOOLCHAIN_ARM -DMBED_BUILD_TIMESTAMP=1574735332.2275832 -DTARGET_RELEASE -DTARGET_GigaDevice -DDEVICE_SERIAL_FC=1 -DARM_MATH_CM4 -DTARGET_LIKE_MBED -DTARGET_GD32E10X -D__FPU_PRESENT=1 -DTARGET_GD32_Target -DTARGET_M4 -DDEVICE_RTC=1 -DDEVICE_INTERRUPTIN=1 -DCOMPONENT_PSA_SRV_EMUL=1 -D__CMSIS_RTOS -DTOOLCHAIN_ARMC5 -DDEVICE_SPISLAVE=1 -DTARGET_GD32_E103VB -DTARGET_CORTEX -DDEVICE_PORTIN=1 -DDEVICE_ANALOGOUT=1 -DDEVICE_I2C=1 -DDEVICE_ANALOGIN=1 -DDEVICE_FLASH=1 -DDEVICE_SLEEP=1 -DCOMPONENT_NSPE=1 -DDEVICE_SERIAL=1 -DDEVICE_PORTOUT=1 -DTARGET_GD32E103VB -DDEVICE_CAN=1 -DTARGET_NAME=GD32_E103VB -DTARGET_CORTEX_M -D__MBED_CMSIS_RTOS_CM -DDEVICE_PWMOUT=1 -DTARGET_FF_ARDUINO -DGD32E10X -DDEVICE_USTICKER=1 -DTARGET_RTOS_M4_M7 -DDEVICE_PORTINOUT=1 -DTOOLCHAIN_ARM_STD -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_SPI=1 -DTARGET_LIKE_CORTEX_M4 -DDEVICE_I2CSLAVE=1 --preinclude=./BUILD/GD32_E103VB/ARMC5/mbed_config.h --via ./BUILD/GD32_E103VB/ARMC5/.includes_022feb5c2e44b9896df9a82c69438bc9.txt --depend BUILD/GD32_E103VB/ARMC5/mbed-os/features/cellular/framework/AT/AT_CellularContext.d -o BUILD/GD32_E103VB/ARMC5/mbed-os/features/cellular/framework/AT/AT_CellularContext.o ./mbed-os/features/cellular/framework/AT/AT_CellularContext.cpp
[Error] AT_CellularContext.cpp@247,0: #20 : identifier "sprintf" is undefined
2019-11-26 15:05:52 +00: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
19606710e6
Merge pull request #11630 from kivaisan/move_is_connected_as_protected
...
Cellular: Change visibility of _is_connected as protected
2019-10-16 15:58:50 +08: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
Kimmo Vaisanen
1279c20ce6
Cellular: Change visibility of _is_connected as protected
...
AT_CellularContext::do_connect() is a virtual API and therefore can be overwritten in
inherited class. The problem was that it sets AT_CellularContext::_is_connected flag but
earlier it was set as private member making it impossible to set in overwritten do_connect()
method.
This commit fixes the problem by changing _is_connected as protected enabling its use
in inherited class.
2019-10-04 10:29:56 +03:00
Ari Parkkila
e449e6dcdc
Cellular: Fix setting of PDP context ID (cid)
2019-09-27 02:09:36 -07:00
Ari Parkkila
8054b8eef8
Cellular: Fix resolving of DNS server IPv4/6 address
2019-09-25 03:16:45 -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
Martin Kojtal
66c39e0bca
Merge pull request #11424 from mirelachirica/stack_type_ip_versions
...
Stack type ip versions
2019-09-13 11:46:06 +02:00
Mirela Chirica
7aaaae121e
Cellular: IP stack property redefined
2019-09-12 12:56:28 +03:00
Ari Parkkila
cb20277701
Cellular: Fix BG96 power on and connect
2019-09-04 03:24:11 -07: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
Anna Bridge
2af2b1b18b
Merge pull request #11190 from jarvte/fix_wise1570_netsocket_tests
...
Cellular: failure when deleting created context is not considered error
2019-08-15 12:58:32 +01: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
Teppo Järvelin
10251ab3b2
Cellular: failure when deleting created context is not considered as an error
...
If delete fails there is nothing we or application can do. There is no point
returning an error for this. This affects to AT_CellularContext::disconnect
not returning an error if context delete fails.
2019-08-09 12:27:25 +03:00
Seppo Takalo
976c30c52b
Merge pull request #11162 from AriParkkila/cell-dns
...
Add DNS servers from cellular PDP to nsapi
2019-08-07 14:06:49 +03:00
Seppo Takalo
46a56fb47b
Merge pull request #11154 from AriParkkila/cell-shutdown-stm
...
Cellular API shutdown to stop state machine
2019-08-06 11:34:44 +03:00
Ari Parkkila
e1124668db
Cellular: Add DNS servers from PDP contexts to nsapi_dns
2019-08-05 21:53:24 -07:00
Ari Parkkila
ed3562e764
Cellular: Fix shutdown to stop statemachine
2019-08-02 02:26:12 -07:00
Mirela Chirica
341cc2be03
Cellular: Remove unnecessary local variables
2019-08-01 13:26:05 +03:00
Ari Parkkila
ac78b5ab16
Cellular: Fix to delete context just once
2019-07-23 03:04:24 -07:00
Kevin Bracey
a522dcfa0a
Replace deprecated wait calls
2019-07-15 10:13:50 +03:00
Martin Kojtal
d2c73f2bcd
Merge pull request #10842 from ghseb/cellular-stack-type-fixes
...
Cellular: Stack type fixes
2019-07-01 09:23:21 +01:00
Anna Bridge
6000724de6
Merge pull request #10703 from AnttiKauppila/optimisation
...
Cellular: Removed boilerplate code
2019-06-19 12:06:10 +01:00
Sebastian Stockhammer
402c471e70
Require exact context type match
2019-06-17 10:03:06 +02: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
Antti Kauppila
83d62fbb9c
astyle fixes
2019-05-29 20:13:22 +03:00
Antti Kauppila
77e8374058
Cellular: Removed boiler plate code
2019-05-29 16:17:08 +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
e4ee870b2e
Cellular: Initialize CellularContext member variables in correct class
...
CellularContext member variables were initialized in inheriting class.
Now in base class where they should be initialized so that every inheriting
class don't have to init them.
2019-05-10 11:43:48 +03:00
Martin Kojtal
13880dcd1b
Merge pull request #10465 from jarvte/fix_imsi_length
...
Cellular: fix calls to ATHandler::read_string(...) give correct size
2019-05-03 08:38:40 +01:00
Teppo Järvelin
1abf600d03
Cellular: fix calls to ATHandler::read_string(...) give correct size
...
ATHandler::read_string(...) buffer size param was changed a long time ago
to include also NULL. Some calls still gave wrong size after this change.
2019-04-25 11:20:05 +03:00
Teppo Järvelin
9d67a8b61c
Cellular: send disconnect to correct ctx
...
Disconnect was sent to all CellularContext classes even it concerned
one specific context. Some disconnect events are still sent to all
context classes. These event are coming from network and ment for all
context classes or event did not specify cid.
2019-04-17 13:53:40 +03:00
Martin Kojtal
b2b2fcea7b
Merge pull request #10375 from AriParkkila/cell-context-cleanup
...
Cellular: Fix to delete PDP context on disconnect
2019-04-17 09:23:52 +01:00
Ari Parkkila
79c54372f2
Cellular: Fix to delete PDP context on disconnect
2019-04-11 03:58:56 -07:00
Ari Parkkila
e0f8b2116a
Cellular: Fix CellularStateMachine timeout configurations
2019-04-09 22:02:38 -07: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