Comments (9)
@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.
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.
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.
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.
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.
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.
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.
Thank you so much @ziyadtarek7 . I will look into it and let you know
from microocpp.
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)
- Get configuration parameters HOT 1
- SetChargingProfile not implemented HOT 2
- After OCPP Websocket connect getting Serial Monitor is printing Get Configuration Capacity HOT 1
- Operation timeout in sending request to Server HOT 2
- Can we start transaction from CMS ?? HOT 2
- StatusNotification info field HOT 3
- Port - NXP iMX RT1064 - CUSTOM_TIMER HOT 1
- How to add configuration key HOT 2
- Trouble with internal file system of ESP "no more free space" HOT 1
- Corruption of filesystem with blackouts when porting to ESP32 HOT 2
- (BootNotification.cpp:83): request has been Rejected HOT 1
- Operation timeout while resending statusNotification when websocket reconnects HOT 3
- Firmware service is not sending all FirmwareStatusNotification HOT 3
- Firware Service for ESP-IDF HOT 1
- Does PlatformIO + MicroOcpp not support IP addresses?
- Change WiFi interface for Ethernet HOT 1
- undefined reference to `setup()'
- How to implement/Use Authorization Cache HOT 1
- Support for binary data over websockets HOT 4
- BeginTransaction process with 2 connectors HOT 5
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 microocpp.