Commit Graph

437 Commits (a4ed473afcdd9d9a8733b6a37a40019a49c12c6e)

Author SHA1 Message Date
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
Teppo Järvelin 467ae09bef Cellular: Updated target SARA4_PPP to use new CellularContext class. 2018-11-11 14:13:05 +02:00
Teppo Järvelin 9fb83024ea Changed CellularContext to inherit from CellularBase instead of NetworkInterface. \n Changed Device constructor to take Filehandle instead of eventqueue. 2018-11-11 14:13:05 +02:00
Teppo Järvelin dbbe2ddc59 Cellular: fixed to compile even if CELLULAR_DEVICE and rx/tx are not defined. 2018-11-11 14:13:05 +02:00
Teppo Järvelin d1ff9ed68d Cellular: added to reset state machine is we get disconnected so application can try again. 2018-11-11 14:13:05 +02:00
Teppo Järvelin 609b0f71be Cellular: minor doxygen fixes. 2018-11-11 14:13:05 +02:00
Teppo Järvelin 8385b19e5e Cellular: Deleted unused class CellularConnectionFSM. Application should use CellularContext class instead. 2018-11-11 14:13:05 +02:00
Teppo Järvelin 43e08a0adf Cellular: fixing unit test after refactor. 2018-11-11 14:12:49 +02:00
Teppo Järvelin ad2abbe887 Cellular: major refactoring while introducing new CellularContext class. 2018-11-11 14:12:49 +02:00
Teppo Järvelin 8880538eba Cellular: Introduced new state machine to replace old CellularConnectionFSM
CellularDevice class own new state machine. Now we don't have to expose state machine
which may change and so we don't have to make API changes if that happens.
EasyCellularConnection uses now CellularDevice instead of old state machine.
2018-11-11 14:11:21 +02:00
Cruz Monrreal 9d95d46d6c
Merge pull request #8591 from 0xc0170/fix_coding_style_features
features: fix coding style
2018-11-09 09:40:56 -06:00
Brian Daniels da6ce029ea Removing cellular references to COMMON_PAL 2018-11-08 16:55:59 -06:00
Cruz Monrreal II 6ebc5be0f0 Merge branch 'cellular_fsm' of ssh://github.com/marcemmers/mbed-os into rollup 2018-11-08 13:24:20 -06:00
Martin Kojtal 14eadfac44
Merge pull request #8653 from u-blox/r410m_sdcard
mbed_lib.json updated for other all C030 targets and code corrected t…
2018-11-08 14:54:58 +01:00
Martin Kojtal 71d35749f9 cellular: fix coding style 2018-11-07 08:56:32 +00:00
Fahim Alavi 2806dd8216 mbed_lib.json updated for other all C030 targets and code corrected to use UBLOX_AT 2018-11-06 17:58:41 +05:00
Jeroen de Bruijn 440905a84e
fix: Change cellular FSM thread name 2018-11-02 16:23:52 +01:00
Jeroen de Bruijn 3f635ef813
fix: Update thread names
Remove _thread suffix and rename threads.
2018-11-02 13:44:24 +01:00
Jeroen de Bruijn 56a12ce7d6
feat: Name cellular FSM queue thread 2018-11-01 13:55:44 +01:00
Cruz Monrreal 66968c5bb0
Merge pull request #8371 from u-blox/ublox-cellular-unsupported-features
Cellular: Add unsupported features for UBLOX targets
2018-10-30 08:46:47 -05:00
Marc Emmers d55f6a9915 Check if a queue is present. Return an error otherwise 2018-10-29 13:56:45 +01:00
Marc Emmers 2de83fb286 Unchain the queue when connection is stopped 2018-10-29 13:56:25 +01:00
Mirela Chirica c8f2ed3d30 Cellular: ATHandler to reset match URC generated errors and continue response handling 2018-10-29 13:33:11 +02:00
Mirela Chirica 4e6cbb8f5f Cellular: ATHandler's mem_str fixed to work on matching strings 2018-10-29 13:33:10 +02:00
Mirela Chirica 273590f615 Cellular: Added ATHandler option to write parameters without delimiters 2018-10-29 13:33:09 +02:00
Mirela Chirica f016d1126f Cellular: AT handler to support only one callback per URC/prefix 2018-10-29 13:32:15 +02:00
Cruz Monrreal 737b36f106
Merge pull request #8440 from kivaisan/gemalto_tcp_socket_support
Cellular: Gemalto TCP Socket support
2018-10-27 09:17:31 -05:00
mudassar-ublox 0b2d508991 Added unsupported features for UBLOX targets 2018-10-26 10:05:37 +05:00
Cruz Monrreal 39b4872233
Merge pull request #8369 from u-blox/ublox-cellular-target
Cellular: UBLOX_C030_R410M cellular target add
2018-10-23 10:54:44 -05:00
Cruz Monrreal 69904ea43e
Merge pull request #8313 from kivaisan/reduce_memory_footprint
Reduce cellular memory footprint
2018-10-23 09:05:39 -05:00
Cruz Monrreal ba23fef90b
Merge pull request #8350 from mirelachirica/at_consume_to_tag_fix
Cellular: Fix for AT handler consume to tag
2018-10-22 19:45:24 -05:00
Kimmo Vaisanen 963bf8146d Cellular: Refactor basic AT command stop and response reading into own method
This reduces ROM usage by few hundred bytes.
2018-10-22 09:44:12 +03:00
Kimmo Vaisanen 553718ba5b Cellular: Optimize memory usage for gsm_to_ascii table
gsm_to_ascii table contains ASCII codes, so it can be a char table instead of int table.

