Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question - need socket interface #36

Open
rew1ndustry opened this issue Aug 8, 2024 · 2 comments
Open

question - need socket interface #36

rew1ndustry opened this issue Aug 8, 2024 · 2 comments

Comments

@rew1ndustry
Copy link

the chips i need to flash are soldered onto their power supplies - as in most of the LED bulbs i can find around here.

i have built a wifi linked flashed using an esp8266 chip, provides a telnet service direct to the UART, and i have rewritten the hid_download_py scripts to operate over sockets, instead of serial, and all of this works quite well, and can be powered by the supply on the target board.

could itchiptool be converted to operate over wifi socket 23?

i presume it can - should i do the changes, and would these be useful to you?

@kuba2k2
Copy link
Member

kuba2k2 commented Aug 8, 2024

It should be possible, but you would need to provide a socket based backend instead of the usual UART. There are some functions, such as baudrate setting, byte availability checking, etc. that would need to be reimplemented. Perhaps the simplest option would be to write a class compatible with PySerial.

The question is - in which cases would that be necessary? I assume you're connecting an esp8266 to the LED bulbs, instead of connecting an UART TTL adapter to them.
Sure, connecting UART while powering the device from mains would be extremely dangerous, but why not simply apply 3.3V to the chip instead?

Usually these kinds of smart devices have some kind of low voltage regulator in the end, that steps the voltage down to 3.3V. I tend to either apply power at its output, or at its input (e.g. 5V) which gives me a stable supply.

@rew1ndustry
Copy link
Author

rew1ndustry commented Aug 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants