Teppo Järvelin
e4018bd9bb
Cellular: fix onboard modems powering failure
...
Don't call soft power on if device was already powered.
Some modems need to wait before sending anything to modem after soft powering.
2019-02-14 12:39:37 +02:00
Jari Poyhonen
b6a0892e86
Cellular: clean sensitive information from trace
...
Information removed from the cellular subsystem trace log:
* SIM pin
* APN username and password
Added get_debug() to ATHandler.h to get the current trace state in order
to support suspend/resume of trace output.
2019-02-14 09:22:54 +02:00
Cruz Monrreal
e310458a88
Merge pull request #9692 from naveenkaje/fix_ublox_celluar_warning
...
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
2019-02-13 17:12:51 -06:00
Naveen Kaje
02e42fef3e
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
...
Fix this build warning seen when building with ARMCC
Compile [ 13.7%]: UBLOX_AT_CellularNetwork.cpp
[Warning] UBLOX_AT_CellularNetwork.cpp@65,0: #111-D: statement is unreachable
2019-02-12 15:50:23 -06:00
Neil MacMullen
f29c5b22a1
Keep style linter happy
2019-02-12 14:37:07 +00:00
Neil MacMullen
a7f4cbcdce
Make a few trivial syntactic changes to better support cross-compilation
2019-02-12 12:01:05 +00:00
Martin Kojtal
e1d891b858
Merge pull request #9587 from naveenkaje/fix_build_warning_QUECTEL
...
targets: QUECTEL: Fix build warning
2019-02-12 09:52:06 +01:00
Mirela Chirica
b473aca700
Cellular: Fix UDPSOCKET_SENDTO_INVALID test for BG96
2019-02-08 15:43:01 +02:00
Mirela Chirica
28b4e28207
Cellular: Fix socket's send and receive boundaries for BG96
2019-02-08 13:02:18 +02:00
Mirela Chirica
6af725822b
Cellular: Fix socket bind tests for BG96
2019-02-08 13:02:18 +02:00
Nir Sonnenschein
8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
...
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Martin Kojtal
a0ec77d9a8
Merge pull request #9378 from oscarh/master
...
Add get_connection_status() override in CellularContext
2019-02-05 10:39:00 +01:00
Naveen Kaje
08c9ae3927
targets: QUECTEL: Fix build warning
...
Fix the following warning seen when built with GCC_ARM with mbed-cli v1.8.3
$ mbed compile -c -t GCC_ARM -m K64F
<snip>
[Warning] QUECTEL_M26_CellularStack.cpp@364,9: variable 'sent_acked' set but not used [-Wunused-but-set-variable]
<snip>
2019-02-01 14:14:37 -06:00
Martin Kojtal
50b5f57c28
Merge pull request #9457 from blind-owl/fix_valgrind_defects_from_cellular
...
Fix valgrind defects from cellular
2019-01-31 11:12:00 +01:00
Ari Parkkila
95839662c6
Cellular: Fix cellular specific Greentea tests
2019-01-24 23:34:44 -08:00
Jari Poyhonen
84536bd09e
cellular ATHandler update due valgrind run
2019-01-23 09:43:03 +02:00
Ari Parkkila
007caa0235
Cellular: Update modem drivers with get_default and other new APIs
2019-01-22 02:24:45 -08:00
Ari Parkkila
af0d2cf61d
Cellular: Update API description to match better onboard_modem_api
2019-01-22 02:24:45 -08:00
Ari Parkkila
c4de2f2f0e
Cellular: Power API updated to match onboard_modem_api
2019-01-22 02:24:45 -08:00
Ari Parkkila
269d151b12
Cellular: Default modem drivers with FF_ARDUINO
2019-01-22 02:24:45 -08:00
Ari Parkkila
75caa75a96
Cellular: Add get_target_default_instance in CellularDevice
2019-01-22 02:24:45 -08:00
Ari Parkkila
59972b6659
Cellular: Remove netsocket/generic_modem_driver
2019-01-22 02:24:45 -08:00
Ari Parkkila
139d506a24
Cellular: Move power on/off to device and remove CellularPower
2019-01-22 02:24:45 -08:00
Mirela Chirica
55b54f7c97
Cellular: Added API for setting default parameters to a network interface
2019-01-22 02:24:45 -08:00
Mirela Chirica
ba3727b4e8
Cellular: Unit tests for Non-IP socket
2019-01-22 02:24:45 -08:00
Mirela Chirica
d301e13610
Cellular: Non-IP socket and PDP context for EPS control plane data delivery
2019-01-22 02:24:44 -08:00
Teppo Järvelin
84e5013a2d
Cellular: added setting of data carrier support for UART.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
725e14d15f
Cellular: Add State machine unit tests.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
97709f52ec
Cellular: fix possible crash in state machine
...
_sim_pin was changed to pointer from array and length was checked with
strlen. If _sim_pin was null it caused crash. Fix by checking _sim_pin against NULL.
Power class could have been called without checking if power is NULL. Fix by checking
that power class is not null.
Fix state machine to return correct states when queried.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
fa5d0fc358
Cellular: Added generic cellular modem
...
Generic cellular module (GENERIC_AT3GPP) can by used as a default
module when porting new cellular module. It's a good starting point
and eases porting of new modules. GENERIC_AT3GPP uses only standard
3GPP AT commands when communicating with the modem.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
0c9130efeb
Cellular: change stack_type_supported to get_property
...
Change usage of AT_CellularContext::stack_type_supported to
AT_CellularBase::get_property. This way we can rid of
targets overriding stack_type_supported and delete
unnecessary classes and simplify new targets.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
7c9f9d47ec
Cellular: Remove target files inheriting from AT_CellularNetwork
...
After AT_CellularNetwork::has_registration was replaced with
CellularProperties and better
AT_CellularNetwork::set_access_technology_impl default
implementation we can delete most of the target specific classes
that inherit AT_CellularNetwork.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
9a72c221d8
Cellular: Change AT_CellularNetwork to use CellularProperties.
...
This change enables removing function has_registration from
class AT_CellularNetwork and all targets inheriting
AT_CellularNetwork.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
b0d37ebec4
Cellular: Removed unnecessary checks after new
...
After this change we were able to change methods
ATHandler::set_urc_handler and CellularDevice::set_ready_cb to void
and simplify error handling.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
8fcd2e0401
Cellular: changed support features to CellularProperty array.
2019-01-22 02:23:04 -08:00
Ari Parkkila
c7486b2a0d
Cellular: Added shutdown()
2019-01-22 02:23:04 -08:00
Ari Parkkila
bdddb445a6
Cellular: Moved reset from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
1bc84404b2
Cellular: Removed set_power_level()
2019-01-22 02:23:03 -08:00
Ari Parkkila
0813b969f7
Cellular: Unify set_at_mode and init_module into init()
2019-01-22 02:23:03 -08:00
Ari Parkkila
2dde5a4376
Cellular: Move ready_cb from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
19b24946df
Cellular: AT remove_urc_handler changed to set_urc_handler(prefix, 0)
2019-01-22 02:23:03 -08:00
Ari Parkkila
e49f90fb0b
Cellular: Move device_ready from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
38f79a9b65
Cellular: Move PSM setting from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
36292a4f14
Cellular: Move eDRX setting from power to network
2019-01-22 02:23:03 -08:00
Teemu Kultala
22a536a78a
cellular: eps ciot optimization network support check astyle fix
2019-01-22 02:23:03 -08:00
Teemu Kultala
f94117559b
cellular: eps ciot optimization network support check
...
-added an API for checking network eps ciot optimization support
-renamed the API for getting the UE parameters
-the API for setting the UE parameters includes now a callback, which
will be called once network support for eps ciot optimization is known
2019-01-22 02:23:03 -08:00
Teppo Järvelin
22d9105318
Removed CellularSIM interface.
...
Moved methods to classes CellularDevice and CellularInformation.
SIM interface was removed to simplify cellular usage and
methods better suite new classes.
Updated greentea and unit tests.
2019-01-22 02:23:03 -08:00
Ari Parkkila
235c2bc00d
Cellular: Removed get_extended_signal_quality and changed get_signal_quality
2019-01-22 02:23:03 -08:00
Teppo Järvelin
08bd651ae4
Cellular: Fixed CellularStateMachine to stop on all target states.
2019-01-22 02:23:03 -08:00
Seppo Takalo
6b8b108ceb
Add missing copyright header.
2019-01-21 11:47:41 +02:00
Seppo Takalo
6f15b04655
Fix review findings.
2019-01-21 11:45:13 +02:00
Ari Parkkila
397b396291
Cellular: Update cellular documentation
2019-01-21 11:43:49 +02:00
Martin Kojtal
714fc83054
Merge pull request #9369 from u-blox/target_C030-R412M
...
Add target C030-R412M
2019-01-17 12:39:43 +01:00
Cruz Monrreal
84f01d3217
Merge pull request #9261 from tz-arm/merge_quectel_m26
...
Initial version for Quectel M26 GSM/GPRS Module.
2019-01-16 22:07:07 -06:00
Oscar Hellström
13222da2b6
Call network status callback from UBLOX AT
...
The helper method call_network_cb, actually does a lot more than calling
the callback. The method has a check that the network status supplied
for the callback is different compared to the internal one. It also sets
the class member if it is changed. This is a bit surprising, given the
name of the method. It also means that it doesn't work in this call, as
the member is already set.
2019-01-15 09:37:41 +01:00
Oscar Hellström
58b176ca04
Add connection status override for CellularContext
...
Add override for the virtual method get_connection_status() inherited
from NetworkInterface. The method in the base class returns
NSAPI_STATUS_ERROR_UNSUPPORTED. The CellularContext has the member
_connection_status, which means that we could return this.
2019-01-15 09:37:24 +01:00
Fahim Alavi
5caeaed6db
Set target C030-R412M in mbed
2019-01-14 17:34:50 +05:00
Martin Kojtal
17b0d4e295
Merge pull request #9152 from jarvte/check_attach_status_stm
...
Cellular: fix state machine to check network attach
2019-01-07 16:37:12 +00:00
Terence Zhang
bf08cf786b
Initial version for Quectel M26 GSM/GPRS Module.
2019-01-03 16:38:13 +08:00
Martin Kojtal
671c061c61
Merge pull request #8749 from TeemuKultala/cellular_at_handler_api
...
Cellular: AT handler API
2018-12-20 16:31:06 +00:00
Teppo Järvelin
6bc7ec0073
Cellular: fix state machine to check network attach
...
Added check to state machine that if modem is attached to a network
it is considered to be registered to a network and state machine
can continue to next states. This fixed issues seen in IoT network
that network does not allow registering if already attached.
2018-12-19 13:36:39 +02:00
Teemu Kultala
b87b52a45c
cellular: AT Handler API changes after review
2018-12-14 13:19:03 +02:00
Teemu Kultala
dbdbae3632
cellular: AT Handler API
2018-12-14 13:19:03 +02:00
Teppo Järvelin
fc4ed93e08
Cellular: Fix to use PPP stack in PPP mode
...
In QUECTEL_BG96 and QUECTEL_BC95 there was missing #ifdefs for
PPP mode and our stack was used. Also BG96 needed to be added
AT_CellularBase::AT_CGDATA as not supported.
2018-12-14 09:40:33 +02:00
Cruz Monrreal
8bd1d06e9a
Merge pull request #8866 from AriParkkila/cell-cinterion-module
...
Cellular: Refactored GEMALTO_CINTERION_Module to GEMALTO_CINTERION
2018-12-13 18:16:13 -06:00
Cruz Monrreal
945a52df1c
Merge pull request #9052 from mirelachirica/at_handler_fix_consume_to_stop_tag
...
Cellular: Rewrite AT handler consume to tag
2018-12-13 18:15:42 -06:00
Mirela Chirica
806e95cf67
Cellular: Rewrite AT handler consume to tag
...
If sequence from buffer contains tag but symbol before tag is same as
first symbol of the tag, then the tag wasn't detected.
For example, "\r\n" tag was not found from "\r\r\nOK" sequence.
2018-12-11 15:36:33 +02:00
Terence Zhang
cc63a31eb3
Formatted via astyle.
2018-12-11 16:50:14 +08:00
Terence Zhang
d3d1e0d30b
Fix for the fault exception issue:
...
https://github.com/ARMmbed/mbed-os-example-cellular/issues/112
2018-12-10 11:07:13 +08:00
Terence Zhang
a713358d3c
Fix the fault exception issue in socket_recvfrom with the null pointer parameter as SocketAddress *addr.
2018-12-10 11:07:12 +08:00
Cruz Monrreal
fce4dc6dc3
Merge pull request #8852 from jarvte/cellular_doxygen_update
...
Cellular: update doxygen and add attach CellularDevice.
2018-12-07 11:23:22 -06:00
Amanda Butler
446c428645
Edit CellularContext.h
...
Edit file for complete sentences and correct commas.
2018-12-06 16:42:59 -06:00
Amanda Butler
411320ad8b
Edit CellularDevice.h
...
Edit file for complete sentences, consistent tense and correct commas.
2018-12-06 16:38:28 -06:00
Martin Kojtal
bf36ff77c1
Merge pull request #8855 from michalpasztamobica/warnings_fix
...
Fix compilation warnings (apart from nanostack)
2018-12-03 13:31:55 +01:00
Martin Kojtal
b9927e5f27
Merge pull request #8795 from TeemuKultala/cellular_connect_status_fix
...
cellular: registration status change fix
2018-11-30 14:32:34 +01:00
Martin Kojtal
5e6dc940ba
Merge pull request #8821 from jarvte/add_rat_json
...
Cellular: add radio access technology as configurable in json
2018-11-27 09:23:57 +01:00
Teppo Järvelin
76672db5cc
Cellular: add Callback functionality to CellularDevice.
2018-11-27 08:05:41 +02:00
Teppo Järvelin
a3f1ad7b8b
Cellular: updated doxygen for CellularContext and CellularDevice.
2018-11-27 08:04:01 +02:00
Cruz Monrreal
1c1638342d
Merge pull request #8708 from SeeedJP/wio_bg96_hal
...
[Wio BG96] Adding platform HAL
2018-11-26 11:22:29 -06:00
Michal Paszta
e101943cce
Fix compilation warnings (apart from nanostack)
2018-11-26 14:27:48 +01:00
Ari Parkkila
d969c4f369
Cellular: Refactored GEMALTO_CINTERION_Module to GEMALTO_CINTERION
2018-11-26 02:16:12 -08:00
Teemu Kultala
a1b1d7c4bd
cellular: registration status change fix
2018-11-26 11:20:21 +02:00
Ari Parkkila
3d79b50dfb
Cellular: Fix ATHandler URC processing
2018-11-25 23:47:23 -08:00
Teppo Järvelin
f31db91cfb
Cellular: astyle fixes for CellularStateMachine.cpp.
2018-11-26 09:37:00 +02:00
Teppo Järvelin
9a9a209eff
Cellular: added radio access technology as configurable in cellular mbed_lib.json.
2018-11-26 09:37:00 +02:00
Martin Kojtal
5ad7c3ee6e
Merge branch 'gracefully_disconnect' of https://github.com/jarvte/mbed-os into dev_rollup
2018-11-24 21:15:38 +00:00
Martin Kojtal
ab7d2ddf1e
Merge branch 'fix_bc95_todo' of https://github.com/jarvte/mbed-os into dev_rollup
2018-11-24 20:50:16 +00:00
Martin Kojtal
b16569dc3f
Merge pull request #8838 from 0xc0170/dev_rollup
...
Rollup v2 for 5.11rc1
2018-11-24 21:37:02 +01:00
Martin Kojtal
61c7947b47
Merge branch 'cell-trace' of https://github.com/AriParkkila/mbed-os into dev_rollup
2018-11-23 18:37:40 +00:00
Teppo Järvelin
9095635c8f
Cellular: Fixed bc95 to accept only RAT_NB1 as it's only valid rat that modem supports.
2018-11-23 07:52:22 +02:00
Teppo Järvelin
c6205628d6
Cellular: unified return value comments on API folder.
2018-11-20 07:47:01 +02:00
Teppo Järvelin
a655a538b0
Cellular: more gracefully disconnect.
2018-11-19 16:02:30 +02:00
Ari Parkkila
9bdeb68e74
Cellular: Updated debug prints, and network registration return value
...
Updated cellular debug trace prints:
- Removed unnecessary prints.
- Tracing more in DEBUG level.
- Read/write bytes not printed on big packets.
- Signal quality (RSSI) traced to log network problems.
- Dismissed AT data is traced.
- Modem type and firmware version are traced.
Network registration returns NotRegistered instead of StatusNotAvailable,
because that's not in 3GPP TS 27.007.
2018-11-19 02:55:43 -08:00
Teppo Järvelin
e5c3024849
Cellular: adding unit tests for new class CellularContext and changed classes.
2018-11-16 13:14:38 +02:00
Martin Kojtal
a2ae34b0e6
cellular: fix coding style
2018-11-15 07:23:37 +00:00
Teppo Järvelin
88213d3e03
Cellular: astyle fixes after introducing CellularContext class and major refactor.
2018-11-13 18:50:35 +02:00
Teppo Järvelin
14f3740c13
Cellular: fixed cellular greentea tests after major refactoring.
2018-11-13 18:33:55 +02:00
Yoshihiro TSUBOI
222b21e593
[Wio BG96] Adding platform HAL
2018-11-11 23:32:22 +09:00
Teppo Järvelin
3f6e088782
Cellular: Fixed backward compatibility with OnBoardCellularInterface and set default values in NetworkInterfaceDefaults.cpp.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
1a047efade
Cellular: review fixes, added missing fixes from master.
2018-11-11 14:13:05 +02:00