intercreate / smpclient

Simple Management Protocol (SMP) Client for remotely managing MCU firmware
Apache License 2.0
9 stars 6 forks source link

Android support? #54

Open JPHutchins opened 2 weeks ago

JPHutchins commented 2 weeks ago

@tomaszduda23 Have you happened to test any of the transports - USB, BLE, or UDP - on Android?

I'd love to add it here if it works: https://intercreate.github.io/smpclient/latest/#smpclient--operating-systems

tomaszduda23 commented 2 weeks ago

I've have not. How would you like to run it on Android? BLE should work. There seems to be two options:

  1. https://github.com/hbldh/bleak/tree/develop/examples/kivy
  2. I also run BLE in termux it works but all required patches are not merged https://github.com/termux/termux-packages/pull/21588
JPHutchins commented 2 weeks ago

I'll leave it for someone braver than me to experiment with! 🤣

I think that Python was talking about supporting Android better?

tomaszduda23 commented 2 weeks ago

Bleak supports only android 4 python. There is a few others but I didn't use it. Web version would be great. Than you could use it on any device :) Even install by PWA.

JPHutchins commented 2 weeks ago

Web version would be great. Than you could use it on any device :) Even install by PWA.

WebSerial doesn't seem to be going anywhere. It's public now, so I can state that it's what we used for the iFixit FixHub, using TS, but it means that you need Chrome - not so universal. And it doesn't work on Android, apparently!

Are you suggesting running smp and scmpclient in WASM?

I started on a Rust version of smp that would be more suitable.