Comments (7)
Do you know whether the cellular modem you used support AT mode only or PPP mode? If PPP mode is supported, you will need to develop a PPP driver for data I/O. But the management of cellular initialization or connectivity management is out of the NetX Duo scope.
from netxduo.
Do you know whether the cellular modem you used support AT mode only or PPP mode? If PPP mode is supported, you will need to develop a PPP driver for data I/O. But the management of cellular initialization or connectivity management is out of the NetX Duo scope.
Both modes are supported and I plan to use AT mode first then use PPP mode later so I will have more flexibility to use components in NetX Duo. Before call NetX Duo api, I have done the initialization (cellular hardware, APN settings and registered on the network). I am thinking I should implement some apis like
- Cellular_CreateSocket()
- Cellular_SocketConnect()
- Cellular_SocketSend()
- Cellular_SocketRecv()
- Cellular_SocketClose()
and handle URC events.
from netxduo.
To use AT mode, the TCP/IP stack is provided by modem itself. We have a special version of NetXDuo and driver. You can take a look at https://github.com/azure-rtos/samples/releases/download/v6.1_rel/Azure_RTOS_6.1_STM32L4+-DISCO_IAR_Samples_2020_10_10.zip
You will need to port netxduo/common/nx_wifi.c for your modem.
To use PPP mode, you can follow the PPP sample and overwrite ppp_0_serial_byte_output and call nx_ppp_byte_receive when data are received. https://github.com/azure-rtos/netxduo/blob/master/samples/demo_netx_ppp.c
from netxduo.
Thanks, Tiejun, I think it is a good starting point
from netxduo.
... you will need to develop a PPP driver for data I/O.
Just a clarification, do you mean by "driver" just the glue code which links PPP and serial port? Because I thought that the PPP network driver itself is part of NetXDuo.
from netxduo.
You are correct.
from netxduo.
Feel free to reopen it if you have more questions.
from netxduo.
Related Issues (20)
- Wrong type across netxduo and threadx
- crypto hardware acceleration support HOT 15
- Inconsistent types across files
- NX_BSD_TIMEOUT_PROCESS_IN_TIMER
- CoAP addon HOT 1
- ULONG64 definition failing for rx architecture
- PPP LCP Negotiation stops at state 4.
- BSD addon fails to compile HOT 3
- BSD socket create failed!
- Deployment in Device Update for IoT Hub is Failed with NETX DUO 6.4.1 HOT 3
- Improper handled of out of order packets in case Application connection restarts in multiple loop HOT 3
- http(s) client: how to download a big file chunk by chunk ? HOT 1
- DHCPv6 Server instance sends IPv6 response packets on incorrect index when DHCPv6 Client and DHCPv6 Server are brought up simultaneously
- Module (DHCPv6 Client) is getting a new IPv6 address each time we disconnect and reconnect from the Home Wi-Fi
- Can NETX DHCPv6 support simultaneous DHCPv6 Client & DHCPv6 Server on two interfaces?
- NetX BSD fails when select() is passed a timeout
- NetX Duo Socket Error NX_NOT_CONNECTED due to dropped SYN-ACKs
- MQTT with TLS1.3 on STMH563ZI nucleo board
- High-speed transfer hang on mutex
- Is Netx DUO IPv6 standard certified or compliant for an end-node? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netxduo.