espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
705 stars 167 forks source link

Does esp32-c3 hosted-fg have an interface for querying the firmware version number? #401

Open ShengjieCh opened 5 months ago

ShengjieCh commented 5 months ago

I hope to obtain the version number of the currently used firmware in the upper-layer business. Is there any way to achieve this?

mantriyogesh commented 5 months ago

Hello @ShengjieCh ,

The current code doesn't have this support. however, it should be easy to add a new get-set using protobuf using https://github.com/espressif/esp-hosted/blob/master/esp_hosted_fg/common/proto/esp_hosted_config.proto .

Protobuf is standard message serialisation interface. Many customers have added their own commands and response as per their own requirement.

As this is generic request, we can also add for you but it may take some time.

ShengjieCh commented 4 months ago

Will host-fg support it? We don't want to make modifications ourselves. Hope it is consistent with the realease version.

mantriyogesh commented 4 months ago

Yes. We plan to add this. Might take couple weeks, unless urgent.

We are also going to improve upon release numbering. New release version would be string in format, "XY-A.B.C.D.E"

where, X & Y are alphabet/char like, 'FG' OR 'NG' (two letters). A, B, C, D, E are numbers.

For your ease, we will first implement control request-response (app would demo request and response) using existing release numbering, i.e. A.B.C

Basically upon running a 'get_fw_release' command in user app would fetch it from esp.

Later, new versioning would be in place (hopefully this would be major release number change, so that many customers would not be affected)

ShengjieCh commented 4 months ago

yes, this function is rather urgent. Please let me know approximately when this feature will be supported.

mantriyogesh commented 3 months ago

https://github.com/espressif/esp-hosted/issues/405#issuecomment-2257506378

Please verify and help to close the issue.