Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/996refuse/esp8266socks

connect your PC to WIFI network by esp8266
https://github.com/996refuse/esp8266socks

Last synced: 28 days ago
JSON representation

connect your PC to WIFI network by esp8266

Awesome Lists containing this project

README

        

# esp8266socks
connect your PC to WIFI network by esp8266

![](https://raw.githubusercontent.com/996refuse/esp8266socks/master/demo.gif)

### hardware

pc -> USB Serial UART Converter -> esp01

notes:

1. chips on usb serial converter both pl2303, ch340 or ft232 are tested working fine. The converter's Gnd should wire to esp01's Gnd, otherwise the serial output is garbled.
2. 3.3v power supply to esp01 is important, esp01's unstable issue is mostly possibly caused by the power supply
3. require good heat dissipation on esp8266 chip, when the wifi is turning on, the power consumption is becoming high and temperature is becoming high, it's very possible lead to stuck.

### Internet speed on esp8266

let's take 115200 baud rate as an example, it's the default uart serial config on esp8266.

```
115200bit/s = 14.0625kb/s
```

so in theory, the speed can never be faster than 14kb/s. today's most modern web page is about 5mb, it costs more than 6 minutes to load it.

### usage

```sh
# install dependancy package
pip install -r requirements.txt

python main.py --host --port --serial /dev/tty --ssid --password
```

### software structure

```
------------- --------------
| | <- connect connect -> | | listen
| esp8266wifi | <- close linkid <== esp8266_linkid_socks_map ==> sock close -> | socks5server | ========== socks5 proxy
| | <- recv revc -> | |
| | <- send send -> | |
------------- --------------
||
||
|| at command
||
||
----------
| pyserial |
----------
```

### annoying hardware/firmware issues

#### *busy p...*

when select timeout is too long (more than 1s), all requests burst at one moment. cause esp8266 enter "bush p..." state.

#### *busy s...*

still can't find the root cause

### license

WTFPL http://www.wtfpl.net/

### donate

![image](https://raw.githubusercontent.com/996refuse/esp8266socks/master/donate.png)

### contact me

![image](https://raw.githubusercontent.com/996refuse/esp8266socks/master/wechat.png)