Commit Graph

322 Commits (db673324960cb38af276fbc04f0a238b094ea3ed)

Author SHA1 Message Date
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
Cruz Monrreal 7ac4bf4a4e
Merge pull request #7870 from AriParkkila/cell-cgdata
Cellular: Support for GPRS dial-up
2018-08-27 10:29:44 -05:00
Cruz Monrreal 686b77949f
Merge pull request #7857 from AriParkkila/cell-stack-mt
Cellular: Make AT_CellularStack socket array multi-thread safe
2018-08-27 10:29:29 -05:00
Ari Parkkila 1eb1fabad0 Cellular: Allow cellular modules to override network registration mode 2018-08-24 04:27:49 -07:00
Martin Kojtal 582b414ea2
Merge pull request #7840 from mirelachirica/wise_1570_greentea_tests
WISE_1570 greentea tests
2018-08-24 11:31:44 +02:00
Ari Parkkila 4b223b6ff2 Cellular: Make AT_CellularStack socket array multi-thread safe 2018-08-24 00:21:26 -07:00
Ari Parkkila d208706fd6 Cellular: Support for GPRS dial-up 2018-08-23 02:37:47 -07:00
Mirela Chirica 8db370c642 Cellular: Fix sim greentea tests for BC95 modem 2018-08-22 14:41:30 +03:00
Mirela Chirica c0b8a113b1 Cellular: Fix network greentea tests for BC95 modem 2018-08-22 14:40:22 +03:00
Mirela Chirica b5d68b546a Cellular: In LTE mode last PDP context cannot be deactivated 2018-08-22 14:38:18 +03:00
Cruz Monrreal 17a525c487
Merge pull request #7619 from u-blox/cellular_ublox_udp_tcp_imp
UBLOX cellular api's for UDP and TCP
2018-08-21 10:12:47 -05:00
Cruz Monrreal cd0126ae29
Merge pull request #7768 from jarvte/document_all_cellular_errcodes
Cellular: Document all possible error codes for cellular API.
2018-08-21 09:42:55 -05:00
Amanda Butler 9f5a71a7bb
Copy edit CellularSMS.h
Copy edit file for parallelism, consistent capitalization and minor grammar nits.
2018-08-20 15:41:25 -05:00
Amanda Butler 23da904f8e
Copy edit CellularSIM.h
Copy edit for parallelism, and fix typo and capitalization from before these changes.
2018-08-20 15:36:37 -05:00
Amanda Butler 14e1745ec6
Copy edit CellularPower.h
Copy edit file for parallelism, and fix typo
2018-08-20 15:32:40 -05:00
Amanda Butler 9d4bb83cc6
Copy edit CellularNetwork.h
Copy edit file for parallelism and active voice.
2018-08-20 15:22:15 -05:00
Amanda Butler 7181afcf69
Copy edit CellularInformation.h
Copy edit file for parallelism and active voice.
2018-08-20 15:11:53 -05:00
Cruz Monrreal 871ee09c7a
Merge pull request #7667 from AriParkkila/cellular-detect
Cellular: Add CellularDevice::init_module API to be called at startup
2018-08-17 11:09:11 -05:00
Cruz Monrreal 7b8a13791b
Merge pull request #7740 from mirelachirica/missing_resp_stop
Cellular: Handle AT response stop in case IP address is missing from …
2018-08-16 09:06:05 -05:00
mudassar-ublox f512668230 Replaced rx_avail with pending_bytes 2018-08-15 16:54:40 +05:00
mudassar-ublox f9aaee55dd Support added for async sockets 2018-08-15 14:52:57 +05:00
Ari Parkkila 5f8f47590f Cellular: Fixed AT+COPN 2018-08-14 04:47:58 -07:00
Teppo Järvelin 907fede1d7 Cellular: review fixes for doxygen changes of return values. 2018-08-13 15:09:14 +03:00
Teppo Järvelin 66fcbb9291 Cellular: Document all possible error codes for cellular API. 2018-08-13 09:45:25 +03:00
Mirela Chirica c217a521f4 Cellular: Handle AT response stop in case IP address is missing from CGPADDR response 2018-08-09 11:41:19 +03:00
Teemu Kultala df8252539b sms gt tests: rebase and astyle fix 2018-08-07 16:34:46 +03:00
Teemu Kultala 2b82746ae2 sms gt tests: changes after review 2018-08-07 14:10:57 +03:00
Teemu Kultala f9a90d82b0 sms gt tests 2018-08-07 14:10:57 +03:00
Cruz Monrreal 4000e009c1
Merge pull request #7564 from wajahat-ublox/ublox_idle_mode
Cellular: Make ATHandler::cmd_start() virtual
2018-08-02 10:11:55 -05:00
Wajahat Abbas dfc8ca91fa made destructor virtual as class has a virtual method now 2018-08-01 16:59:18 +05:00
Ari Parkkila c6ab45b6e1 Cellular: Added CellularDevice::init_module API to be called at startup 2018-08-01 04:52:10 -07:00
Ari Parkkila f059fb36bd Cellular: Updated coding guidelines 2018-08-01 04:50:14 -07:00
mudassar-ublox 122e771063 socket_open function removed 2018-07-31 15:09:29 +05:00
mudassar-ublox ffb4f926e9 Artistic style applied and updated power function 2018-07-30 19:41:02 +05:00
Martin Kojtal cde18aa0bc cellular: astyle fix 2018-07-27 13:33:20 +01:00
mudassar-ublox a8abeccdac UBLOX cellular api's for UDP and TCP 2018-07-26 19:20:38 +05:00