pepotocsctl

What is GPIO wireless?

  • What is pepotocsctl?mono-wireless The thermo-hygrometer AM2321 sensor, analog input, and digital input/output signals are separated by the wireless modules TWELITE and MONOSTICK. It is a program that can be remotely monitored and controlled from a location.
    twlite_img
    pepotocsctl alone does not work, you need a separate epicon. You can operate the GPIO and AM2321 sensors of the Tocos wireless module with commands.
    1
    2
    # pepotocosctl
    usage /usr/local/bin/pepotocosctl read->chno:0-6 | write->chno:0-6 [DO:0|1|f] to 300000ms
    Read for 4 ports of DI (digital input)
    1
    # pepotocsctl 0 7
    The most port read of DI (digital input)
    1
    # pepotocsctl 1 1
    DO (Digital Out Pout) Light 1 to the first port
    1
    2
    # pepotocsctl 1 1
    1
    DO (Digital Out Pout) Write 1 to the first port and hold for 5 seconds
    1
    2
    # pepotocsctl 1 1 5000
    0
    I2C thermo-hygrometer AM2321 sensor read
    1
    2
    # pepotocsctl 5
    2016/01/20,19:16:19,4.0℃,75.4%
    Analog input read
    1
    2
    # pepotocosctl 6
    4080,4080,4080,4080
    Light after read
    1
    2
    # pepotocosctl 0 0
    7;4080,4080,4080,4080
    Digital input and analog input read
    1
    2
    # pepotocosctl 7
    f;1952,4080,4080,4080
    Wait for the read, DI change for the specified time
    1
    2
    # pepotocosctl 7 120
    e;4080,4080,4080,4080
  • Please check the source code below
    https://github.com/kujiranodanna/IOT-House/blob/master/raspberrypi/usr/local/bin/pepotocosctl