Commit Graph

5281 Commits (mbed-os-5.12)

Author SHA1 Message Date
kevin.ong f179be9817 cellular: fix style 2019-05-17 15:38:41 +01:00
kevin.ong 4536193e8d cellular: fix Quectel BG96 missing unlock at socket_connect 2019-05-17 15:38:41 +01:00
paul-szczepanek-arm 7b1d57c661 no read callback for CCC 2019-05-17 15:38:41 +01:00
paul-szczepanek-arm 15d0a9422d not include attribute write cback for CCC 2019-05-17 15:38:41 +01:00
Yossi Levy 96f2c428ce Removing FLASHIAP support form general_filesystem tests as it is marked as skip anyway 2019-05-17 15:35:27 +01:00
Andrew Chong 7f276fc7f8 This removes many const char* warnings related with LWIP_ASSERT() 2019-05-17 15:35:27 +01:00
Lin Gao 3af4e0b067 Increase tcpip thread size for MTS_DRAGONFLY_F411RE 2019-05-17 15:35:27 +01:00
Lin Gao 2b33d06276 Add option to keep post_binary_hook and make it default. It can be disabled by setting it to null 2019-05-17 15:35:27 +01:00
Olli-Pekka Puolitaival 1dd94c5472 Py3 fixes for test scripts 2019-05-17 15:35:27 +01:00
Andrew Chong 2b8ac5d24c Allow application to override LWIP_RAW 2019-05-17 15:35:27 +01:00
Teppo Järvelin a1f0c46cb9 Cellular: fix calls to ATHandler::read_string(...) give correct size
ATHandler::read_string(...) buffer size param was changed a long time ago
to include also NULL. Some calls still gave wrong size after this change.
2019-05-03 12:24:48 +01:00
Mirela Chirica 1088162208 Cellular: Added WISE-1570 handling for socket closing URC 2019-05-03 12:24:48 +01:00
Janne Kiiskila c59c8e9d63 NVStore.cpp compiler warning removal (os_ret)
One gets this compiler warning from nvstore.cpp:

```
Compile [ 48.6%]: nvstore.cpp
[Warning] nvstore.cpp@814,9: variable 'os_ret' set but not used [-Wunused-but-set-variable]
```

Turns out it's caused by the fact that the variable is only used
with MBED_ASSERTs, which get optimized out or not, depending on your
build profile. In reality we do not need a separate variable for that
in my opinion though, so we can just use the ret-variable instead
and drop the os_ret variable completely and thus avoid this
compiler warning.
2019-05-03 12:24:48 +01:00
Yossi Levy b5e406ae64 When reading ROT from KVStore the return ROT key size was ignored 2019-05-03 12:24:48 +01:00
Kimmo Vaisanen d5889859c7 Cellular: Add description for CellularProperty 2019-05-03 12:24:48 +01:00
Michal Paszta d47f18a130 Nanostack: release connect_semaphore only when it is pending
Only release if the current _connect_status is CONNECTING. If the semaphore is released many times for each connect, then the next connect will not wait(), as it will be able to decrement the semaphore imediatelly.
2019-05-03 12:24:48 +01:00
蔡雪 (Xue Cai) e7cbad4558 Update wifi driver for rda target UNO_91H 2019-05-03 12:24:48 +01:00
Hasnain Virk c8bc33cf3d Minor doc update
Socket ID is usually spitted out by the modem, however there are cases
when the modem is actully taken in as an input argument, e.g., in the
case of QUECTEL M26 modem. This minor knit clarifies that the
CellularSocket::id can be an input argument.
2019-05-03 12:24:48 +01:00
Michal Paszta 7287775918 Nanostack network handle does not always call status cb for BOOTSTRAP events
UBLOX_EVK_ODIN_W2 advertises more events than we expect.
1) When disconnecting first network connectivity is lost and then an
actual disconnection event arrives. The first one is unexpected.
2) When reconnecting MESH_BOOTSTRAP_START_FAILED shows up, but the board
eventually manages to connect
2019-05-03 12:24:48 +01:00
Mirela Chirica 651e4e2641 Cellular: Added BG96 handling for socket closing URC 2019-04-24 13:37:42 +01:00
Kevin Bracey c5bfb6afc2 Networking: Fix some ARMC6 warnings
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-24 13:37:42 +01:00
Kevin Bracey ebc5e7ba17 i.MX RT1050: Reactivate data cache
Since commit 12c6b1bd8, the i.MX RT1050 has effectively had its data
cache disabled, as the SDRAM was marked Shareable; for the Cortex-M7,
shareable memory is not cached.

This was done to make the Ethernet driver work without any cache
maintenance code. This commit adds cache maintenance and memory barriers
to the Ethernet driver, and removes the Shareable attribute from the
SDRAM, so the data cache is used again.

Cache code in the base fsl_enet.c driver has not been activated - the
bulk of it is in higher-level Read and Write calls that we're not using,
and there is one flawed invalidate in its initialisation. Instead
imx_emac.cpp takes full cache responsibility.

This commit also marks the SDRAM as read/write-allocate. As the
Cortex-M7 has its "Dynamic read allocate mode" to automatically switch
back to read-allocate in cases where write allocate is working poorly
(eg large memset), this should result in a performance boost with no
downside.

