Git Product home page Git Product logo

g850_rawtcp_serial_adapter's Introduction

WiFi Raw-TCP Serial Adapter for the Sharp PC-G850
A Serial to TCP/IP adapter for the Sharp G850V(S) using the 11-pin port and an ESP8266

Initial Configuration
config.h contains all relevant default parameters.
The firmware looks for a config.ini file in LittleFS and will only use the firmware defaults if no config file can be loaded
(note that if you initialize your ESL with SPIFFs, you can upload a config.ini file until your hair falls out - it will always be wiped when the software initializes LittleFS, so make sure you upload any configuration file using LittleFS filesystem)

AT commands (can be set via netcat/telnet or via the G850, e.g. you could save the AT command in text editor and then "save" via the SIO port) to change the WiFI SSID and password or other parameters.
+++AT+CFG?
Returns: +++AT+CFG={"rev":1,"sleep":60,"baud":9600,"port":23,"ssid":"GUEST","wifipw":"your_pw_here","host":"G850V.local","otapw":"myOTAPW"}
The command displays the active configuration

+++AT+CFG={ "rev":<n>,
"sleep":<n>,
"baud":<n>,
"port":<n>,
"ssid":"GUEST",
"wifipw":"new_pw",
"host":"G850V.local",
"otapw":"myOTAPW"}
Returns: OK

Sets a new configuration. you can set just one parameter or all at once.
rev: integer, referencing the version of the configuration. I recommend leaving at 1
sleep: seconds until unit goes into deep sleep
baud: baudrate for connection with G850 (600...9600)
port: TCP/IP port (use 23 for telnet compatibility)
ssid: the ssid name of your wifi
wifipw: password of your wifi network
host: hostname for use when requesting an IP address
otapw: password for protrcting your ota passwords (use espota protocol)

Example:
+++AT+CFG={"ssid":"GUEST","wifipw":"pw"}

+++AT+SAVE
Returns: OK saves current configuration as failsafe.ini to LittleFS Flash file system.
Pressing the PRG button for longer than 5 sec will load failsafe.ini configuration and reboot. This allows you to recover from a messed-up config.ini (e.g. wrong wifi credentials)

+++AT+SLEEP
Puts the adapter immediately into sleep.
Returns: OK

g850_rawtcp_serial_adapter's People

Contributors

chrisherman avatar

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.