Coder Social home page Coder Social logo

TinyGSM instead of Wi-FI about microocpp HOT 9 OPEN

ziyadtarek7 avatar ziyadtarek7 commented on September 27, 2024
TinyGSM instead of Wi-FI

from microocpp.

Comments (9)

ziyadtarek7 avatar ziyadtarek7 commented on September 27, 2024 3

@matth-x
I was able to get it working, now I will look into getting multiple network interfaces (wifi, ethernet and gsm) working simultaneously so that I'm able to switch to the most stable interface.

Should I share what I have modified to get it working here? In case anyone else faced the same issue

from microocpp.

matth-x avatar matth-x commented on September 27, 2024 1

Oh cool!

It would be incredibly useful to share the code online, because 4G connectivity is discussed a lot here.

I assume you've forked arduinoWebSockets? The maintainer of that project is very open to contributions, so if you find the time to add the TinyGSM support there, then anybody can use it with MicroOcpp out of the box. But that needs time, just sharing the code here would already be great.

from microocpp.

ziyadtarek7 avatar ziyadtarek7 commented on September 27, 2024 1

Hello,
This my modifications that got MicroOCPP working with SIM800 module instead of WiFi

https://github.com/ziyadtarek7/Using-MicroOCPP-with-SIM800-Module/tree/main

from microocpp.

Avi241 avatar Avi241 commented on September 27, 2024 1

This really worked out of the box @ziyadtarek7 . Thank you so much for the help. Also I am looking towards making TinyGSM to make it compatible with SIMCOM A7672s 4G GSM module as I want my system to be compatible with 4G network. If you have any idea how to achieve this it will be helpful or else even I will keep on posting my progress for 4G module.

from microocpp.

matth-x avatar matth-x commented on September 27, 2024

Hi @ziyadtarek7,

I believe that TinyGSM implements the Arduino Client interface. Since arduinoWebSockets is programmed against WiFiClient (also implementing Arduino Client) there's a good chance that you can replace all references to WiFiClient with TinyGSM.

There's been some discussions about this in this issue section. A second approach would be to look for another WebSockets library which already brings built-in support for the SIM800L modem and then to make an adapter around it that suits the MicroOcpp Connection interface. That approach works for sure, but is a little bit more work than modifying the existing WebSocket integration.

For your reference, here are other issues discussing this matter:
#188
#90
#107
#219

from microocpp.

Avi241 avatar Avi241 commented on September 27, 2024

Hey @ziyadtarek7 . It was really great that you get it working even I was trying something similar with A7672S GSM 4G LTE module. It will be really helpful if you can share your work or guide me for the same. Thanks

from microocpp.

ziyadtarek7 avatar ziyadtarek7 commented on September 27, 2024

Hey @ziyadtarek7 . It was really great that you get it working even I was trying something similar with A7672S GSM 4G LTE module. It will be really helpful if you can share your work or guide me for the same. Thanks

Hello @Avi241, I will share all my work on this topic, hopefully, this weekend (Thursday or Friday)

That's what I was able to get working:

  • OCPP over tinyGSM (Sim800)
  • Switching between WiFi and GSM during runtime

I had a problem with getting secure websockets working on tinyGSM ( using SSL) so for now I have removed this part

from microocpp.

Avi241 avatar Avi241 commented on September 27, 2024

Thank you so much @ziyadtarek7 . I will look into it and let you know

from microocpp.

ziyadtarek7 avatar ziyadtarek7 commented on September 27, 2024

This really worked out of the box @ziyadtarek7 . Thank you so much for the help. Also I am looking towards making TinyGSM to make it compatible with SIMCOM A7672s 4G GSM module as I want my system to be compatible with 4G network. If you have any idea how to achieve this it will be helpful or else even I will keep on posting my progress for 4G module.

Unfortunately I have no experience with that module, but if it has an AT commands interface maybe you could edit the commands sent from tinyGSM to match those of the module

from microocpp.

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.