OSError: [Errno 116] ETIMEDOUT
-
Hello,
I have a Core 2 v1.1 running UIFlow2.0v2.0.7CORE2 Firmware and programing over UIFlow2 in Chrome. I have a PaHUB connected to the Core with a Grove cable. I keep getting the error code below even though everything is connected. It did work for about 3 hours yesterday until I unplugged the core from my computer. Now I'm getting the error again. The program hasn't changed between when it worked and when it didn't work. I've tried swapping the grove cable and that hasn't helped. How would you suggest resolving the error?
MicroPython v1.22.0-dirty on 2024-06-06; M5STACK Core2 with ESP32(SPIRAM) Type "help()" for more information. >>> [INFO] Syncing resources... [WARN] WiFi not connected. [WARN] quit sync. Traceback (most recent call last): File "main.py", line 486, in <module> File "main.py", line 459, in setup File "main.py", line 85, in Initialize_IO File "unit/extio2.py", line 1, in set_config_mode File "unit/extio2.py", line 1, in _write_u8 File "unit/pahub.py", line 1, in writeto_mem File "unit/pahub.py", line 1, in select_channel OSError: [Errno 116] ETIMEDOUT```
-
@ggong Hello, did you manage to get it working?? I am pulling my hair out as all M5 products were working straight out of box.
My setup is Atom Lite running freshly built S3 variant of micropython. I am getting ETIMEDOUT each time. Example code:from machine import SoftI2C, Pin DEFAULT_ADDR = const(0x45) FW_VERSION_REG = const(0xFE) i2c =SoftI2C(scl=Pin(1), sda=Pin(2), freq=400000 print(i2c.readfrom_mem(DEFAULT_ADDR, FW_VERSION_REG, 1))
I'll appreciate any help.
DG -
Hello @reverbrick
it looks like
i2c.readfrom_mem()
has some issues. Below code works for me:from machine import SoftI2C, Pin myReg = bytearray(1) myBuf = bytearray(1) DEFAULT_ADDR = const(0x45) FW_VERSION_REG = const(0xFE) i2c =SoftI2C(scl=Pin(1), sda=Pin(2), freq=400000) #print(i2c.readfrom_mem(DEFAULT_ADDR, FW_VERSION_REG, 1)) myReg[0] = FW_VERSION_REG i2c.writeto(DEFAULT_ADDR, myReg, True) # set register to read from i2c.readfrom_into(DEFAULT_ADDR, myBuf, True) # read FW byte print(myBuf)
Thanks
Felix -
@felmue Felix, thanks for your response.
This indeed works.
Trying to read/write some other registers (digital in) no luck yet, but at least there is some progress.
Thanks again.