Giter VIP home page Giter VIP logo

Comments (6)

brianbienvenu avatar brianbienvenu commented on August 15, 2024

Hit the same issue with a U-Blox L210, and modified that section on modem.py#222 to this:

    try:
        cfun = lineStartingWith('+CFUN:', self.write('AT+CFUN?'))[7:] # example response: +CFUN: 1,0
        if not cfun.startswith('1'):
            self.write('AT+CFUN=1')
...

from python-gsmmodem.

tomchy avatar tomchy commented on August 15, 2024

Thank you for pointing that out!
After a quick research I found out that gsmmodem behaviour can be confirmed by GSM 07.07 specification and numerous other AT commad reference manuals.

Could you provide an explanation/spec for the alternative return values?
I think the idea of this project is to make a flexible and adaptive python library, so a small update should be more than welcome 🙂

from python-gsmmodem.

babca avatar babca commented on August 15, 2024

Feel free to post PRs.

from python-gsmmodem.

brianbienvenu avatar brianbienvenu commented on August 15, 2024

From the U-Blox AT command manual:
image
image

A shame they don't follow the standard!

I'm not sure if there would be any flow on effects from my suggested change above with other modems (I don't have any other modems to test against).

from python-gsmmodem.

babca avatar babca commented on August 15, 2024

Is there any way to detect this modem from available AT commands? It could be added to detection algorithm (modem.py L238+), which could then activate modem-specific features.

from python-gsmmodem.

lcnittl avatar lcnittl commented on August 15, 2024

Should be fixed with #86

from python-gsmmodem.

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.