Marcin Radomski
c0032c9055
ATHandler::read_int: allow returning 0 successfully
2019-08-16 14:14:58 +02:00
Marcin Radomski
2bfa4e9b8d
AT_CellularSMS: set "international" flag in PDU when applicable
...
Currently, create_pdu receives a destination address without '+' prefix,
and always sets the "type of address" to "unknown". That means, the
number needs to contain appropriate international number prefix (00/011)
if necessary - which is not the case if the leading + is simply
stripped.
This changes send_sms behavior so that when a SMS is sent to an
international number (indicated by leading +):
- AT+CMGS command receives the number with + prefix,
- created PDU has the "international" flag set.
2019-08-16 13:30:59 +02:00
Marcin Radomski
f3e9501ac6
Increase PDU buffer size to fit 8-bit-encoded hex string
2019-08-16 13:20:37 +02:00
Marcin Radomski
14f8d15242
Add option to set up SMS encoding
2019-08-16 12:24:54 +02:00
Mirela Chirica
75c823c1a3
Cellular: Fixed improper AT handler setup through virtual calls in constructor
...
Added AT handler setup method to be used for initialisation routines
that are virtual and therefore cannot be called from constructor.
2019-08-16 10:57:37 +03: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
Anna Bridge
797e58a2b3
Merge pull request #11148 from AriParkkila/cell-sim-pin
...
Cellular: Fix SIM pin enter command
2019-08-15 12:49:24 +01:00
Antti Kauppila
84063bf222
Coverity issues fixed
2019-08-14 16:22:05 +03:00
Martin Kojtal
0a73eda9d4
Merge pull request #11200 from jarvte/move_string_to_pdp_type
...
Cellular: moved string_to_pdp_type from AT_CellularContext to Cellula…
2019-08-14 12:53:20 +02: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
6e71932baf
Cellular: move RAT reading to better support ublox custom boards
...
AT commands used in read_radio_technology() function are not supported
by all boards so moving the function where it's actually used. Usage was
already inside of the #ifdef's.
2019-08-09 13:23:50 +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
5f6379a55d
Merge pull request #11119 from Reda-RM/master
...
Riot Micro cellular device
2019-08-07 14:07:27 +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
Seppo Takalo
dd2d585f30
Merge pull request #11149 from mirelachirica/remove_local_stack_types
...
Cellular: Remove unnecessary local variables
2019-08-06 11:29:56 +03:00
Ari Parkkila
e1124668db
Cellular: Add DNS servers from PDP contexts to nsapi_dns
2019-08-05 21:53:24 -07:00
Reda Maher
022b99325b
Cellular: Support Riot Micro cellular device
2019-08-03 23:42:26 +02:00
Seppo Takalo
2ca8487371
Merge pull request #11082 from AriParkkila/cell-bg96-dns
...
Cellular: Add BG96 AT driver with DNS support
2019-08-02 13:27:09 +03:00
Ari Parkkila
ed3562e764
Cellular: Fix shutdown to stop statemachine
2019-08-02 02:26:12 -07:00
Ari Parkkila
cbe2b50a32
Cellular: Fix SIM pin enter command
2019-08-01 03:46:33 -07:00
Mirela Chirica
341cc2be03
Cellular: Remove unnecessary local variables
2019-08-01 13:26:05 +03:00
Ari Parkkila
71c7ed2fb4
Cellular: Add BG96 AT driver with DNS support
2019-07-31 00:19:05 -07:00
mudassar-ublox
6cd60178fa
UBLOX cellular context activation updated for C030_R412M and updated AUTH configuration
2019-07-30 12:19:20 +05:00
Seppo Takalo
2c6280b9c7
Merge pull request #11066 from AriParkkila/cell-fix-restart
...
Cellular: Fix cellular statemachine stop and BG96 power up
2019-07-29 17:40:35 +03:00
Ari Parkkila
742bfd3709
Cellular: Fix statemachine stop
2019-07-26 00:34:45 -07:00
Ari Parkkila
ac78b5ab16
Cellular: Fix to delete context just once
2019-07-23 03:04:24 -07:00
Ari Parkkila
7a5e4ca5da
Cellular: Fix BG96 power up
2019-07-18 23:13:36 -07:00
Kevin Bracey
a522dcfa0a
Replace deprecated wait calls
2019-07-15 10:13:50 +03:00
Kevin Bracey
fc8e8f67c6
Deprecate wait/wait_ms APIs
2019-07-15 10:13:50 +03:00
Kevin Bracey
607856ee9a
Set unit tests to C++14
...
Adjust some non-C++11-compatible code that failed as a result.
2019-07-09 19:08:57 +03:00
Martin Kojtal
eadc799584
Merge pull request #10919 from jeromecoutant/PR_AT_MUTEX
...
AT Cellular Network: mutex lock issue
2019-07-05 09:03:07 +01:00
Antti Kauppila
c315672413
Doubled ATHandler's BUFF_SIZE
2019-07-02 10:17:06 +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
Martin Kojtal
6be510daa4
Merge pull request #10900 from TeroJaasko/armcc5_compilation_fixes
...
Armcc5 compilation fixes
2019-07-01 09:16:56 +01:00
Martin Kojtal
60d047cae3
Merge pull request #10840 from u-blox/socket_flag_update
...
Cellular: cellular socket flags updated
2019-07-01 09:04:16 +01:00
jeromecoutant
758a4bb56a
AT Cellular Network: mutex lock issue
2019-06-28 16:08:52 +02:00
Tero Jääskö
bae3043e92
cellular: AT: fix build on ARMCC5
...
ARMC5 failed to compile the code with debug-profile (!!) as va_list
is getting into std:: namespace when one includes <cstdarg>. Other
compilers seem to be more relaxed, and so is ARMC5 if compiled
with other profiles.
Add the explicit std:: to references of va_list.
While here, remove one extra copy of "#include "PlatformMutex.h""
and a "#include <stdarg.h>" which is kind of duplicate of
"#include <cstdarg>".
Error being fixed:
--8<--8<--8<--
Compile [ 81.8%]: ATHandler.cpp
[Error] ATHandler.h@552,0: #20 : identifier "va_list" is undefined
[Error] ATHandler.cpp@1226,0: #147 : declaration is incompatible with "void mbed::ATHandler::handle_args(const char *, <error-type>)" (declared at line 552 of "./mbed-os/features/cellular/framework/AT/ATHandler.h")
[ERROR] "./mbed-os/features/cellular/framework/AT/ATHandler.h", line 552: Error: #20 : identifier "va_list" is undefined
"./mbed-os/features/cellular/framework/AT/ATHandler.cpp", line 1226: Error: #147 : declaration is incompatible with "void mbed::ATHandler::handle_args(const char *, <error-type>)" (declared at line 552 of "./mbed-os/features/cellular/framework/AT/ATHandler.h")
./mbed-os/features/cellular/framework/AT/ATHandler.cpp: 0 warnings, 2 errors
2019-06-26 19:58:34 +03:00
Martin Kojtal
63d1ea36f1
Merge pull request #10821 from kivaisan/refactor_apn_db
...
Cellular: Refactor APN db implementation to reduce memory usage
2019-06-25 11:02:24 +01:00
Martin Kojtal
34eefb49fa
Merge pull request #10858 from LMESTM/fix_cellular_properties
...
Check Cellular Properties have been set
2019-06-25 10:58:23 +01:00
Sebastian Stockhammer
142a223cf9
Fix astyle
2019-06-25 07:51:27 +02:00
Martin Kojtal
c9bdcd6b16
cellular: fix file permission
2019-06-24 22:23:10 +01:00
Martin Kojtal
979f26f74d
Merge pull request #10875 from mirelachirica/revert_ipv6_bg96
...
Cellular: Remove IPV6 and IPV4V6 as supported properties for BG96
2019-06-24 14:55:50 +01:00
Martin Kojtal
13081a21ab
Merge pull request #10808 from mirelachirica/bg96_pdpdeact
...
Cellular: Added handling for BG96 network PDP context deactivation
2019-06-24 11:23:40 +01:00
Anna Bridge
15b5b5da23
Merge pull request #10694 from jarvte/set_authentication_type
...
Cellular: add method to set authentication type to CellularContext
2019-06-21 12:19:04 +01:00
mudassar-ublox
26f1d0b659
cellular socket flags updated
2019-06-21 10:05:35 +05:00
Mirela Chirica
ce6415bfce
Cellular: Remove IPV6 and IPV4V6 as supported properties for BG96
...
IPV6 and IPV6V4 support is also network dependent not only modem.
Having these properties enabled for a modem requires a fallback
mechanism during PDP context activation. This mechanism is missing
at the moment and that can result in imposibility to establish
succesfull connection when network only supports IPV4 contexts.
2019-06-20 14:48:07 +03:00
Laurent Meunier
3286472de9
Check Properties have been set
2019-06-20 09:23:48 +02:00
Anna Bridge
363ad8ab14
Merge pull request #10825 from kivaisan/fix_plmn_debug_trace
...
Cellular: Fix PLMN debug trace for IAR
2019-06-19 15:04:24 +01:00
Anna Bridge
37640301e0
Merge pull request #10812 from jarvte/fix_multiple_urc_athander
...
Cellular: fix athandler to use correct timeout in case of multiple urc's
2019-06-19 15:03:36 +01:00
Anna Bridge
b8f413a4a2
Merge pull request #10811 from u-blox/ubx_socket_close_callback
...
socket close callback
2019-06-19 15:02:17 +01:00
Anna Bridge
2fd7f80f35
Merge pull request #10484 from trowbridgec/telit-me910-driver
...
Cellular: Telit ME910 driver
2019-06-19 12:07:25 +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
7dc4c99b23
Allow IPV4V6 stack type
2019-06-17 10:06:27 +02:00
Sebastian Stockhammer
402c471e70
Require exact context type match
2019-06-17 10:03:06 +02:00
Chris Trowbridge
28f7a4e6a6
Moved DEFAULT_DELAY_BETWEEN_AT_COMMANDS constant to cpp file
2019-06-14 08:02:33 -04:00
Kimmo Vaisanen
d7858f6184
Cellular: Refactor APN db implementation to reduce memory usage
...
Reduce memory usage by moving actual APN database into single object file
instead of having it defined in header as a static.
2019-06-14 13:31:54 +03:00
Kimmo Vaisanen
b26314a799
Cellular: Fix PLMN debug trace for IAR
...
IAR does not allow printing from null pointer as parameter for %s. PLMN string
can be null depending on user configuration.
2019-06-13 15:35:37 +03:00
Antti Kauppila
1ed338ef28
Valgrind & unittest fixes
2019-06-13 15:15:53 +03:00
mudassar-ublox
3ad1ee1fe4
Style issue fixed
2019-06-13 16:58:50 +05:00
Anna Bridge
3e6f5eba6c
Merge pull request #10764 from mirelachirica/bg96_sockid_fix_ipv6_support
...
BG96 ipv6 support and socket id fix for BG96 and M26
2019-06-12 17:04:46 +01:00
Chris Trowbridge
ea5d8cf26d
Remove unnecessary init AT commands
2019-06-12 09:36:22 -04:00
Teppo Järvelin
6b11ca1371
Cellular: fix athandler to use correct timeout in case of multiple urc's
...
Start time was not updated when multiple urc's were found and so timeout
was set to zero. Now that start time is updated, timeout is correct.
2019-06-12 11:21:00 +03:00
mudassar-ublox
488d47b723
socket close callback
2019-06-12 12:15:10 +05:00
Mirela Chirica
0339ffd1b9
Cellular: Added handling for BG96 network PDP context deactivation
2019-06-11 16:05:27 +03:00
Antti Kauppila
e19249f276
Tracing added for Handle_start + doxygen updates
2019-06-10 17:18:18 +03:00
Chris Trowbridge
9a1309f5f8
Modify ME910 driver to follow power on/off best practices and add custom get_context() function
2019-06-06 14:29:15 -04:00
Chris Trowbridge
0a717e435b
Add default soft/hard power on/off sequences for ME910
2019-06-06 10:26:51 -04:00
Chris Trowbridge
0d9facd921
Remove ME910 trace group #define
2019-06-06 10:26:50 -04:00
Chris Trowbridge
21a8ed8108
Remove ME910 flow control debug message
2019-06-06 10:26:50 -04:00
Chris Trowbridge
f0afd1f896
Remove unnecessary #includes
2019-06-06 10:26:50 -04:00
Chris Trowbridge
1a20ea11af
Remove default power on/off functions
2019-06-06 10:26:50 -04:00
Chris Trowbridge
841607d029
Add Telit ME910 driver
2019-06-06 10:26:50 -04:00
Antti Kauppila
43b67459ae
Assert handling added
2019-06-06 13:12:29 +03:00
Antti Kauppila
9d8969daa7
Small fixes and doxygen update
2019-06-04 10:41:16 +03:00
Martin Kojtal
752101d041
Merge pull request #10696 from AriParkkila/cell-ublox-at-connect
...
Cellular: Fix socket connect on UBLOX_AT driver
2019-06-03 08:52:43 +01:00
Martin Kojtal
9a3c175e96
Merge pull request #10588 from AriParkkila/cell-bg96-power
...
Cell bg96 power
2019-06-03 08:38:58 +01:00
Antti Kauppila
7f199ceeef
Added missing _cid handling
2019-06-02 18:55:50 +03: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
Mirela Chirica
b57d978bbd
Cellular: Added IPV6 and IPV4V6 as supported properties for BG96
2019-05-30 14:07:33 +03:00
Mirela Chirica
ff2061aba4
Cellular: Fix requested socket id in socket_connect routines of BG96 and M26
2019-05-30 14:07:33 +03: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
Ari Parkkila
73164710af
Cellular: Fix socket connect on UBLOX_AT driver
2019-05-29 03:19:07 -07:00
Teppo Järvelin
8922eeb014
Cellular: add method to set authentication type to CellularContext
...
Authentication type must be able to set. It was hard coded to CHAP.
Added unit tests for CellularContext to be able to add test for new function.
2019-05-29 09:46:15 +03:00
Martin Kojtal
9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
...
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01: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
Martin Kojtal
a434583b6e
Merge pull request #10442 from trowbridgec/patch-1
...
Cellular: Make AT_CellularContext::get_context() virtual
2019-05-24 12:38:35 +01:00
Ari Parkkila
e49d7bbdcd
Cellular: Add BG96 power control
2019-05-24 00:30:04 -07:00
Martin Kojtal
4567626ade
Merge pull request #10636 from u-blox/activation_status
...
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal
51b835b03b
Merge pull request #10473 from DanielDmlee/BG96_IPV6_only
...
Add exception case for IPV6 only mode of BG96.
2019-05-23 15:29:34 +01:00
Bilal Qamar
255e2e5623
Correction in AT Command
2019-05-23 16:15:10 +05:00
Bilal Qamar
4a37b13bd0
Coding style corrected
2019-05-23 14:26:38 +05:00
Hasnain Virk
9e72fa29e6
Updating Ublox to accomodate socket id assignment
...
Changes to accomodate socket id assigment upon actual creation of the
socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk
2e53a71d45
Updating M26 to accomodate socket id assignment
...
This modem is a special case. It uses a given socket ID value rather
than providing one. A naive solution here would be to directly map the
index of a CellularSocket object in the CellularSocket container. But
considering the case where there are multiple sockets being opened (some
sockets being already created at the modem and some yet not created), direct mapping
to indices will not work. As it can happen that the CellularSocket
object is allocated but the socket id is not assigned yet as it is not
actually created on the modem.
In such a case, we check the container and assign the socket id from the
pool if an empty slot was found.
2019-05-22 23:44:09 -07:00
Hasnain Virk
3fffa3bd57
Updating BG95 to accomodate socket id assignment
...
Changes to accomodate socket id assignment upon actual creation of the
socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk
0308cb826a
Updating Gemalto Cinterion to accomodate socked id assignment
...
Changes introduced to accomodate the socket id assignment upon actual
creation of the socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk
04242c7fa4
Updating BG96 to accomodate socket id assignment
...
Socket ids will be assigned in the create_socket_impl(...) method. This
is the point where an actual socket creation at the modem takes place.
2019-05-22 23:44:08 -07:00