Annex-uMite

 

Installation to ESP8266

First install the Latest Annex firmware to the ESP8266, the simplest way is via the Toolbox Utility .

UpLoad the configuration file /define.cfg to the ESP8266 via the File Manager in the root folder.

UpLoad the ESP-MCU2.2.bas file to the ESP8266 and set the file to autorun in the configuration.

You can test an get familiar with the application by simply connecting the ESP8266 to a terminal program . You can then send commands to the device via the serial port , also you can send UDP messages by using the UDP tab in the Annex Toolkit. If you want to experiment with HTTP messages just use your browser.

Messages to and from the ESP to uMite is at a default of 115200 baud and consists of basically 4 fields in the format

From$:Cmd$:Cfg:Data   ( From:Command:Configuration:Data) Fields , normally fields used within the ESP8266 are terminated with a : (colon) and then fields sent via the serial to/from the uMite are terminated with a | (Pipe), however in some circumstances both terminators may be used in the firmware.

I recommend Coolterm to test the module as it has a useful "Send String"  function. The screenshot shows the esp program running , sending a watchdog message every 10 secs

|watchdog|mode(network)|no cfg|data(millis since powerup)

Then a info:(cr) command has been sent with the result message from the ESP.

 

Next shot demonstrates a file being stored on the ESP file system and then read back, the result shown on the display.

 

 

Here is a UDP message sending an INFO: command with the data being send back to the sending UDP address.

In the case of a UDP message the format is mcu:ESP_Test:info: where the MCU signifies an Network message, then the actual device name, then the command.

 

 

Finally a command sent by HTTP, here is the format msg?frm=&cmd=&cfg=str=

http://192.168.0.63/msg?frm=%22My%20PC%22&cmd=info:&cfg=nc&str=this%20is%20the%20message

here is the message on the serial port to the uMite.

 

Installation to uMite

The uMite software should be uploaded to the uMite, initially it can be left in main memory but when an application has been developed the interface software is designed to be placed in the Library.

The MXwifi6.bas has a small portion of main program that may be used for testing and application development. This portion of code must be used in you own program to make the "hook' into the MXwifi.bas library.

It is shown here.

  '  *********************  Main Program  *******************
  cpu 48
sub MM.STARTUP
  'Nowifi=1 'un rem for No Wifi
  'Nodisp=1 'un rem for No Display
end sub
 

  dl.print=0
  print
  print "Start Main Program......"
  Do
    '***** mxWiFi Hook ****
    if userprocessflag=1 then
      UserProcess
      UserProcessFlag=0
    endif
    
    '***** End mxWiFi Hook ****
    Print #5,Inkey$;
  Loop
 
  '***** mxWiFi Hook ****

 

This screenshot shows the output from the "Main Program" above running on the uMite with a terminal connected to the board. It shows the powerup sequence and result of an INFO: command sent from the uMite, also the watchdog output can be seen .

 

 

 

Downloads
ESP8266 Annex firmware ESP-MCU 2.2.bas.Zip
uMite (mmbasic) firmware Library mxwifi6.0.bas.zip
Configuration file for ESP-MCU define.cfg.zip