Activating write-allocate is also an attempt to provoke any flaws in
cache maintenance - the Ethernet transmit buffers for example will be
more likely to have a little data in the cache that needs cleaning.
2019-04-24 13:37:42 +01:00
paul-szczepanek-arm 6e4b6452ea suppress coverity error 2019-04-24 13:37:42 +01:00
Marc Emmers 651af9c17c Make sure to reset settings before applying the properties 2019-04-24 13:37:42 +01:00
Ari Parkkila 8937cf072b Cellular: Fix to delete PDP context on disconnect 2019-04-24 13:37:42 +01:00
Martin Kojtal 889185108b ExhaustibleBD: licensed under Apache 2.0
Fixing license, to the same one as .cpp file.
2019-04-24 13:37:42 +01:00
Cruz Monrreal II 9815af3941 Fixed littlefs tests to be Py3 compat 2019-04-24 13:37:42 +01:00
Tymoteusz Bloch 6c8a93d478 L3IP input now use tcpip_input instead of ip_input 2019-04-24 13:37:42 +01:00
Oren Cohen 619fc05318 Configure PS with tdbstore 2019-04-24 13:37:42 +01:00
Hasnain Virk 805f35f145 Flagging WEAK method implementation for default construction
CellularDevice::get_default_instance() is a weak method and is overriden
by either a default construction provided in the code or by application
at some stage. This method needs to be flagged otherwise using another
driver will be hindered by the default overriding of this driver.
2019-04-24 13:37:42 +01:00
Hasnain Virk b2e0110eb5 Marking TX and RX pins for UARTSerial as NC
For default construction of the driver, it would be necessary to define
the pins. However as we don't know the correct pins, until/unless user
sets them up for us. So it makes sense to mark the pins as NC. It would
be easier to debug if the pins are set to NC if user forgot to set them
up.
2019-04-24 13:37:42 +01:00
Hasnain Virk f54decef87 Adding pin polarity and changing the constructor
To make this driver more useful, we needed to do some changes. The
wirings for the modem can differ on the board so we also need to be
flexible in our approach.
It is now mandatory to provide the power pin and pin polarity in the
constructor alongwith the file handle. Reset pin is optional.
2019-04-24 13:37:42 +01:00
Hasnain Virk 2b6f65495d Tidying up the boiler plate code
A little tidying up was needed as there was some boiler plate code that
could be shoved into a corner and reused.
2019-04-24 13:37:42 +01:00
Hasnain Virk 356d8cd61e AT+CGSN with EC2X does not take parameter
Standard 3GPP TS27.007 states that the AT+CGSN command can optionally
have type parameter that determines the output. However Quiectel EC2X
series doesn't accept parameters. We need to reflect that in the
cellular properties setup.
2019-04-24 13:37:42 +01:00
Hasnain Virk 99fcf65a95 CREG can handle lac/ci/lat
AT+CREG command can also provide information regarding lac/ci/lat etc so
we should set the mode correctly in cellular properties structure.
2019-04-24 13:37:42 +01:00
Hasnain Virk b59c26468c Removing left over tracing
A test trace was left lurking around. Removed in this commit.
2019-04-24 13:37:42 +01:00
Hasnain Virk f2b44f5f51 Basic driver for Quectel EC25/EC21
Provides basic power up / power down sequences for Quectel EC2X series
modems. Can be used in PPP mode. For using the on-board IP stack, we
will need to add and implement classes that provide context.

Driver constructor takes power and reset control pins along with the
FileHandle. A default construction is provided which can be chosen by
the application in its mbed_app.json. Otherwise the user is free to
construct as per demand.
2019-04-24 13:37:42 +01:00
Hasnain Virk 9b90f52e46 Using new rather than malloc in debug_print
Using malloc will require us to add stdlib.h somewhere in the path for
the application. Maybe the CI apps are adding stdlib.h and that's why
the code would have worked. In a custom app, it can happen that the
header is not included. Using new avoids the need to add stdlib.h
anywhere and it is more in line with C++.
2019-04-24 13:37:42 +01:00
Mirela Chirica 1680d07442 Cellular: Check for URC during AT response stop 2019-04-24 13:37:42 +01:00
Teppo Järvelin e4aa999d48 Cellular: Fix deleting of state machine to correct class 2019-04-24 13:37:42 +01:00
paul-szczepanek-arm a9115c36d6 missing default impl 2019-04-24 13:37:42 +01:00
paul-szczepanek-arm 7994484a90 fix missing implementation call 2019-04-24 13:37:42 +01:00
Jan Jongboom 60b524b73e test_soap_connection_handler leaks memory when open_connection fails
sckt_data is not free'd when `coap_connection_handler_open_connection` fails.
2019-04-24 13:37:42 +01:00
Ashok Rao aa4803f9d6 Removing all content related to EMAC 2019-04-05 13:59:44 +01:00
Ashok Rao d7347ccc6d Adding STM S2_LP as a new target 2019-04-05 13:59:42 +01:00
Ashok Rao 0455ff45c4 Removing all content related to EMAC 2019-04-05 13:59:37 +01:00
Ashok Rao 7632c9784d Adding STM S2_LP as a new target 2019-04-05 13:59:32 +01:00
Mahesh Mahadevan b7c2a7459f MIMXRT1050: Fix ENET issues
This is a fix for Issue 10239. The change aligns
the receive buffer lengths

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-05 12:27:07 +01:00
Laurent Meunier fee3faea3f STM32WB: disable debug lines when not needed
When doing so, do not disbale GPIO clocks as they may be used by other
drivers !

As a result, debug will be disabled by default, but can be enabled by
either modifying code or selecting MBED debug profile.
2019-04-05 12:27:07 +01:00
Laurent Meunier e6cecda33b STM32WB: Handle re-init case of transport layer
Issue was seen when running BLE_GAP example from
mbed-os-example-ble.

In STM32WB, the M0 core cannot be reset except if the whole target
is reset. So in case of re-initialization of the BLE stack, the
transport layer should not be initialized again. The HCI reset
command will do the job.
2019-04-05 12:27:06 +01:00