Search found 93 matches

by davef
Mon Nov 23, 2020 9:06 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem [solved]

Problem sorted.

Make certain that you are modifying the file that you are actually running on the device ... and not another one with a "similar" file name.

Apologies for wasting your time.

Regards,
Dave
by davef
Mon Nov 23, 2020 8:27 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem

Well, putting the resistors to 3V3 correctly made no change.

If I read the file back on WebREPL I see the current changes but it appears that after doing a hard reset that that is not the file running on the device.

I try re-flashing the firmware or another ESP-01S
by davef
Mon Nov 23, 2020 8:09 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem

I made a wrong assumption ... I just made a spelling change in the server script and it did NOT update on the device. I now see those extra 3K3 resistors I put in are not going to 3V3 but to my reset button ;( However, I had this "problem" before I put them in. Thank you for your effort thus far, I'...
by davef
Mon Nov 23, 2020 7:45 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem

Oops, yes the code is changed on the device at each change. I check by getting the file back.

Is there some issue with handling the socket that I am not aware of?
by davef
Mon Nov 23, 2020 7:40 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem

Yes, that works. I tried: while True: print('waiting for message') print('still waiting') data, address = sock.recvfrom(4096) data = data.decode('utf-8') and the 2nd print('still waiting') doesn't print. I modified the example in the linked tutorial to include those tests for <on> and <off> maybe th...
by davef
Mon Nov 23, 2020 7:15 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem

If I do:

Code: Select all

    if data:
	print(data)
        sent = sock.sendto(data, address)
it doesn't print <data>

The client says it got data back ... so I printed that and it says the data is:

Code: Select all

b'On'
which is exactly what is sent.
by davef
Mon Nov 23, 2020 6:53 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

Re: ESP-01S GPIO2 problem

Thanks for the response. In the real code I did follow the decode line with a print statement, but it doesn't print out the data. However, in the <if> statements I do print out a statement to confirm that the program responded properly to the client input. However, GPIO2 appears to "hang-up" in the ...
by davef
Sun Nov 22, 2020 6:58 pm
Forum: ESP8266 boards
Topic: ESP-01S GPIO2 problem
Replies: 11
Views: 153

ESP-01S GPIO2 problem

Following this tutorial https://pymotw.com/2/socket/udp.html and with my code import usocket import sys from machine import Pin pin2 = Pin(2, Pin.OUT) pin2.on() # create a TCP/IP socket sock = usocket.socket(usocket.AF_INET, usocket.SOCK_DGRAM) # bind the socket to the port server_address = ('192.16...
by davef
Fri Nov 20, 2020 10:19 pm
Forum: ESP32 boards
Topic: ESP32 Wifi connection/distance issues
Replies: 12
Views: 848

Re: ESP32 Wifi connection/distance issues

Couple more thoughts ...
- have you tried to get help on the user forum for this product?
- have you tried plugging in the serial cable both before and after plugging the USB cable in?
- what device are you actually plugging into the serial "port" on the Beetle, TXD and RXD?
by davef
Fri Nov 20, 2020 6:46 pm
Forum: ESP32 boards
Topic: ESP32 Wifi connection/distance issues
Replies: 12
Views: 848

Re: ESP32 Wifi connection/distance issues

Another thought ... if you have a DVM monitor the 5V at the module's USB connector for case 1 and case 2. If the module continues to draw the same current then you shouldn't see any change in the 5V.

How "close" is closer?