LIFsCode / ELOC-3.0

Firmware for ELOC 3.0 Hardware
MIT License
2 stars 3 forks source link

UART testing interface #89

Open OOHehir opened 3 months ago

OOHehir commented 3 months ago

@EDsteve @LIFsCode I've just added the UART functionality to facilitate testing.

There are some considerations when using the interface during light sleep as detailed in the README in the /lib folder. The main issue is that the SDK currently disables GPIO pins during light sleep.

@LIFsCode As you mentioned during the call it makes sense to use the existing code. Ideally the input to the UART would follow/ reuse the same 'pipeline' as the Bluetooth commands. Any thoughts or preference on how the UART should 'hook' into this code?

  1. Move some of the code into main.cpp & mark as extern in librarries:
    static CmdBuffer<2048> cmdBuffer;
    static CmdParser     cmdParser;
    static CmdAdvCallback<MAX_COMMANDS> cmdCallback;
  2. Add a interface method in BluetoothServer
  3. Something else?

If you've no objections I'll slowly add more features to ElocCommands for use only by the UART interface, such as restarting the device, listing files on the SD card, get time etc etc..