Skip to content

Commit

Permalink
samples: net: cloud: tagoio: Remove GSM modem overlay
Browse files Browse the repository at this point in the history
The gsm modem driver is deprecated and will be removed. Remove
the build overlay and dependency on the gsm modem from the
tagoio sample.

The new cellular modem driver and subsystem use the native
networking stack and the pm subsystem, so just like ethernet,
enabling the cellular modem is up to the board configuration.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
  • Loading branch information
bjarki-andreasen authored and carlescufi committed May 29, 2024
1 parent 2cb559c commit 06c2762
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 118 deletions.
54 changes: 0 additions & 54 deletions samples/net/cloud/tagoio_http_post/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Requirements

* Ethernet: Using default configuration
* WiFi: Using default configuration plus wifi overlay
* Modem: Using default configuration plus modem overlay


TagoIO Device Configuration
***************************
Expand Down Expand Up @@ -81,58 +79,6 @@ need fill ``CONFIG_TAGOIO_HTTP_WIFI_SSID`` with your wifi network SSID and
:goals: build flash
:compact:


Modem
=====

The Modem support is quite similar to WIFI, you need a board with an embedded
Modem support or you can add a shield. Currently, the overlay was created to
allow modems with PPP support. This was tested using ``SIMcom SIM808 EVB``.
Additionally you need fill ``CONFIG_MODEM_GSM_APN`` with the correspondent Access
Point Name (APN) at
:zephyr_file:`samples/net/cloud/tagoio_http_post/overlay-modem.conf` file. A
DTC overlay file should be used to configure the glue between the modem and the
uart port. It can reside at boards directory, with the board name, or it can be
a special designator like defined at ``arduino.overlay``.

.. zephyr-app-commands::
:zephyr-app: samples/net/cloud/tagoio_http_post
:board: sam4e_xpro
:gen-args: -DEXTRA_CONF_FILE=overlay-modem.conf
:goals: build flash
:compact:

.. zephyr-app-commands::
:zephyr-app: samples/net/cloud/tagoio_http_post
:board: frdm_k64f
:gen-args: -DEXTRA_CONF_FILE=overlay-modem.conf -DDTC_OVERLAY_FILE=arduino.overlay
:goals: build flash
:compact:

In a terminal window you can check if communication is happen:

.. code-block:: console
$ minicom -D /dev/ttyACM0
*** Booting Zephyr OS build zephyr-v2.4.0-1135-g137732e23c1e ***
[00:00:02.172,000] <inf> modem_gsm: Manufacturer: SIMCOM_Lt
[00:00:02.227,000] <inf> modem_gsm: Model: SIMCOM_SIM808
[00:00:02.283,000] <inf> modem_gsm: Revision: 1418B04SIM808M32
[00:00:02.338,000] <inf> modem_gsm: IMSI: XXXXXX
[00:00:02.393,000] <inf> modem_gsm: ICCID: XXXXXX
[00:00:02.453,000] <inf> modem_gsm: IMEI: XXXXXX
[00:00:02.574,000] <inf> modem_gsm: Attached to packet service!
[00:00:02.575,000] <inf> net_ppp: Initializing PPP to use UART_3
[00:00:13.370,000] <inf> tagoio: TagoIO IoT - HTTP Client - Temperature demo
[00:00:13.370,000] <inf> tagoio: Temp: 20
[00:00:25.237,000] <inf> tagoio: Temp: 76
[00:00:37.581,000] <inf> tagoio: Temp: 36
[00:00:50.437,000] <inf> tagoio: Temp: 98
Visualizing TagoIO dashboard
****************************

Expand Down
14 changes: 0 additions & 14 deletions samples/net/cloud/tagoio_http_post/arduino.overlay

This file was deleted.

1 change: 0 additions & 1 deletion samples/net/cloud/tagoio_http_post/boards/sam4e_xpro.conf

This file was deleted.

14 changes: 0 additions & 14 deletions samples/net/cloud/tagoio_http_post/boards/sam4e_xpro.overlay

This file was deleted.

24 changes: 0 additions & 24 deletions samples/net/cloud/tagoio_http_post/overlay-modem.conf

This file was deleted.

11 changes: 0 additions & 11 deletions samples/net/cloud/tagoio_http_post/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ common:
- cloud
- dns
- http
- ppp
- modem
- gsm
- wifi
min_ram: 64
harness: net
Expand All @@ -32,11 +29,3 @@ tests:
- nucleo_f767zi
integration_platforms:
- frdm_k64f
sample.net.cloud.tagoio_http_post.modem:
extra_args: OVERLAY_CONFIG="overlay-modem.conf"
platform_allow: sam4e_xpro
sample.net.cloud.tagoio_http_post.modem.arduino:
extra_args:
- OVERLAY_CONFIG="overlay-modem.conf"
- DTC_OVERLAY_FILE="arduino.overlay"
platform_allow: frdm_k64f

0 comments on commit 06c2762

Please sign in to comment.