Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi Dashboard with eBox-WIFI-01 (directions for relaying Serial connection) #14

Open
whitneykrape opened this issue Dec 31, 2021 · 2 comments

Comments

@whitneykrape
Copy link

whitneykrape commented Dec 31, 2021

Hiya,

First, massive thank you. This library/setup is vastly better than the "official" apps for the eBox module. The directions below were pulled from a few places and figured newer folks might get the eBox-WIFI-01 module expecting plug and play like I did only to find a massive maze. Might be good for an addendum readme.

Note: If you haven't bought the "official" eBox WiFi module yet, consider the alternatives first, other options are more DIY but offer better setup and more options. Skip to 4. for the Serial connection directions.

  1. Attach module and directly connect via browser to eBox-WIFI-01.
  2. If the "STA Settings" tab is not available the loaded firmware might be more restrictive. Search "eBox-WIFI-01 sta mode" and troubleshoot accordingly if you want the WiFi to connect to a local network. Once you have the IP for the eBox, note for later.
  3. Install Node-Red and add the EPEverDashboard as described to desired monitor system (Pi in this example.)
  4. The eBox WiFi module is actually a simple Wireless to Serial connection but lacks translation in it's output. On the Pi (or any other device) we need to bridge the Serial connection to the Wireless on the monitoring device. To do this use socat as a relay:
    sudo socat pty,link=/dev/ttyWiFi211,unlink-close=0,raw,echo=0,mode=777 tcp:[ipofeboxwifi]:8088&
    (Adjust IP, Port, Directory as needed.)
    Source
  5. (Edit, not needed with the mode=777 added above but security still a consideration.) Set the permissions of the link directory.
    sudo chmod 777 /dev/ttyWiFi211
    (These are very open permissions, adjust as security as needed.)
  6. In the Node-Red EPEverDashboard select the modbus-client -> TracerA12 setting and change the Serial Port setting to the link directory created before, /dev/ttyWiFi211
  7. Deploy and check the UI, everything should populate and be able to Read/Write the battery values.
@tbodor
Copy link

tbodor commented Jan 12, 2022

This seems to work, too; only very limited testing so far, though (and socat not needed, obviously).
image

@whitneykrape
Copy link
Author

Oh good call, I didn't see that before. Just tried it and did get it working with the TCP TELNET, the other options (don't totally know what they are for) don't seem to connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants