Hi Kees,
in an ideal world you would send data through the sock API
and the OS
would route it through the network interface to the modem. We
are not (yet) there, but you can get similar results by implementing a
GNRC Netif interface for the modem (similar to xbee
, as Martine
suggested). This can be done be implementing the gnrc_netif_ops_t
interface (e.g 1)
You can then transmit/receive using netapi/netreg
. You would just need
to implement a set of NETOPTs in order to configure the modem (maybe
even define more NETOPTs if needed). For your usecase you could even
think of modelling the interface as a “non-IP payload on top of TCP/IP
modem”, which means you could transmit data almost out of the box (e.g
txtsnd
).
Cheers,
José
On 22/09/27 06:03PM, Kees Bakker via RIOT wrote:
Hi,
I have a small SAMD21 device with a Ublox G350 modem on it. Basically this device was designed to measure the water level with pressure sensors. One at the bottom under water and one in the open air. The water level is the difference in pressure.
My goal is to send sensor data, once a day, via the modem to a MQTT broker (or maybe something else). I have the firmware written for Arduino, but I want to try and redo it all with RIOT-OS. There is an at
driver that I want to use to control the modem. So far I can open a TCP socket and send data. UDP shouldn’t be hard either. It’s all very much work-in-progress and still very basic.
Can anyone give me a piece of advise how to continue? Should I be looking at netdev
? If so, how do I interface to it? Are there similar devices/drivers?
Any hint is welcome.
Visit Topic or reply to this email to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, click here.