Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/996refuse/esp8266socks
- Owner: 996refuse
- Created: 2024-05-15T10:17:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T16:11:59.000Z (8 months ago)
- Last Synced: 2024-05-28T00:08:49.960Z (8 months ago)
- Language: Python
- Size: 29.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.txtpython 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)