Coder Social home page Coder Social logo

esp8266socks's Introduction

esp8266socks

connect your PC to WIFI network by esp8266

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

# install dependancy package
pip install -r requirements.txt

python main.py --host <ip address> --port <port> --serial /dev/tty<serial port> --ssid <ssid> --password <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

contact me

image

esp8266socks's People

Contributors

996refuse avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.