Coder Social home page Coder Social logo

Comments (11)

acassis avatar acassis commented on August 29, 2024

Hi @gcmurray1990 thanks for bring this issue to our attention.

About the warning you can fix using: %"PRIx32"

@SPRESENSE @masayuki2009 any idea why this error is happening?

from nuttx.

gcmurray1990 avatar gcmurray1990 commented on August 29, 2024

@acassis Thank you for the quick reply. I understand that you all are busy, but is there anything I can do to help, or something I can clarify?

from nuttx.

acassis avatar acassis commented on August 29, 2024

@gcmurray1990 I never used that LTE API, so I'm not much useful here, however looking the function lte_send_atcmd_sync() at apps/lte/lapi/src/lapi_other.c is seems like it doesn't apply directly to a serial line (this is way you saw -25 error: NOTTY). Look at lapi_req() it communicates with some socket, that is really strange.

I suspect this LTE is not a generic LTE libray, but something specific for Sony ALT1250. If that is the case I think we need to move apps/lte to apps/modem/alt1250.

@SPRESENSE since you are the author of that library, could you please help here?

from nuttx.

SPRESENSE avatar SPRESENSE commented on August 29, 2024

Hi, @gcmurray1990
The LTE API is a method to request some to the user-sock daemon which is supporting LTE, like WAPI(Wireless API) of NuttX.
And the user-sock daemon is provided for each network devices which is supporting TCP/IP protocol layer.
Now, the LTE Usersock daemon in NuttX is only for Alt1250.
So, as @acassis said, currently the lapi is only for Sony Alt1250 device.

Please see document below to find a network stack structure in NuttX.
https://github.com/apache/nuttx/blob/master/Documentation/components/net/index.rst

from nuttx.

raiden00pl avatar raiden00pl commented on August 29, 2024

With some changes, LTE lib works also with nrf91 (you just need to get rid of alt1250 specific code).

from nuttx.

acassis avatar acassis commented on August 29, 2024

@raiden00pl did you get it working?

from nuttx.

raiden00pl avatar raiden00pl commented on August 29, 2024

yes, but this lib is designed to work with socket interface, not a simple serial device. To make this work you have to implement usersock device with LTE_CMDID ioctls like here

static int nrf91_ioctl_ltecmd(int fd, int cmd, unsigned long arg)
(in this case lte_send_atcmd_sync() that uses LTE_CMDID_SENDATCMD is not supported)

from nuttx.

acassis avatar acassis commented on August 29, 2024

Nice! Thank you @raiden00pl !!! Maybe it could be a reference for @gcmurray1990 !!!

from nuttx.

acassis avatar acassis commented on August 29, 2024

Maybe we need some board profile example to nRF91, when I git grep CONFIG_LTE_LAPI it only returns boards/arm/cxd56xx/spresense/configs/lte/defconfig

from nuttx.

gcmurray1990 avatar gcmurray1990 commented on August 29, 2024

@raiden00pl , @acassis , and @SPRESENSE Thank you all for being so helpful and looking into this. I appreciate everyone's time very much.

from nuttx.

acassis avatar acassis commented on August 29, 2024

You are welcome, if you face some issue integrating usrsocket to support SIM7600G-H please let us know

from nuttx.

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.