Code Monkey home page Code Monkey logo

Comments (7)

TiejunMS avatar TiejunMS commented on May 28, 2024

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.

SL61 avatar SL61 commented on May 28, 2024

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.

TiejunMS avatar TiejunMS commented on May 28, 2024

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.

SL61 avatar SL61 commented on May 28, 2024

Thanks, Tiejun, I think it is a good starting point

from netxduo.

hwmaier avatar hwmaier commented on May 28, 2024

... 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.

TiejunMS avatar TiejunMS commented on May 28, 2024

You are correct.

from netxduo.

TiejunMS avatar TiejunMS commented on May 28, 2024

Feel free to reopen it if you have more questions.

from netxduo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.