Martin Kojtal
3ee8f3214f
Merge pull request #7348 from hasnainvirk/doc_fix
...
LoRaWAN: Correcting doxygen
2018-07-02 17:24:52 +02:00
Arto Kinnunen
3d5010de12
Merge commit 'a184ff592b547f153aa14c99329f65fd18515b0d'
...
* commit 'a184ff592b547f153aa14c99329f65fd18515b0d':
Squashed 'features/frameworks/nanostack-libservice/' changes from ddd45db..2705b9b
2018-07-02 13:15:58 +03:00
ccli8
7cc1245308
Fix memory leakage with MBR on exiting error path
2018-07-02 11:29:29 +08:00
Cruz Monrreal
58b725be85
Merge pull request #7359 from u-blox/sim_pin_init
...
Cellular: EasyCellularConnection::connect doesn't have any check that "CellularConnectionFSM" object is created or not
2018-06-29 20:08:16 -05:00
Cruz Monrreal
f10bb88b97
Merge pull request #7294 from jeromecoutant/PR_GREENTEA_STAT
...
Add CPU stats for greentea tests
2018-06-29 19:57:42 -05:00
Amanda Butler
aa53ee6204
Copy edit LoRaWANBase.h
...
Copy edit for precise language and comma use.
2018-06-29 14:28:44 -05:00
Amanda Butler
563d742872
Copy edit LoRaWANinterface.h
...
Copy edit for precise language and comma use.
2018-06-29 14:27:45 -05:00
Tero Jääskö
2e89fa22a5
netsocket: dns: make dns-cache-size:0 remove whole DNS cache code
...
Setting ""nsapi.dns-cache-size": 0" still left some of the DNS
caching code in. Add crude #if to remove all of it.
This allows one to save 429 bytes of flash and 48 bytes of RAM on
ARMC5 builds.
2018-06-29 18:17:19 +03:00
David Saada
1b5b8390ea
NVStore tests: Tune memory consumption; stop threads greafully
...
- Tune thread stack size in nvstore test using heap stats
- Stop threads gracefully instead of killing them (in multi-thread test)
2018-06-29 14:35:34 +03:00
Martin Kojtal
4d8baa7451
emac targets: fix thread cb type
2018-06-29 08:35:20 +01:00
Cruz Monrreal
d06826b2a4
Merge pull request #7335 from hasnainvirk/recieve_api_change
...
LoRaWAN: Refactoring LoRaRadio::receive(uint32_t) API
2018-06-28 19:41:39 -05:00
Cruz Monrreal
34fd640955
Merge pull request #7344 from hasnainvirk/tx_timeout_fix
...
LoRaWAN: Fixing transport of fatal TX timeout event
2018-06-28 10:08:26 -05:00
Cruz Monrreal
cb000ceeab
Merge pull request #7336 from SeppoTakalo/fix_udp_filtering
...
Fix connected UDPSocket filtering
2018-06-28 10:06:52 -05:00
Cruz Monrreal
bf21bac52d
Merge pull request #7351 from jeromecoutant/PR_ASTYLE
...
STM32 files with MBED astyle rules
2018-06-28 10:06:03 -05:00
Martin Kojtal
82b490b0cf
kinetis: fix rtos storage type for thread
2018-06-28 15:11:00 +01:00
Martin Kojtal
1188f4a0b9
lwip: fix rtx storage types
2018-06-28 14:40:00 +01:00
Martin Kojtal
f2cc21d038
device key: add memset include
2018-06-28 14:17:15 +01:00
jeromecoutant
35c9ddc356
Add CPU stats for greentea tests
2018-06-28 10:54:58 +02:00
mudassar-ublox
1e150c96b5
Cellular: Fixed set_sim_pin method calling
2018-06-28 11:49:20 +05:00
Cruz Monrreal
719d8e0ea5
Merge pull request #7341 from jarvte/packet_domain_urc_for_disconnect_callback
...
Cellular: improved observing of disconnect for callbacks.
2018-06-27 18:44:06 -05:00
Cruz Monrreal
d3641fd4a0
Merge pull request #7320 from anttiylitokola/master
...
Update mbed-coap to version 4.5.0
2018-06-27 18:43:23 -05:00
jeromecoutant
408209989e
TARGET_STM USB astyle
2018-06-27 15:01:23 +02:00
jeromecoutant
6391b7f2fa
TARGET_STM_EMAC astyle
2018-06-27 15:00:51 +02:00
jeromecoutant
057142167b
TARGET_STM mbedtls astyle
2018-06-27 15:00:04 +02:00
Hasnain Virk
ce1e210e4a
Correcting doxygen
...
Use of MSG_FLAGS was updated in previous PRs but the doc was not updated
accordingly.
2018-06-27 15:25:22 +03:00
Hasnain Virk
7ce434b274
LoRaWAN: Fixing transport of fatal TX timeout event
...
This commit fixes the issue reported in #7285 .
If the radio is unable to transmit, its a fatal error and can happen
both while joining or sending a normal packet. In the case of such
a catastrophy we ought to tell the application that this happened.
A fix for the radio driver will also be patched.
2018-06-27 11:41:30 +03:00
Teppo Järvelin
5ccfd9f83c
Cellular: improved observing of disconnect for callbacks.
2018-06-27 09:34:09 +03:00
Cruz Monrreal
0132e7c1a7
Merge pull request #7273 from jarvte/update_cellular_unit_tests
...
Cellular: added unit tests for new API functions (sim, power, base, device).
2018-06-26 20:41:52 -05:00
Seppo Takalo
f2c0c4e248
Fix connected UDPSocket filtering
...
Was dropping all packets from connected peer
2018-06-26 17:01:19 +03:00
Hasnain Virk
10c3019e06
Refactoring LoRaRadio::receive(uint32_t) API
...
receive(uint32_t) API in the LoRaRadio class (base class for the radio drivers) should
not take any argument as we decided to take hardware timers for RX timeout interrupts
instead of software timers. It is being refactored to receive(void).
This is an API change, but as it is not an application interface, we will not put a
deprecation notice. Only user of this API is our stack (LoRaPHY layer) which has been updated
accordingly.
Actual driver comes out of the tree and a PR is open there to update the drivers:
https://github.com/ARMmbed/mbed-semtech-lora-rf-drivers/pull/22
In addition to this an internal API belonging to LoRaPHY class is refactored.
set_rx_window(parameters) is refactored to handle_receive(void) which is more consistent with
handle_send().
2018-06-26 15:47:51 +03:00
Teppo Järvelin
9f68977fee
Cellular: Rebase and fix tests as they got broken in rebase.
2018-06-26 09:14:15 +03:00
Teppo Järvelin
4bd4042101
Cellular: updated unit tests.
2018-06-26 09:08:26 +03:00
Teppo Järvelin
f64c84b1b7
Cellular: review fixes for cellularinformation tests.
2018-06-26 09:05:46 +03:00
Teppo Järvelin
8624765c06
Cellular: added greentea tests for CellularInformation.
2018-06-26 09:05:46 +03:00
Teppo Järvelin
f84862191c
Cellular: added more CellularInformation unit tests.
2018-06-26 09:05:46 +03:00
Cruz Monrreal
f3424da060
Merge pull request #7287 from SeppoTakalo/remove_feature_lwip
...
Remove FEATURE_LWIP
2018-06-25 11:23:15 -05:00
Martin Kojtal
8756183478
Merge pull request #7299 from ARMmbed/g-fix-mbr-invalid
...
MBR: Fix issue with MBR init asserting on bad partition size
2018-06-25 17:45:12 +02:00
Cruz Monrreal
24efa4c06e
Merge pull request #7192 from SeppoTakalo/socket-refactor
...
Create abstract Socket interface
2018-06-25 10:18:51 -05:00
Cruz Monrreal
dd7555e9ed
Merge pull request #7243 from k-stachowiak/disable-mbedtls-xts-default
...
Disable XTS cipher mode by default when importing Mbed TLS
2018-06-25 10:13:21 -05:00
Cruz Monrreal
2e233a96d3
Merge pull request #7210 from pan-/fix-nordic-security-cancellation
...
Fix nordic security cancellation
2018-06-25 10:12:23 -05:00
Cruz Monrreal
335fd58a7c
Merge pull request #7269 from jarvte/add_cellular_network_tests
...
Cellular: add cellular network tests
2018-06-25 10:05:20 -05:00
Antti Yli-Tokola
c887248544
Update mbed-coap to version 4.5.0
...
Fix error: IIOTCLT-2769 - mbed-coap: extra response received after registration
Added own flag to enable blockwise support, without setting default blockwise
payload size. This allows to receive blockwise messages while still sending
without blockwise.
Fix CoAP request blockwise response handling
When request is sent, response can have blockwise option set. All requests must
be stored to the linked list.
2018-06-25 17:08:52 +03:00
Cruz Monrreal
d160cc6cd0
Merge pull request #7284 from KariHaapalehto/wise1530_usi22_support
...
Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530
2018-06-22 10:16:16 -05:00
Cruz Monrreal
d18aa9072f
Merge pull request #7262 from paul-szczepanek-arm/gap-params
...
BLE: Add setScanParams overload to the Gap API
2018-06-22 10:15:14 -05:00
Vincent Coubard
4b8fb0be78
Nordic BLE: Fix return value verification
2018-06-22 09:36:06 +01:00
Vincent Coubard
b68e18cdb4
Nordi BLE: Fix formatting
2018-06-22 09:35:34 +01:00
Cruz Monrreal
85f66ca96f
Merge pull request #7275 from jarvte/fix_sim_null_when_used
...
Cellular: fixed defect where SIM interface was closed too early
2018-06-21 23:33:03 -05:00
Cruz Monrreal
34513f2a92
Merge pull request #7221 from pan-/cordio-port-test
...
Cordio: Add tests that validates a cordio port.
2018-06-21 23:30:39 -05:00
Christopher Haster
28a78308af
Fixed issue with MBR init asserting on bad partition size
2018-06-21 17:09:23 -05:00
Amanda Butler
da6f2d958b
Copy edit CellularConnectionFSM.h
...
Copy edit for consistent tense and comma usage.
2018-06-21 11:12:08 -05:00
Kari Haapalehto
699811be72
Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530
2018-06-21 12:15:53 +03:00
Seppo Takalo
c544ce0a3b
Add deprecation warning for those who enable LWIP or NANOSTACK
...
This is dropped by linker so does not cause any RAM/ROM cost.
2018-06-21 11:00:00 +03:00
Seppo Takalo
e4d1a9a85a
Remove FEATURE_LWIP. The LwIP stack is enabled on all builds now
...
Leave the FEATURE_LWIP enabled in build scripts so that it does
not break any builds.
Removed 'feature_add: ["LWIP"]' on all targets.
2018-06-21 11:00:00 +03:00
Seppo Takalo
adce2d9172
Remove deprecatd LwIP eth drivers
2018-06-21 10:28:50 +03:00
Vincent Coubard
d2ecdb8900
Cordio BLE: Rewrite reset test strategy
...
The existing test was expecting that the acknowledgement of the reset command would be the first and only event receive. This assumption is false.
As a consequence, the new code parse all incoming packets and raise a flag in the following circumstances:
* a reset packet has been successfully received.
* RX stream is not synchronized
* The status of the reset command is an error.
Another test has been added that send a serie of reset commands.
2018-06-20 15:24:37 +01:00
Teppo Järvelin
1a60422b74
Cellular: fixed defect where SIM interface was closed too early causing crash with certain configurations.
2018-06-20 14:15:22 +03:00
Vincent Coubard
4f8a006f3b
Cordio BLE: Document in test what fields are expected to be set after init.
2018-06-20 12:01:28 +01:00
Vincent Coubard
5b7f7aa77b
Cordio BLE: Fix test failure when controller initialization failed.
2018-06-20 12:00:52 +01:00
Seppo Takalo
1ca9ccda73
Filter incoming UDP packets based on connected peer address.
2018-06-20 12:38:07 +03:00
Seppo Takalo
e7cb4752fa
Fix small issues from the review
2018-06-20 12:38:07 +03:00
Seppo Takalo
2b60e42756
Close Doxygen group at the end of file
2018-06-20 12:38:07 +03:00
Seppo Takalo
96ef8e345d
Move string allocation to a point where get_ip_address() is called
...
This saves RAM/stack on typical socket usage where human readable
format is not exchanged so often.
2018-06-20 12:38:07 +03:00
Seppo Takalo
407b2f275d
Move accept() to abstract socket class and implement in TCPSocket
...
Deprecate TCPServer in favor of just TCPSocket::accept()
2018-06-20 12:38:07 +03:00
Seppo Takalo
cdbe43c0d5
Refactor Sockets by moving functions up into common base.
...
* Move IP Socket stuff to InternetSocket class which is inherited by TCP/UDP
* Implement sendto() and recvfrom() on TCP socket
* Implement connect() call on UDP
* Implement send() and recv() calls on UDP socket
2018-06-20 12:38:06 +03:00
paul-szczepanek-arm
399191fc9c
reuse existing call
2018-06-20 08:24:26 +01:00
Teppo Järvelin
1fb4d2dfc9
Cellular: fixed unit tests after rebasing with master.
2018-06-20 09:08:51 +03:00
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
e8005f6d72
Merge pull request #7206 from mikaleppanen/k64f_async_powerup
...
K64f non-blocking powerup
2018-06-19 21:49:37 -05:00
Cruz Monrreal
ba5b5a3870
Merge pull request #7191 from hasnainvirk/precise_timing
...
LoRaWAN: Fine tuning timing for delays and receive windows
2018-06-19 09:48:52 -05:00
paul-szczepanek-arm
4b1ce49ee1
use sets to apply limits
2018-06-19 15:18:11 +01: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
Cruz Monrreal
d1dc1e849e
Merge pull request #7146 from jarvte/add_cellular_sim_and_power_tests
...
Cellular: Added power and sim greentea and unit tests.
2018-06-19 08:46:51 -05:00
Cruz Monrreal
2bb686ff1e
Merge pull request #7245 from SeppoTakalo/fix-default-interface
...
Fix default interface selection by using correct macro names.
2018-06-19 08:46:28 -05:00
paul-szczepanek-arm
588e68bccf
add setScanParams overload
2018-06-19 14:36:18 +01:00
Martin Kojtal
0658544cb6
Merge pull request #7207 from mikaleppanen/dns_singletons
...
Change DNS global class definitions to singletons
2018-06-19 14:14:21 +02:00
Seppo Takalo
384fc7e778
Fix typo: WifiInterface -> WiFiInterface and add missing return.
...
Default WiFiInterface did not even build. And when it was fixed to build,
it was always returning NULL.
2018-06-19 10:47:12 +03:00
Cruz Monrreal
94a06cef66
Merge pull request #7229 from mikaleppanen/stm_chksum_disable
...
Disabled STM ethernet driver hardware checksum calculation
2018-06-18 17:23:28 -05:00
Seppo Takalo
412f654c8d
Fix default interface selection by using correct macro names.
...
Code was written using MBED_CONF_DEFAULT_* but the mbed_lib.json file
that created these values is prefixed with "nsapi" and therefore
final macros are MBED_CONF_NSAPI_DEFAULT_*
2018-06-18 18:59:43 +03:00
Cruz Monrreal
701d49d8eb
Merge pull request #7211 from pan-/ble-workaround-connections-param-update-request
...
Nordic BLE: Accept connection parameter update
2018-06-18 10:09:22 -05:00
Krzysztof Stachowiak
7b22ede77a
Disable XTS cipher mode by default when importing Mbed TLS
2018-06-18 16:48:33 +02:00
Cruz Monrreal
74a75d5bb0
Merge pull request #7058 from davidsaada/david_exhaustible_bd_fix
...
Fix two issues in ExhaustibleBlockDevice
2018-06-15 10:03:54 -05:00
Ari Parkkila
7d006f6f6a
Cellular: Target support for AT+CCID and AT+CGSN
2018-06-15 14:28:48 +03:00
Mika Leppänen
9b0cbe064d
Disabled STM ethernet driver hardware checksum calculation
...
No need for driver level hardware IPv4/TCP/UDP/ICMP checksum insertion
since LWIP and nanostack handles those already.
Related to issue: https://github.com/ARMmbed/mbed-os/issues/7227
2018-06-15 14:24:05 +03:00
Anna Bridge
3e2e6a714a
Merge pull request #7195 from jarvte/fixing_easycellular_release_version
...
Cellular: Semaphore wasn't released in easycellular release build.
2018-06-15 11:13:34 +01:00
Mika Leppänen
b7627e823b
K64F, K66F: Update the ENET PHY driver
...
PHY init and autonegotation is split into own functions.
2018-06-15 10:41:31 +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
Vincent Coubard
14e229e00a
Cordio: Add tests that validates a cordio port.
...
The first test focuse on the transport by testing that the reset sequence is
correctly sent to the controller and properly received.
The second test validates that the reset sequence fullfill the right state
of the stack and ensure that bluetooth initialization succeed.
2018-06-14 18:24:23 +01:00
Cruz Monrreal
a588d15ab4
Merge pull request #7194 from mikaleppanen/lwip_debug_stack
...
Increased LWIP main worker thread stack size for debug builds
2018-06-14 11:01:47 -05:00
Cruz Monrreal
baf563709a
Merge pull request #7090 from jorisa/usbserial-write-nonblocking
...
Add non-blocking write function for USBCDC
2018-06-14 10:20:26 -05: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
Cruz Monrreal
c3e639aad2
Merge pull request #7123 from paul-szczepanek-arm/fix-generate-whitelist
...
BLE: check flags to make sure the IRK has been stored before retrieving it
2018-06-14 10:15:15 -05:00
Hasnain Virk
d335f82440
Remaining style fixes
2018-06-14 14:52:46 +03:00
Hasnain Virk
27290bb12f
Adding valid frequency check for RXParamSetup cmd
...
We must check for a valid value of a frequency being sent
by the network server.
2018-06-14 14:52:46 +03:00
Hasnain Virk
ffb0698ce7
Adding port in trace & streamlining continuous RX2
2018-06-14 14:52:45 +03:00
Hasnain Virk
eab2bad593
Queuing the automatic uplink
...
If the automatic uplink is sent directly the call-stack becomes larger than 1K
which may cause serious problems in debug builds. Just to have a respite between
RX and TX we queue an event for the automatic uplink rather than directly undergoing
an automatic uplink.
2018-06-14 14:52:38 +03:00
Ari Parkkila
44365bccd0
Cellular: Added AT+CCID and AT+CGSN
2018-06-14 13:47:17 +03:00