Commit Graph

267 Commits (0404701b5f5b9d2aff76432991c74a36bd80742c)

Author SHA1 Message Date
Teppo Järvelin 861867e3cc Cellular: Added network unit tests. 2018-06-20 08:28:00 +03:00
Teppo Järvelin 7efa041fcb Cellular: added greentea tests for CellularNetwork. 2018-06-20 08:28:00 +03:00
Cruz Monrreal fcfe6e1c43
Merge pull request #7217 from AriParkkila/cellular-info-sim
Cellular: Add AT+CCID and AT+CGSN
2018-06-19 08:54:49 -05:00
Ari Parkkila 7d006f6f6a Cellular: Target support for AT+CCID and AT+CGSN 2018-06-15 14:28:48 +03:00
Teppo Järvelin f821b02468 Cellular: fixed unit tests after rebase with latest changes. 2018-06-15 09:51:16 +03:00
Teppo Järvelin 7e1b0480b0 Cellular: Added power and sim greentea and unit tests. 2018-06-15 09:03:08 +03:00
Cruz Monrreal ac107e955f
Merge pull request #6962 from jarvte/release_resources_cellular_statemachine
Cellular: release resources in state machine.
2018-06-14 10:19:12 -05:00
Cruz Monrreal 276588f9fa
Merge pull request #7098 from SeeedJP/feature-cellular-mux
[Wio 3G] Adding platform
2018-06-14 10:17:19 -05:00
Cruz Monrreal c82af3dbe9
Merge pull request #7102 from jarvte/adding_cellular_tests
Adding cellular tests
2018-06-14 10:16:58 -05:00
Ari Parkkila 44365bccd0 Cellular: Added AT+CCID and AT+CGSN 2018-06-14 13:47:17 +03:00
Teppo Järvelin d9a99b0a45 Cellular: release resources in state machine. Made sure that athandler does not try process urc's after switch to data mode. 2018-06-12 09:01:03 +03:00
Cruz Monrreal 1b14351e28
Merge pull request #7084 from AriParkkila/cellular-debug
Cellular: Enable AT debug also when mbed-trace is disabled
2018-06-11 09:06:53 -05:00
Cruz Monrreal 5e8a0a853a
Merge pull request #7097 from TeemuKultala/random_port
cellular: random socket port number
2018-06-11 08:57:47 -05:00
Yoshihiro TSUBOI 0751dd7c95 [Wio 3G] Changed suggested things
Removed context check from do_user_authentication.
2018-06-11 15:20:15 +09:00
Yoshihiro TSUBOI 16e706ecd4 [Wio 3G] Changed suggested points
Changed accessibility cellular features member functions, fixed minor target issues
2018-06-08 20:13:58 +09:00
Teppo Järvelin b35dc6a582 Review fix:
- set ppp_active false if close fails in ppp disconnect.
- unset sigio in ppp disconnect
- take ownership of filehandle in CellularNetwork::disconnect even in case of failure
2018-06-08 12:29:50 +03:00
Teemu Kultala d3a46eb7cd more effective port randomisation 2018-06-05 13:25:59 +03:00
Teppo Järvelin 9a3c3b531f Cellular: fixed unit tests to compile after rebasing to latest. 2018-06-04 13:27:50 +03:00
Teppo Järvelin 2aa5c32aa4 Cellular: added greentea test for cellular device. 2018-06-04 10:25:54 +03:00
ytsuboi e5b8591818 [Wio 3G] Adding platform 2018-06-04 15:55:43 +09:00
Teemu Kultala b7bad77569 random socket port number 2018-06-04 09:53:34 +03:00
Anna Bridge b5b306ed50
Merge pull request #7052 from mirelachirica/bc95_sock_id_fix
Cellular: BC95 socket creation to fail on missing socket id in the re…
2018-06-01 12:14:14 +01:00
Ari Parkkila 7482032989 Cellular: Enable AT debug also when mbed-trace is disabled 2018-06-01 14:07:27 +03:00
Cruz Monrreal 0f41831afd
Merge pull request #7033 from AriParkkila/cellular-at-fix
Cellular: Fix AT URC handler not to dismiss incoming chars
2018-05-29 10:44:00 -05:00
Cruz Monrreal 206cab97ac
Merge pull request #6965 from mirelachirica/fix_unittests
Cellular: Unit tests fixes
2018-05-29 10:37:35 -05:00
Cruz Monrreal 917fe08752
Merge pull request #6928 from jarvte/fix_cellular_connect_disconnect
Cellular: Fixed con-disc sequence can now be called multiple times.
2018-05-29 10:36:11 -05:00
Mirela Chirica 5c2262219d Cellular: BC95 socket creation to fail on missing socket id in the response 2018-05-29 17:05:16 +03:00
Ari Parkkila c8287e5470 Cellular: Fix AT URC handler not to dismiss incoming chars 2018-05-28 10:32:14 +03:00
Mirela Chirica b59ef26930 Cellular: Unit tests fixes 2018-05-23 12:11:02 +03:00
Ari Parkkila 3abfa4531f Cellular: Removed obsolete FEATURE_COMMON_PAL flag from trace 2018-05-17 09:41:49 +03:00
Ari Parkkila 6a3dce839e Cellular: Updated coding guidelines 2018-05-17 09:02:54 +03:00
Teppo Järvelin 8fa8abca27 Cellular: Fixed connect-disconnect sequence can now be called multiple times. 2018-05-16 14:25:35 +03:00
Ari Parkkila a146e0e7ff Cellular: AT debugging improved 2018-05-16 12:39:30 +03:00
Ari Parkkila 287a1a86d0 Cellular: AT handler review fixes 2018-05-14 10:25:00 +03:00
Ari Parkkila 3bdb6d1737 Cellular: Fixed ATHandler write poll timeout 2018-05-14 10:25:00 +03:00
Ari Parkkila 9b896a16bb Cellular: ATHandler yield to wait review fixes 2018-05-14 10:25:00 +03:00
Ari Parkkila 559abd3009 Cellular: AT requests are to be processed within time period 2018-05-14 10:24:59 +03:00
Ari Parkkila 98ef516061 Cellular: Changed ATHandler yield to wait 2018-05-14 10:23:06 +03:00
Cruz Monrreal 7a1ab1890b
Merge pull request #6792 from jarvte/cellular_dynamic_alloc_and_destr
Cellular: Add dynamic alloc and destruction to easycellular
2018-05-07 10:28:43 -05:00
Teppo Järvelin b22a16fe4a Cellular: Added dynamic alloc and destruction to easycellular.
Now application can call connect and disconnect multiple times and resources are freed and constructed properly.
Also whole easycellular can be deleted and constructed again.
2018-05-03 12:47:47 +03:00
Mirela Chirica d4d339129a Cellular: Refactor hex reading to prevent illegal cast 2018-04-30 13:25:15 +03:00
Mirela Chirica a0cc22ebba Cellular: Fix AT Handler compile warning 2018-04-27 14:38:14 +03:00
Mirela Chirica c0629c8d11 Cellular: Remove unnecessary NULL assignment 2018-04-25 14:09:20 +03:00
Mirela Chirica 042586938d Cellular: Common routine for string and hexstring reading 2018-04-25 14:09:20 +03:00
Mirela Chirica b48238997d Cellular: BC95 update max packet size 2018-04-25 14:09:19 +03:00
Mirela Chirica 1998173ede Cellular: Added read hex string support to AT handler 2018-04-25 14:09:19 +03:00
Mirela Chirica 7e684cd789 Cellular: Destructor added for CellularList 2018-04-25 14:09:19 +03:00
Mirela Chirica 658358cbf1 Cellular: BG96 remove IPv6 stack support 2018-04-25 14:09:19 +03:00
Cruz Monrreal 4c973e3aa0
Merge pull request #6702 from AriParkkila/single-stack
Cellular: Fix to prefer IPv6 single stack with fallback to IPv4
2018-04-24 12:16:34 -05:00
Ari Parkkila b37532addf Cellular: Fix to prefer IPv6 single stack with fallback to IPv4 2018-04-23 09:57:23 +03:00
Teppo Järvelin 025e0dfc49 Cellular: moved one function in cellularnetwork to public as it was accidently set as protected. 2018-04-19 13:40:33 +03:00
Teppo Järvelin 5ebdb439af Cellular: fixed cellular unit tests and one bug which was found while fixing. 2018-04-19 13:35:53 +03:00
Martin Kojtal 9cc4302c51
Merge pull request #6629 from jarvte/add_select_plmn_to_cellularfsm
Cellular: add plmn for CellularConnectionFSM
2018-04-19 12:07:20 +02:00
Teppo Järvelin 55f4360680 Cellular: review fixes to cellularfsm and cellularnetwork. 2018-04-18 12:35:38 +03:00
Cruz Monrreal 259f9fd877
Merge pull request #6570 from jarvte/add_cellular_detach
Cellular: add detach from the network
2018-04-17 10:54:09 -05:00
Teppo Järvelin e78e1d28db Cellular: check plmn against network to verify correct network and don't try to register again if we are are already in correct nw. 2018-04-17 10:16:32 +03:00
Teppo Järvelin e4c37f2275 Cellular: plmn used when registering can be given for CellularConnectionFSM. 2018-04-17 10:16:32 +03:00
Cruz Monrreal 7f9e69d491
Merge pull request #6632 from TeemuKultala/error_messages
cellular: Error messages
2018-04-16 10:34:04 -05:00
Teemu Kultala 0caef1b8a4 cellular: trace errors only if tracing enabled 2018-04-16 09:15:32 +03:00
Teemu Kultala 7b6208c0db cellular: error message changes 2018-04-13 09:01:57 +03:00
Teppo Järvelin 94ecc4567b Cellular: Separated context activation in CellularConnectionSFM. 2018-04-13 08:28:18 +03:00
Teppo Järvelin 0b5fae3670 Cellular: added deprecation note for parameter timeout in set_attach. 2018-04-12 13:37:49 +03:00
Teppo Järvelin 9b0b92bb1c Cellular: added detach from the network. 2018-04-12 13:37:49 +03:00
Teppo Järvelin b3226acbbf Cellular: Fixed rebase error. 2018-04-11 09:38:13 +03:00
Teppo Järvelin 31428533ba Fixed missing doxygen param. 2018-04-11 09:38:13 +03:00
Mirela Chirica 9531bbeaf5 BC95 fixes 2018-04-11 09:38:13 +03:00
Teppo Järvelin c036b6698d Doxygen fixes for copy-paste errors. 2018-04-11 09:38:13 +03:00
Ari Parkkila 8c019e6c83 Cellular: Remove excessive destructor declaration to fix compile error 2018-04-11 09:38:13 +03:00
Ari Parkkila d7cabe2183 Cellular Greentea tests fixed 2018-04-11 09:38:13 +03:00
Teppo Järvelin f6a0403c82 Fixed build by removing unnecessary include. 2018-04-11 09:31:44 +03:00
Ari Parkkila 6072407ec9 Cellular: async FSM updates 2018-04-11 09:31:44 +03:00
Teppo Järvelin 84b445f51c Fixed coverity warnings for class ATHandler and removed unnecessary assert from state machine. 2018-04-11 09:31:44 +03:00
Teppo Järvelin 54ab974846 Fixed coverity warnings for targets folder. Also fixed one bug while copying sim. 2018-04-11 09:31:44 +03:00
Teppo Järvelin fa61f094db Fixed coverity warning for class CellularUtil. 2018-04-11 09:31:44 +03:00
Teppo Järvelin 12b0bc4a36 Fixed coverity warnings for AT_CellularStack. 2018-04-11 09:31:44 +03:00
Teppo Järvelin af0de8ece0 Fixed coverity warnings for class AT_CellularDevice. 2018-04-11 09:31:44 +03:00
Teppo Järvelin f6be35c0f2 Fixed coverity warnings for AT_CellularSMS.cpp 2018-04-11 09:31:44 +03:00
Teppo Järvelin 89843246ac Separated context activation from connect, increased stack size to 2048 to avoid stack underflows and changed connection callback call. 2018-04-11 09:31:44 +03:00
Teppo Järvelin f0026e4c48 review fixed and some minor improvements. 2018-04-11 09:31:44 +03:00
Teppo Järvelin b400d18a0c Wait for modem ready signal in startup sequence. 2018-04-11 09:31:44 +03:00
Teppo Järvelin 231458dc36 Picked Ari's changed to reduce stack size. Removed device info printing from state machine. 2018-04-11 09:31:44 +03:00
Teppo Järvelin d1f2e91e93 Working version of async registration. 2018-04-11 09:31:44 +03:00
Teppo Järvelin 2b14a9ee5f temp 2018-04-11 09:31:44 +03:00
Teppo Järvelin 702efc1de5 Temp commit, not compiling... 2018-04-11 09:31:44 +03:00
Teppo Järvelin c26311b071 async works. Retry logic needs refining. 2018-04-11 09:31:44 +03:00
Teppo Järvelin 83ea9be5f5 temp commit while changing work... 2018-04-11 09:31:44 +03:00
Teppo Järvelin 1661fc2744 Modified state machine, added cellular state and callback. 2018-04-11 09:31:44 +03:00
Cruz Monrreal 1c6d485da0
Merge pull request #6572 from TeemuKultala/at_send_wait
cellular: ATHandler send delay
2018-04-10 17:58:00 -05:00
Teemu Kultala 328919c852 cellular: doxygen correction 2018-04-09 14:09:44 +03:00
Teemu Kultala d7960620b6 cellular: ATHandler send delay 2018-04-09 13:46:40 +03:00
Bilal c376e501aa Moving deprecated warnings outside the class 2018-03-27 12:55:38 +05:00
Bilal c07ef92470 Adding deprecated warnings for old name 2018-03-26 19:34:42 +05:00
mudassar-ublox eb806b681d Renaming Ublox library for mbed cellular framework
(cherry picked from commit 737609736591d12ea369d5b364d132e7a6367ae2)
2018-03-26 17:08:23 +05:00
Cruz Monrreal 53adeed521
Merge pull request #6350 from u-blox/cellular_test
Cellular: update attach test
2018-03-20 14:27:02 -05:00
Cruz Monrreal 7b2ee2d52f
Merge pull request #6291 from mirelachirica/bc95_echotest_fixes
Cellular: BC95 echo test fixes
2018-03-20 14:06:06 -05:00
Cruz Monrreal 7c30faf69d
Merge pull request #6264 from jarvte/master
Deprecated warnings for feature/netsocket/cellular
2018-03-16 13:32:09 -05:00
Cruz Monrreal 92bbdbb60a
Merge pull request #6329 from TeemuKultala/callback_changes
Cellular: add callback API
2018-03-15 11:04:17 -05:00
Mudassar Hussain 91333d2892 Removed strncmp 2018-03-15 10:41:00 +05:00
Mudassar Hussain 3bee060942 Cellular: update attach test 2018-03-13 20:49:31 +05:00
Teppo Järvelin 53455c5528 Fixed correct includes so that compile log is not polluted. 2018-03-13 16:23:15 +02:00
Teemu Kultala bd75d5327f callback API added 2018-03-12 11:51:27 +02:00
Teppo Järvelin d26bb23dae Cellular: ATHandler write improvements. 2018-03-09 14:03:17 +02:00
Mirela Chirica be95f47636 Quectel BC95 echo test fixes
Fixing get host by name and iterate send/recv socket operations.
2018-03-08 13:13:02 +02:00
Mirela Chirica 84cd5c1000 Use of APN lookup decision logic fixed 2018-03-08 12:58:12 +02:00
Mirela Chirica 9f6454a084 Fix wrong header define name 2018-03-08 12:53:52 +02:00
Mirela Chirica 350d7916cf Release AT handler if network not created 2018-03-08 12:50:14 +02:00
Mirela Chirica aaf4edc15c Own SIM state retrieval for Quectel BC95 2018-03-08 12:46:44 +02:00
Teppo Järvelin 9e2da6af7d Removed mux comments from code. 2018-03-02 14:38:08 +02:00
Teppo Järvelin 7c9f5f3781 Removed mux. 2018-03-02 14:38:08 +02:00
Ari Parkkila e183923c0d Changed std::snprintf to sprintf in cellular ATHandler.cpp 2018-03-02 14:38:08 +02:00
Amanda Butler 63485bd846 Copy edit ATHandler.h
Copy edit for clarity, grammar and spelling.
2018-03-02 14:38:08 +02:00
Amanda Butler cc3835e356 Copy edit AT_CellularBase.h
Copy edit file for clarified phrasing.
2018-03-02 14:38:08 +02:00
Amanda Butler 68cac96042 Copy edit AT_CellularDevice.h
Copy edit for consistent phrasing across docs.
2018-03-02 14:38:08 +02:00
Amanda Butler 1d57299000 Copy edit AT_CellularSMS.h
Copy edit file for grammar.
2018-03-02 14:38:08 +02:00
Amanda Butler 3a57d507d9 Copy edit AT_CellularStack.h
Copy edit for American English.
2018-03-02 14:38:08 +02:00
Amanda Butler 6dd0723dff Copy edit CellularUtil.h
Copy edit file for consistent capitalization and correct which/that.
2018-03-02 14:38:08 +02:00
Amanda Butler 00b1341297 Copy edit cellular_mux.h
Copy edit, mostly for spelling.
2018-03-02 14:38:08 +02:00
Ari Parkkila e53b93114e Typedef OnboardCellularInterface to EasyCellularConnection 2018-03-02 14:38:07 +02:00
Teppo Järvelin c9c3f85311 Changed state machine class name and implementation. 2018-03-02 14:38:07 +02:00
Ari Parkkila b159a51821 Added mux-enabled flag in cellular mbed_lib.json 2018-03-02 14:38:07 +02:00
Ari Parkkila 164e8fb717 Added modem_debug_on to cellular device 2018-03-02 14:38:07 +02:00
Teppo Järvelin 1fd9ba6caa APN lookup from database support. 2018-03-02 14:38:07 +02:00
Mirela Chirica 6670ebbc5f - PDP context creation fixes for stack type handling
- Delete created contexts that do not succed to activate
2018-03-02 14:38:07 +02:00
Teppo Järvelin 0c49b669b4 Fixed bug when copying apn, username and password. 2018-03-02 14:38:07 +02:00
Teppo Järvelin 9016ed5ed8 Don't allow zero length apn, password or username. 2018-03-02 14:38:07 +02:00
Teppo Järvelin 1a3b6e589c Doxygen update: removed documentation from inherited classes as INHERTIC_DOCS is enabled in doxygen config. Reduces copy-paste and eases maintenance. 2018-03-02 14:38:07 +02:00
Teppo Järvelin e99c18c233 Fixed SMS receive in PDU: certain length sms last char was missing. 2018-03-02 14:38:07 +02:00
Mirela Chirica 6ccbb59979 Mem_str comparation was too short 2018-03-02 14:38:07 +02:00
Teppo Järvelin 7a8da2244d Fixed SMS send in pdu mode could give wrong size as return value. 2018-03-02 14:38:07 +02:00
Teppo Järvelin ef14aef823 review and dynamic alloc (#3)
* Review fixes. Changed apn, username and password to be dynamically allocated.
2018-03-02 14:38:07 +02:00
Mirela Chirica 4457e361ac Logging compile fix 2018-03-02 14:38:06 +02:00
Mirela Chirica 22e7fbd7e8 - BC95 socket creation bug fix
- Cellular information reading stopping on comma fixed
2018-03-02 14:38:06 +02:00
Ari Parkkila d2e8691754 Cellular stack listen and accept to return UNSUPPORTED 2018-03-02 14:38:06 +02:00
Ari Parkkila 09143da040 Changed APN initialization from CellularNetwork to application 2018-03-02 14:38:06 +02:00
Ari Parkkila 1df28b28c7 Changed UBLOX C027 to LISA-U 2018-03-02 14:38:06 +02:00
Teppo Järvelin b7bf83001d Removed unused include in QUECTEL_BC95_CellularPower.cpp. 2018-03-02 14:38:06 +02:00
Teppo Järvelin 3ff131be0a Doxygen update, missing class definitions from AT_ classes. 2018-03-02 14:38:06 +02:00
Ari Parkkila f2613a6154 Cellular logging to use mbed_trace 2018-03-02 14:38:06 +02:00
Teppo Järvelin 58c8176247 doxygen fixes. 2018-03-02 14:38:06 +02:00
Teppo Järvelin e41c551468 Doxygen warnings fixes. 2018-03-02 14:38:06 +02:00
Ari Parkkila bc67100dcf Added const in AT_CellularNetwork::set_registration 2018-03-02 14:38:06 +02:00
Jari Poyhonen cd486f2624 Pull request feedback fix: add poll support to multiplexer 2018-03-02 14:38:06 +02:00
Ari Parkkila 0c8c41ff5f Added static const to AT_CellularNetwork.cpp 2018-03-02 14:38:06 +02:00
Teppo Järvelin 0e20e49ef7 review fixes to athandler: changing int16/8 to int's and some minor issues. 2018-03-02 14:38:06 +02:00
Jari Poyhonen 0ee265110a Pull request feedback fix: user_data_tx accepts arbitary size 2018-03-02 14:38:06 +02:00
Ari Parkkila 88398bf141 Changed include brackets to double quotes 2018-03-02 14:38:06 +02:00
Mirela Chirica 1825c999a9 Removed unnecessary memsets of ATHandler's receving buffer 2018-03-02 14:38:06 +02:00
Mirela Chirica d15801d893 PR review fix:
- bind behaviour to not change existing port or address if the requested ones are 0
- removed temporary array setting to zero
2018-03-02 14:38:06 +02:00
Juho Eskeli 71f54bc2d4 Deactivate PDP context on disconnect when using AT stack. 2018-03-02 14:38:06 +02:00
Juho Eskeli 66aca1fddf Connection status callback added. 2018-03-02 14:38:06 +02:00