Commit Graph

3567 Commits (14d776f79e08d39b0ff5821fb645ae2ee2685ba3)

Author SHA1 Message Date
deepikabhavnani 14d776f79e Updated doxygen comments 2018-10-19 11:46:55 +01:00
Deepika 7bef43ad1a Storage: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Cruz Monrreal II 762cf0393b Revert "Merge pull request #8183 from hasnainvirk/QOS_impl"
This reverts commit 5c675d3688, reversing
changes made to 2b04a02eb2.
2018-10-19 11:46:55 +01:00
Antti Yli-Tokola a9afbb652f Update mbed-coap to version 4.7.0
- Add function that can be used to clear the received blockwise payloads for example in the case of a connection error.
- Silence compiler warning when CoAP duplicate detection is enabled.
2018-10-19 11:46:55 +01:00
Mirela Chirica 866019f042 Cellular: Fix compile warnings for CellularNetwork 2018-10-19 11:46:55 +01:00
Yossi Levy b9f8c95a99 Fix warnings in block devices 2018-10-19 11:46:55 +01:00
jeromecoutant 7759077e17 STM32 EMAC : lock deep sleep 2018-10-19 11:46:55 +01:00
Hasnain Virk 70ad11e2f1 Fixing coverity findings
A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
2018-10-19 11:46:55 +01:00
Hasnain Virk 925d51492f Proper handling of RX1 frequency in rx_config
Previously, we weren't filling in RX1 frequecny in rx_window1_config
structure. However, everything worked as in LoRaPHY::rx_config() API
there was a check which filled in correct RX1 frequency.
Now we are filling in RX1 freq. properly while we are computing
parameters for RX1 window.
2018-10-19 11:46:55 +01:00
Hasnain Virk c42b7909da TX post-process for CONFIRMED UL in no-reception case
The idea behind the method post_process_no_reception() is to post
process any outgoing TX but we shouldn't do that if a CONFIRMED message
is outgoing and there are still some retries left.
2018-10-19 11:46:55 +01:00
Hasnain Virk d776f5cb6a Making sure that RX slots open after state change
After transmission we should change the state before invoking opening of
slots as we may start receiving in the rx slots and the state would
suddenly change from SENDING to RECEIVING without going through the
ACK_WAIT state (in case of CONFIRMED messages). Tests show that after
this slight adjustment, our number of ack retries have significantly
reduced.
2018-10-19 11:46:55 +01:00
Hasnain Virk 80d07ffe54 Adding QOS handling and fixing bugs for Class C
LinkADRReq mac command can be used by the network server to set a
certain level of QOS using NbTrans field which is applicable to
Unconfirmed traffic only for 1.0.2 spec.
This commit introduces mechanisms to facilitate this QOS. It means to
repeat an outgoing unconfirmed message NbTrans times without changing
its frame counter.