This reduces ROM usage by 384 bytes.
2018-10-22 08:35:33 +03:00
Mirela Chirica 31f153af7d Cellular: Fix for 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-10-19 15:21:02 +03:00
Cruz Monrreal 8ac60bc1b0
Merge pull request #8050 from AriParkkila/cell-ublox-copn
Cellular: Fix Greentea tests for UBLOX_C027
2018-10-16 10:22:37 -05:00
Kimmo Vaisanen d7e07164fe Cellular: Gemalto TCP Socket support 2018-10-16 14:30:24 +03:00
Cruz Monrreal a9f43239be
Merge pull request #8295 from AriParkkila/cell-cinterion
Cellular: Update Cinterion AT drivers
2018-10-15 10:10:23 -05:00
Cruz Monrreal ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Ari Parkkila a38247dc04 Cellular: Fix Greentea tests for UBLOX_C027 2018-10-15 03:50:46 -07:00
Cruz Monrreal II aaead00218 Merge branch 'ublox-cellular-api' of ssh://github.com/u-blox/mbed-os into u-blox-ublox-cellular-api 2018-10-12 21:46:38 -05:00
Kevin Bracey 1ef213ec89 Clean up Thread deprecation warnings
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Cruz Monrreal 3568c54da6
Merge pull request #8180 from kivaisan/quectel_bg96_tcp_socket
Cellular: Quectel BG96 TCP socket support
2018-10-11 10:14:25 -05:00
Cruz Monrreal f9e5167126
Merge pull request #8258 from mirelachirica/fix_compile_warning_network
Cellular: Fix compile warnings for CellularNetwork
2018-10-11 10:11:54 -05:00
Cruz Monrreal c43a3f4dfb
Merge pull request #8148 from kivaisan/wise_1570_cellular_tcp
Cellular: Quectel BC95 TCP socket support
2018-10-10 15:49:30 -05:00
Mirela Chirica ffb9cdb4b3 Cellular: Registration parameters as struct 2018-10-09 10:49:47 +03:00
Mirela Chirica 723e913bcc Cellular: AT handler read string up to delimiter or stop tag 2018-10-09 10:47:25 +03:00
Cruz Monrreal b15d09173e
Merge pull request #8315 from kivaisan/fix_cellular_unittests
Fix cellular unittests
2018-10-08 10:24:31 -05:00
Cruz Monrreal bff4f4be6c
Merge pull request #8268 from mirelachirica/fix_gt_set_credentials
Cellular: Fix greentea network set credentials test case
2018-10-08 10:17:05 -05:00
Cruz Monrreal b153bb3f77
Merge pull request #8057 from korjaa/remove_sim_pin_print
Removed cellular PIN code print from debug log.
2018-10-08 10:07:11 -05:00
Martin Kojtal 365d61e4a9
Merge pull request #7304 from cedrickkukela-cd/MTS_DRAGONFLY_L471QG_pull_request_feature_changes
Add MTS dragonfly, MTS dragonfly l471
2018-10-08 11:06:23 +02:00
mudassar-ublox 9c2686fda6 error handling for socket create 2018-10-08 12:24:40 +05:00
Ari Parkkila 3784dd066e Cellular: Fixed AT drivers for Gemalto/Cinterion cellular module to close internet service and profile. 2018-10-08 00:14:29 -07:00
mudassar-ublox 903b6d6d19 C030_R410M cellular target added 2018-10-05 17:21:51 +05:00
Martin Kojtal 2247494596
Merge pull request #7978 from jarvte/fix_cellular_no_pin
Cellular: state machine and easycellular now return error fast if sim…
2018-10-04 13:38:34 +02:00
Kimmo Vaisanen 05f0ba8e97 Cellular: Fix AT_CellularStack unittest
Missing CellularSocket constructor caused uninitialized values to be used.

