Martin Kojtal
8dc15ee6e1
Merge pull request #12293 from mirelachirica/remove_empty_api
...
Cellular: Remove API's empty default implemetations
2020-02-06 09:05:40 +00:00
Martin Kojtal
96861107f5
Merge pull request #12251 from kivaisan/remove_friends_from_statemachine
...
Cellular: Remove friend definitions from cellular state machine
2020-02-05 14:51:29 +00:00
Martin Kojtal
e3ad1cae55
Merge pull request #12334 from AriParkkila/cell-c030-r412m
...
Update cellular drivers/tests for UBLOX_C030_R412M
2020-02-05 12:50:11 +00:00
Ari Parkkila
1234b3fc28
Cellular: Fix UDP/IP on UBLOX_AT driver
2020-01-29 03:04:46 -08:00
Ari Parkkila
d6f8fece69
Cellular: Enable IP over PPP on UBLOX_C030_R41XM
2020-01-29 03:03:35 -08:00
jeromecoutant
a1fb286c06
AT_CellularStack: crash during TCP test
...
function tries to access _socket[1] whch is not opened
2020-01-28 13:10:41 +01:00
Anna Bridge
80fe861f1d
Merge pull request #12035 from kjbracey-arm/callback_prep
...
Preparation for Callback changes
2020-01-21 11:50:43 +00:00
Mirela Chirica
e2048b06b2
Cellular: Remove API's empty default implemetations
2020-01-21 10:45:09 +02:00
Ari Parkkila
2871721e08
Cellular: Refactor socket_stack_init() from generic to modem specific
2020-01-20 00:56:09 -08:00
Martin Kojtal
ecf4d62dc5
Merge pull request #12265 from AriParkkila/cell-fea-refactor
...
Refactor unnecessary functions from cellular driver
2020-01-17 13:57:06 +00:00
Martin Kojtal
4924264769
Merge pull request #12211 from hugueskamba/hk-replace-uartserial-cellular
...
Cellular: Replace UARTSerial references with BufferedSerial
2020-01-17 13:30:12 +00:00
Ari Parkkila
031d90a3ce
Fix UDP socket test cases
...
Fix UDP socket test cases to check more strictly on failure,
and lower trace levels to not print errors on successful cases.
2020-01-17 01:24:51 -08:00
Ari Parkkila
f9eef97ead
Cellular Refactor get_send_delay() into CellularProperty
2020-01-17 00:28:41 -08:00
Hugues Kamba
9e11e5b43d
Cellular: Replace UARTSerial references with BufferedSerial
...
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-16 16:22:07 +00:00
Ari Parkkila
ceea992b40
Cellular: Refactor is_protocol_supported() into CellularProperty
2020-01-15 23:04:00 -08:00
Ari Parkkila
e2cb18061e
Cellular: Refactor get_max_socket_count() into CellularProperty
2020-01-15 23:04:00 -08:00
Kimmo Vaisanen
2c4194bbe3
Cellular: Fix compilation fail with APN lookup enabled
...
Compilation failed if cellular APN lookup was enabled as stop command has been
removed.
2020-01-15 14:42:04 +02:00
Martin Kojtal
1b11d2cb02
Merge pull request #12249 from kivaisan/remove_deprecated_cellulardevice_stop
...
Cellular: Remove deprecated CellularDevice::stop()
2020-01-15 13:06:27 +01:00
Kimmo Vaisanen
52b00a296e
Cellular: Remove friend definitions from cellular state machine
...
Instead of defining which classes can access state machine, CellularStateMachine
class is now "a normal" CPP class with public API.
2020-01-14 12:19:20 +02:00
Kimmo Vaisanen
0d525fff29
Cellular: Remove deprecated CellularDevice::stop()
...
CellularDevice::shutdown() should be used instead.
2020-01-14 10:47:05 +02:00
Antti Kauppila
eb78ba6624
Fixed PDP type handling
2020-01-10 13:48:25 +02:00
Antti Kauppila
2fb167be26
Fixed IOTCELL-2384
...
Earlier we called AT+QICSGP only if the username and password was set.
It seems that we must call it also to set up APN while in AT mode.
This commit fixes the issue + updated IPv4/v6 handling to be correct in the same call
2020-01-09 17:19:24 +02:00
Kevin Bracey
d6a48b5124
Turn NULLs into nullptr
...
Avoids overload problems with Callback(nullptr) versus Callback(fnptr).
2020-01-09 14:52:54 +02:00
Martin Kojtal
ec3fc672a1
Merge pull request #12215 from u-blox/ubx_get_ip_addr
...
Cellular: Implementation of virtual get_ip_address funtion in ublox-api
2020-01-09 12:43:12 +01:00
Martin Kojtal
1fb9dd7ddd
Merge pull request #12122 from AnttiKauppila/visibility_fixes
...
ATHandler refactoring
2020-01-09 12:05:08 +01:00
mudassar-ublox
075a6fdd99
Override virtual get_ip_address funtion in ublox-api for targets UBLOX_C030_U201 and UBLOX_C027
2020-01-09 12:16:48 +05:00
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
Antti Kauppila
5553d0acd3
ATHandler class refactor
...
Refactored ATHandler class to have clear private and public elements
Also removed virtuality from ATHandler
Unittests updated to reflect changes
2020-01-07 17:15:27 +02:00
Antti Kauppila
36ca4d6516
ATHandler relocated
...
ATHandler is part of our API so header file was moved under API folder and .cpp file was moved under device/ folder
ATHandler is used in both AT and PPP mode so it has been in slightly wrong place at the beginning.
2020-01-07 17:15:27 +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