Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:33 10 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : FW for ESP on CMM2 (deluxe)

Author Message
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 04:20pm 17 Jan 2021
Copy link to clipboard 
Print this post

Hi,
as part of Napoleon Commander need, I have written new firmware for ESP8266 connected to the serial port on CMM2, CMM2ESP. It can all serial functions needed for NC and already few things usable in general:

@datetime
 gets date and time in format yyyy-mm-dd hh:mm:ss

@ver
 gets version of this firmware

@mac
 gets MAC address of WiFi

@netinfo
 gets info about connection to AP in format SSID, BSSID, RSI, gateway IP, network mask, own IP
 needs to be connected

@scan
 scans WiFi networks and returns:
 number of networks found (n)
 for every network number (0...n-1), SSID, BSSID, RSI
 doesn't need to be connected

@disconnect
 disconnects from current AP
 returns info Disconnected

@connect(SSID, password)
 connect to AP
 returns info Connected to SSID, BSSID, RSI

@httpget(url|split)
 split is not mandatory, default split is 250 characters
 send HTTP GET request to server
 returns HTTPGET url|number of batches (n) and then n times split characters with answer

 SEND @httpget(scooterlabs.com/echo?ip)
 HTTPGET http://scooterlabs.com/echo?ip|1, follows just 1 packet (used default split is 250 characters)
 1.2.3.4

 SEND @httpget(scooterlabs.com/echo?ip|3)
 HTTPGET http://scooterlabs.com/echo?ip|3, follow 3 packets (split was set to 3 characters per batch)
 1.2
 .3.
 4
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 09:01pm 17 Jan 2021
Copy link to clipboard 
Print this post

The one 'must have' command from the ZIMODEM is
  Quote  ATD"[HOSTNAME]:[PORT]" : This opens a streaming connection between the terminal and the given host/port. Use "+++" to disconnect and exit back to command mode.


Jim
VK7JH
MMedit
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 09:46pm 17 Jan 2021
Copy link to clipboard 
Print this post

  TassyJim said  The one 'must have' command from the ZIMODEM is
  Quote  ATD"[HOSTNAME]:[PORT]" : This opens a streaming connection between the terminal and the given host/port. Use "+++" to disconnect and exit back to command mode.


Jim


OK, thanks. I will take look on it...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025