Also changed comparision macros to ASSERT_EQ as suggested by GoogleTest guide.
2018-10-03 14:44:34 +03:00
Leon Lindenfelser f0a5dce37f Delete commented out merge conflict resolution 2018-10-01 08:25:47 -05:00
Jaakko Korhonen 473ac20017 Removed cellular PIN code print from debug log. 2018-10-01 09:11:28 +03:00
Leon Lindenfelser 88c1cd1e37 Add header so cellular_power tests compile and run 2018-09-27 15:49:06 -05:00
Leon Lindenfelser ff817de28c Fix broken cellular_device test and delete commented code 2018-09-27 14:21:57 -05:00
Cruz Monrreal 9bd17d33f3
Merge pull request #7934 from wajahat-ublox/psm_method_typo
corrected a typo in AT_CellularPower::opt_power_save_mode
2018-09-27 10:20:44 -05:00
Mirela Chirica 85df0b5cce Cellular: Fix greentea network set credentials test case 2018-09-27 13:51:49 +03:00
Leon Lindenfelser 97d6a91eb9 Fix rebase conflict file 2018-09-26 15:54:03 -05:00
Leon Lindenfelser 9791e98575 Fix so building for other targets does not fail 2018-09-26 15:39:42 -05:00
Leon Lindenfelser 5ff0eb9d92 Rebase and changes for Dragonfly nano support 2018-09-26 15:39:42 -05:00
Leon Lindenfelser 55bcf93574 Fixed spacing/tabs and clean up targets.json 2018-09-26 15:37:33 -05:00
cedrick kukela 59dda88e05 changes to support mts dragonfly nano ppp 2018-09-26 15:37:33 -05:00
Mirela Chirica 265255305a Cellular: Fix compile warnings for CellularNetwork 2018-09-26 16:39:05 +03:00
Mirela Chirica 983425e4fc Cellular: Fix cellular network unit test 2018-09-24 15:15:18 +03:00
Martin Kojtal 2e049ce035
Merge pull request #8019 from jarvte/fix_crash_in_close_cellularnetwork
Cellular: fixed crash when closing CellularNetwork via CellularDevice.
2018-09-24 09:06:34 +02:00
Cruz Monrreal 73a96a68cf
Merge pull request #8147 from AriParkkila/cell-auth
Fix authentication on a cellular network for Access Point Name (APN)
2018-09-22 16:25:35 -05:00
Kimmo Vaisanen 7931378245 Cellular: Quectel BG96 TCP socket support 2018-09-19 13:01:48 +03:00
Cruz Monrreal f00c5643e5
Merge pull request #7944 from AnttiKauppila/unittests
Cellular Unittests refactored to GoogleTest framework
2018-09-18 11:30:23 -05:00
Teppo Järvelin ed7606bf0c Cellular: fixed crash when closing CellularNetwork via CellularDevice. 2018-09-18 14:45:07 +03:00
Martin Kojtal 87daf8f8c3
Merge pull request #7969 from jarvte/cellu_multiple_context
Cellular: CellularDevice:get_default_instance() implemented
2018-09-17 14:52:10 +02:00
Ari Parkkila 13106fb774 Cellular: Disable AT+CGAUTH on HE910 and BC95 2018-09-17 03:28:18 -07:00
Kimmo Vaisanen 1f1b5d3a5a Cellular: Quectel BC95 TCP socket support 2018-09-17 13:06:24 +03:00
Antti Kauppila a6b4938844 Small improvements for test cases 2018-09-17 12:07:43 +03:00
Antti Kauppila adc4ce4385 Old Cellular UNITTESTS removed 2018-09-17 12:07:43 +03:00
Ari Parkkila 4698cd268d Cellular: Implement APN authentication for BG96 2018-09-17 01:14:59 -07:00
Ari Parkkila fb899d2cc1 Cellular: Fix APN authentication before context activation 2018-09-17 01:14:59 -07:00
Teppo Järvelin 8f4acc14ca Cellular: CellularDevice:get_default_instance() implemented
Removed copy-paste code from targets by creating implementation methods to override.
2018-09-07 14:49:18 +03:00
Cruz Monrreal 06106297a4
Merge pull request #6293 from Taiki-San/patch-1
Reduce .text footprint of the network stack
2018-09-05 10:16:04 -05:00
Teppo Järvelin 69bcbd84db Cellular: state machine and easycellular now return error fast if sim pin needed but not provided. 2018-09-04 13:13:35 +03:00
Martin Kojtal b20fd506c1
Merge pull request #7910 from AriParkkila/cell-test-attach
Cellular: Fix Greentea test for network attach
2018-09-04 08:20:38 +02:00
Martin Kojtal e7b3c0d727
Merge pull request #7894 from jarvte/fix_cellular_unittests
Cellular: CellularDevice unittests fix initialization
2018-09-02 20:18:25 +02:00
Wajahat Abbas acd6ff304a corrected a typo in AT_CellularPower::opt_power_save_mode 2018-08-30 16:47:09 +05:00
Cruz Monrreal e649beac5e
Merge pull request #7788 from AriParkkila/cell-copn
Cellular: Fixed AT+COPN
2018-08-29 09:38:13 -05:00
Cruz Monrreal 7b29f7d2e8
Merge pull request #7795 from mirelachirica/issue_7470_access_to_power
Cellular: Add getters for device and serial to EasyCellularConnection
2018-08-29 09:37:38 -05:00
Ari Parkkila ce84209507 Cellular: Fix Greentea test for network attach 2018-08-28 06:20:50 -07:00
Taiki 758f6d2e83 Switch the IPv4 parser to the one recently introduced in libservice. Return a bool value on wether parsing of the IPv4 address string was successful 2018-08-28 14:00:54 +02:00
Ari Parkkila 90fe9de8ed Cellular: Fixed network registration on Gemalto AT drivers 2018-08-28 02:14:28 -07:00
Ari Parkkila 9d0e3d8797 Cellular: Added support for the Gemalto/EMS31 cellular module 2018-08-28 02:14:28 -07:00
Ari Parkkila a14ac31f68 Cellular: Added support for the Gemalto/BGS2 cellular module 2018-08-28 02:14:28 -07:00
Ari Parkkila 761e01f55c Cellular: Gemalto Cinterion support for ELS61 2018-08-28 02:14:28 -07:00
Martin Kojtal 9e012c3de6
Merge pull request #7860 from AriParkkila/cell-reg-mode
Cellular: Allow cellular modules to override network registration mode
2018-08-28 10:42:48 +02:00
Teppo Järvelin 5e6988899c Cellular: review fix removed magic numbers from unit tests. 2018-08-28 07:36:49 +03:00