For class C, we have retired the ack_expiry_timer_for_class_c and have
replaced it with another timer which mimics the RX2 closure as in Class
A but doesn't actually close RX2 window. It's just a mechanism by which
the state machine is informed that the you can proceed forward, we have
not received anything in RX2 window either. This is needed as RX2
doesn't timeout in class C (i.e., the radio remains in continuous mode).
In addition to that we need to close any pending timers for Receive
windows after the MIC has passed and the Duplicate counter check has
also been passed.
2018-10-19 11:46:55 +01:00
Hasnain Virk 258b2813dd Adding check for ongoing automatic-uplink
Before going after an automatic uplink, we should check if there was an
automatic uplink already ongoing, i.e., the ack for the previous
automatic uplink cycle has not been received.
If there is we shouldn't queue the new automatic uplink and wait for
the previous Ack cycle to complete.
2018-10-19 11:46:55 +01:00
Hasnain Virk 0969c0f367 Style correction
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-10-19 11:46:55 +01:00
Oren Cohen 42f1b4e07d Restore disk_get_sector_size() to return WORD 2018-10-19 11:46:55 +01:00
Oren Cohen a1de6c037d Fix overflow in disk_get_sector_size() 2018-10-19 11:46:55 +01:00
Michal Paszta 8c72bd5c0b unittests: Added tests for netsocket classes
New classes covered with unit tests: SocketAddress, EthernetInterface, EMACInterface, WiFiAccessPoint.
Also added missing namespace in front of mbed::Callback usages.
EMACInterface is covered by the EthernetInterface unit tests.
2018-10-19 11:46:55 +01:00
TomoYamanaka 0721a76e32 Improve the config adjustment script for ENTROPY_NV_SEED
Although "nv_seed" is one of "entropy", it doesn't included to the "!defined" lineup in the following config file.
Therefore, when MBEDTLS_ENTROPY_NV_SEED is defined, it is accidently invoked "mbedtls/config-no-entropy.h".
mbed-os\features\mbedtls\inc\mbedtls\config.h
I think that correct processing should go to line 47, not line 40.
2018-10-19 11:46:55 +01:00
Andrew Leech 19cd207c21 nrf_ble: Expose configuration of max number of characteristics and descriptors 2018-10-19 11:46:55 +01:00
Jarkko Paso 4c63e4adda platform timer: Call timer start in enable
This timer was never started and therefore read_us returned always 0 causing bad timings.
2018-10-19 11:46:55 +01:00
Kimmo Vaisanen bff5c3be86 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-19 11:46:55 +01:00
Mirela Chirica 8346498a28 Cellular: Fix greentea network set credentials test case 2018-10-19 11:46:55 +01:00
Kimmo Vaisanen f16cdf45d9 Add missing SIM PIN configuration item 2018-10-19 11:46:55 +01:00
Jaakko Korhonen 758fca4644 Removed cellular PIN code print from debug log. 2018-10-19 11:46:55 +01:00
David Saada d00224ea33 Fix is_valid_erase function to use get_erase_size with address 2018-10-19 11:46:55 +01:00
Wajahat Abbas 861d649a7e corrected a typo in AT_CellularPower::opt_power_save_mode 2018-10-19 11:46:55 +01:00
Moran Peker eb76a2419c Disable MBEDTLS_SHA256_ALT on STM targets. 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm d07432174e assert instead of error 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 120f0e987b remove pointless cast 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 3f2b8882f2 fix namespace errors 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 92434ac77d change namespace 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 98ddcc1955 removed unusused header 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 637fba671a moved SimpleEventQueue 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm fe09b9195b check WsfBufAlloc 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm e47117ab1a replace malloc with cirdio buffer allocation 2018-10-08 15:29:18 +01:00
Antti Kauppila 04c16412cf cmake Paths corrected 2018-10-08 15:29:18 +01:00
Antti Kauppila 18a1e66ebc LoRaMac unittested 2018-10-08 15:29:18 +01:00
Antti Kauppila 8bed43e4f8 LoRaWANStack unit tested 2018-10-08 15:29:18 +01:00
Antti Kauppila 41d0648fdd LoRaMacCrypto unittested 2018-10-08 15:29:18 +01:00
Antti Kauppila 1f24d725a7 LoRaPHY unittested, small fixed done during tests 2018-10-08 15:29:18 +01:00
Antti Kauppila 07d2ce69ca LoRa regions unittested, stubs licences revisited 2018-10-08 15:18:50 +01:00
Antti Kauppila 474b652820 More lorawan unit tests added 2018-10-08 15:18:50 +01:00
deepikabhavnani 7577ff5bb5 Added thread safety info to FatFs/LittleFs 2018-10-08 15:18:50 +01:00
paul-szczepanek-arm 9d81960b89 fix using an invalid cccd index 2018-10-08 15:18:50 +01:00
Teppo Järvelin 918820c9ce Cellular: state machine and easycellular now return error fast if sim pin needed but not provided. 2018-10-08 15:18:50 +01:00
Juho Eskeli ae65a2a609 Align writes to blockdevice write size in MBRBlockDevice 2018-10-08 15:18:50 +01:00
Aashish chaddha ec18321551 skip the flashsim test if enough memory cannot be allocated for it. 2018-10-08 15:18:50 +01:00
Mirela Chirica 523edf0561 Cellular: Fix cellular network unit test 2018-10-08 15:18:50 +01:00
Edd Inglis 366ad09e67 Changed the reported SNR from unsigned to signed. Internally and logically it is a signed value. 2018-10-08 15:18:50 +01:00
paul-szczepanek-arm 38b0df0f79 fix whitelist generation (set correct address type) 2018-10-08 15:18:50 +01:00