Kimmo Vaisanen
0d7cc428b1
Cellular: Move string_to_pdp_type method to CellularContext
...
string_to_pdp_type is only used in CellularContext classes and by having
the conversion method in CellularContext it can be used to check also
the non-standard Non-IP PDP type string.
2020-01-08 12:15:51 +02:00
Martin Kojtal
3e790cc9ab
Merge pull request #12065 from AriParkkila/cell-fea-nidd
...
Non-IP socket implementation for NIDD over CP
2020-01-07 15:55:15 +01:00
Ari Parkkila
7899fead59
Cellular: Refactor CellularBase from AT_ControlPlane_netif
2020-01-07 04:03:33 -08:00
Ari Parkkila
4b3ef73333
Cellular: Fix astyle
2020-01-06 22:35:53 -08:00
Ari Parkkila
85baad850f
Cellular: Add NIDD for U-blox/N2XX
2020-01-06 22:35:18 -08:00
Ari Parkkila
f695e278ea
Cellular: Add NIDD for Quectel/BC95
2020-01-06 22:35:18 -08:00
Ari Parkkila
033402d597
Cellular: Change CellularNonIPSocket to poll before timeout
2020-01-06 22:35:18 -08:00
Ari Parkkila
f4158ca00e
Cellular: Change ATHandler debug print levels
2020-01-06 22:35:18 -08:00
Ari Parkkila
913cbd96a6
Cellular: Change 3GPP TS 27.007 NIDD to async
...
Add a missing license header.
Remove semaphores and add +CRTDCP to support async operation.
Fix delete context and disconnect to execute just once.
Add support for NONIP PPD type.
Change CellularNetwork::clear() to virtual so it can be overridden.
2020-01-06 22:35:18 -08:00
Ari Parkkila
972d8a6107
Cellular: Add count/dequeue methods in CellularList
2020-01-06 22:33:50 -08:00
Ari Parkkila
feee2a234e
Cellular: Fix Non-IP of Quectel/BG96 modem driver
...
Add missing license headers.
Remove semaphores to allow async operation.
Change hex format to allow binary payload.
Limit payload size to 100 bytes.
Fix missing plus char at +QCFGEXT.
2020-01-06 22:33:49 -08:00
Kimmo Vaisanen
6c647104c7
Cellular: Move cellular event queue thread ownership to CellularDevice
...
Earlier CellularDevice has owned event queue used by cellular (state machine and ATHandler for example),
but the thread used to dispatch the queue has been owned by state machine.
This commit moves the event queue thread to CellularDevice so now the ownership of cellular event queue
is in one place.
2020-01-07 08:28:30 +02:00
Martin Kojtal
0dbf34bf06
Merge pull request #12123 from kivaisan/refactor_variable_visibilities
...
Cellular: Refactor cellular variable visibilities
2020-01-03 12:11:52 +00:00
Martin Kojtal
6baa5e479d
Merge pull request #12020 from linlingao/fix_rat
...
Fix issues in setting radio access technology
2020-01-02 10:08:11 +00:00
Kimmo Vaisanen
f7cc3db70b
Cellular: Refactor cellular variable visibilities
...
- Earlier some variables were public even though used only internally
- Also refactored variables to the end of class definitions
- Removed duplicate _property_array from CellularDevice
- Changed _impl methods as protected
2019-12-30 10:00:24 +02:00
Antti Kauppila
ca7848d854
Refactored away onboard_modem_api because it is not needed at all
...
All targets must implement soft_- and hard_power_on/off() functions which are practically same what onboard_modem_api offered.
These were seen as a duplicate features and therefore we removed this.
All targets involved have been updated to reflect the changes
2019-12-27 16:04:10 +01:00
Ari Parkkila
d5abab8843
Cellular: Add check for network congestion in BC95 driver
2019-12-20 04:25:26 -08:00
Martin Kojtal
789a193696
Merge pull request #12133 from kivaisan/limit_at_trace_length
...
Cellular: Suppress long AT traces
2019-12-20 11:24:38 +01:00
Lin Gao
0bc8f4f726
Revert BUFF_SIZE fix, to be fixed in another PR. Add missing property entries
2019-12-19 13:45:30 -06:00
Lin Gao
c8524c25be
add config option and property to choose automatic fallback for PLMN manual operator selection
2019-12-19 11:26:13 -06:00
Lin Gao
d5d4520d62
Implement set_access_technology_impl for Telit ME910
2019-12-19 11:23:30 -06:00
Lin Gao
a5a9683348
Change AT+COPS mode to manual first then fall back to auto to improve reliability. Fix a syntax error when RAT is set
2019-12-19 11:23:30 -06:00
Lin Gao
9e17653723
Increase BUFF_SIZE to avoid error in AT response when debug is turned on
2019-12-19 11:21:14 -06:00
Kimmo Vaisanen
f5ef066055
Cellular: Suppress long AT traces
...
When AT traces are enabled and very long AT commands are traced,
system can easily go to unwanted state. Therefore the length of the AT
traces is limited to DEBUG_MAXLEN (currently 60 characters).
This commit fixes read_hex_string, read_bytes and write to use this
limitter.
2019-12-19 09:54:23 +02:00
Ari Parkkila
31bd1a795b
Cellular: Fix Gemalto driver to handle remote peer closed
2019-12-18 01:37:53 -08:00
Ari Parkkila
89b66465c2
Cellular: Fix Gemalto/Cinterion driver
2019-12-18 01:10:51 -08:00
Anna Bridge
eac7d30ca5
Merge pull request #12114 from AriParkkila/cell-dns-zero
...
Cellular: Fix to not use all zero address for DNS
2019-12-17 16:41:39 +00:00
Anna Bridge
e28daf7c84
Merge pull request #12110 from AnttiKauppila/cp_recv_len
...
Moved CP Max recv len into mbed_lib.json
2019-12-17 16:28:37 +00:00
Anna Bridge
298f3f22b7
Merge pull request #12088 from AriParkkila/cell-cops
...
Cellular: Fix AT command for COPS manual network selection
2019-12-17 16:24:28 +00:00
Antti Kauppila
6d0b2fae9b
Moved CP Max recv len into mbed_lib.json
...
According to [3GPP-TS_24.008] the maximum size for Non-IP link MTU is 1358 octets to prevent fragmentation in the backbone network.
Therefore reduced the maximum size to follow the standard.
2019-12-16 15:48:46 +02:00
Ari Parkkila
50ab644380
Cellular: Fix to not use all zero address for DNS
2019-12-16 04:56:45 -08:00
Ari Parkkila
483c557f9b
Cellular: Fix AT command for COPS manual network selection
2019-12-12 00:31:43 -08:00
Antti Kauppila
c42426a889
Coverity fixes for UBlox
...
- Unneeded class variables refactored away
- Init function refactored to remove duplicate code
2019-12-11 09:26:41 +02:00
Antti Kauppila
35c2b60800
Coverity fix for ATHAndler
...
Unneeded NULL check removed
2019-12-11 09:25:29 +02:00
Antti Kauppila
e221ba9bb9
initialisation added for _property_array
2019-12-09 15:25:22 +02:00
Antti Kauppila
30ea858f51
Disable APN lookup by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
90d3dc1f13
CellularStack fixed
2019-12-09 15:25:22 +02:00
Antti Kauppila
e51230c5e4
Remove CellularBase and AT_CellularBase
...
Removed CellularBase and AT_CellularBase from cellular stack and updated both code and unittests accordingly.
Moved property handling into AT_CellularDevice
2019-12-09 15:25:22 +02:00
Martin Kojtal
e4e6ac5bd6
Merge pull request #12008 from AriParkkila/cell-at-string-fix
...
Cellular: Fix ATHandler string handling
2019-12-03 15:52:39 +01:00
Ari Parkkila
c22dd77f42
Cellular: Fix ATHandler string handling
2019-12-03 03:21:13 -08:00
Martin Kojtal
da5a8b2b65
Merge pull request #11952 from pferland-multitech/master
...
Fix for Dragonfly nano and registration for LTE-M plans
2019-12-02 16:55:14 +01:00
Martin Kojtal
24c6c4cab5
Merge pull request #11935 from AriParkkila/cell-depr-device
...
Cellular: Mark to be deprecated in CellularDevice
2019-11-29 15:45:35 +01:00
Ari Parkkila
088140e04b
Cellular: Mark CellularDevice::stop deprecated
2019-11-29 04:24:56 -08:00
Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Martin Kojtal
9974d831fe
Merge pull request #11949 from ARMmbed/acabarbaye-patch-1
...
Fix for ARMC5 compilation errors for some targets
2019-11-27 13:12:14 +01:00
Martin Kojtal
58d6f5f39f
Merge pull request #11873 from AnttiKauppila/disable_sms
...
Make SMS configurable in Cellular stack
2019-11-27 09:03:55 +01:00
Peter Ferland
35e4904b23
Enabled CGREG for Dragonfly Nano allowing 2G fallback registrations
2019-11-26 17:20:27 -06:00
Peter Ferland
2301036b80
Changed registration AT commands used by Multitech Dragonfly Nano
2019-11-26 16:53:46 -06:00
Adrien CABARBAYE
877523dab4
Update QUECTEL_BG96_CellularStack.cpp
...
Similar issue for a different target
`./mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp", line 431: Error: #20 : identifier "sprintf" is undefined`
> armcc -c --gnu -Ospace --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 -DMBED_TRAP_ERRORS_ENABLED=1 --cpu=Cortex-M4.fp.sp --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp11 --no_rtti --no_vla -DMBED_ROM_START=0x0 -DMBED_ROM_SIZE=0x80000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x10000 -DTARGET_SOFTDEVICE_NONE -DTARGET_NORDIC -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="cmsis_nvic.h" -DTARGET_NRF52 -DCMSIS_VECTAB_VIRTUAL -DTARGET_MCU_NRF52832 -DDEVICE_SPI_ASYNCH=1 -DMBED_TICKLESS -DDEVICE_SLEEP=1 -DFEATURE_BLE=1 -DNRF52_PAN_12 -D__CMSIS_RTOS -DTARGET_SDK_15_0 -DNRF52_PAN_64 -DDEVICE_SPI=1 -DDEVICE_I2C=1 -DNRF52_PAN_15 -DDEVICE_SERIAL=1 -DTARGET_LIKE_MBED -DDEVICE_PORTOUT=1 -DDEVICE_SERIAL_ASYNCH=1 -DTARGET_M4 -DNRF52_PAN_31 -D__FPU_PRESENT=1 -D__CORTEX_M4 -DTARGET_RTOS_M4_M7 -DDEVICE_PORTIN=1 -DTARGET_CORDIO_LL -DTARGET_NRF5x -DCONFIG_GPIO_AS_PINRESET -DDEVICE_SERIAL_FC=1 -DDEVICE_USTICKER=1 -DTARGET_RELEASE -D__MBED__=1 -DTARGET_CORDIO -DMBED_MPU_CUSTOM -DNRF52_PAN_54 -DSWI_DISABLE0 -DDEVICE_INTERRUPTIN=1 -DNRF52_PAN_63 -DNRF52_PAN_51 -DDEVICE_ANALOGIN=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DTARGET_NORDIC_CORDIO -DNRF52_PAN_62 -DNRF52_PAN_55 -DTARGET_CORTEX -DNRF52_PAN_53 -DDEVICE_PWMOUT=1 -DDEVICE_PORTINOUT=1 -DTOOLCHAIN_ARMC5 -DTARGET_CORTEX_M -DDEVICE_ITM=1 -DMBED_BUILD_TIMESTAMP=1574735595.5081437 -DNRF52_PAN_20 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_LPTICKER=1 -DNRF52_PAN_30 -DTARGET_LIKE_CORTEX_M4 -DTARGET_NAME=MTB_UBLOX_NINA_B1 -DCOMPONENT_NSPE=1 -DDEVICE_TRNG=1 -DNRF52_PAN_58 -DTOOLCHAIN_ARM -DARM_MATH_CM4 -D__MBED_CMSIS_RTOS_CM -DNRF52 -DBOARD_PCA10040 -DDEVICE_FLASH=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DTARGET_MTB_UBLOX_NINA_B1 -DDEVICE_SYSTICK_CLK_OFF_DURING_SLEEP=1 -DTARGET_NRF52832 -DTOOLCHAIN_ARM_STD -DNRF52_PAN_36 --preinclude=./BUILD/MTB_UBLOX_NINA_B1/ARMC5/mbed_config.h --via ./BUILD/MTB_UBLOX_NINA_B1/ARMC5/.includes_3003a516b3c5c98831c114756251051b.txt --depend BUILD/MTB_UBLOX_NINA_B1/ARMC5/mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.d -o BUILD/MTB_UBLOX_NINA_B1/ARMC5/mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.o ./mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
2019-11-26 15:27:15 +00:00