atproto icon indicating copy to clipboard operation
atproto copied to clipboard

How about gpio in/out command via AT ? thank's

Open gorec2005 opened this issue 10 years ago • 8 comments

subj...

gorec2005 avatar Nov 13 '14 13:11 gorec2005

please clarify your question !

phil31 avatar Nov 13 '14 13:11 phil31

@gorec2005 You mean like AT+GPIO1=1 to set GPIO1 high and AT+GPIO2=? to read GPIO2?

igrr avatar Nov 13 '14 13:11 igrr

whether it is possible to add the ability through AT commands control the state of GPIO outputs and receive status GPIO inputs

gorec2005 avatar Nov 13 '14 13:11 gorec2005

Yes!

gorec2005 avatar Nov 13 '14 13:11 gorec2005

Yep it is possible. I wonder though why would you want this, are you connecting the esp8266 to some microcontroller without enough GPIOs?

igrr avatar Nov 13 '14 13:11 igrr

if use esp without microcontroller! - may be just for powerplug ( tcp-server+gpio-in-out )... if it can do onewire protocol it can more useful things without microcontroller :-)

gorec2005 avatar Nov 13 '14 13:11 gorec2005

Ooh, I see. Currently AT protocol is used on the serial (UART) interface, not on the network (TCP) side. Data from network is passed through to the application listening on the UART port, no parsing or command processing takes place there.

You can definitely use AT protocol for network communications. You can even reuse all my DCE code for that. You need to set up a tcp server in user_init and then pump received data into dce_handle_input function as I do with serial.

On Thu, Nov 13, 2014 at 4:18 PM, gorec2005 [email protected] wrote:

if use esp without microcontroller! - may be just for powerplug ( tcp-server+gpio-in-out )... if it can do onewire protocol it can more useful things without microcontroller :-)

Reply to this email directly or view it on GitHub https://github.com/igrr/atproto/issues/13#issuecomment-62888661.

igrr avatar Nov 13 '14 13:11 igrr

Yes! you right!!! with this posibility it's will be really cool for home automation!!!

gorec2005 avatar Nov 13 '14 13:11 gorec2005