FL0WL0W / EFIGenie

An open source engine management
25 stars 2 forks source link

Find a way to connect COM port to javscript GUI #2

Closed FL0WL0W closed 2 years ago

FL0WL0W commented 3 years ago

potential options uart web proxy electron browser extensions

FL0WL0W commented 2 years ago

@kolojoe take this python script and turn it into an HTTP call

https://github.com/FL0WL0W/EFIGenieSTM32F401C/blob/master/Serial.py

karniv00l commented 2 years ago

You may also consider WebSockets it should be more performant. I think that having a dedicated backend for serial communication or OS-specific stuff is a good call, that way you can run it either in a browser, electron, Tauri, or any other wrapper.

FL0WL0W commented 2 years ago

@karniv00l I agree about websockets to make it more performant. the python solution is a temporary solution just to get going. It logged about 5ms round trip for the http post request, through usb and back. will revisit this later for the additional solutions like we talked about (ESP8266/32, Electron, etc.)