-->
Page 1 of 1

USB to Wifi?

PostPosted: Thu Sep 09, 2021 7:14 am
by LewinskyS
First time here, and Newbie user.
I have a device that sends a data log to a flashdrive when the unit runs.
Is it possible to use the ESP8266, to have the data stream to a file on my PC? This would avoid having to run the unit with the Flash drive in the USB, then pull the Flash drive and plug it into my PC to download the info.
Any help, to start pointing me in the right direction would help.
If possible? which ESP8266 board would work?
any sample code that I could tweak.

Re: USB to Wifi?

PostPosted: Tue Sep 14, 2021 8:55 am
by QuickFix
No, an ESP8266 doesn't have USB only UART (or SPI, I2S in HW and I2C in SW).

The USB connector you might see on your development board is connected to a USB <=> UART convertor, so you can program it and use it for debugging on a PC.
With this your ESP is a USB device, while you need it to be a host, which it's simply not capable of.

Since you didn't mention what (kind of) device you're trying to interface, it's difficult to determine what you need to do (if even possible) to get it working.

Does your device also have a serial out by any chance?
If so, it shouldn't be too difficult, if not, you'll have to find another solution.

Re: USB to Wifi?

PostPosted: Tue Sep 14, 2021 12:22 pm
by btidey
I think a Pi with inbuilt wifi (e.g. a Pi Zero W) could be what you want for this.

https://magpi.raspberrypi.org/articles/ ... lash-drive

gives basic principle but you may want to power differently from that described.

Re: USB to Wifi?

PostPosted: Mon Nov 01, 2021 6:54 pm
by LewinskyS
So just rethinking this project and I think it may be easier to connect into the serial connection first, rather than use the USB port.
I believe there is a serial connection that can be tapped into.
Id like to capture this data as it streams from the serial port then port it across wireless into a PC.
Is there a circuit that can do this. Is this possible using ESP8266?
What hardware would anyone recommend for this.
Any sample circuits that anyone know of?