@daniel
I have upgraded device (WIPY2.0) from 1.7.2.b1 to 1.9.2.b2 and have problems:
ntp_sync most of the time not wrok (hang and never ending)
i use for it old method
def getNTPTime(host = "pool.ntp.org"):
port = 123
buf = 1024
address = socket.getaddrinfo(host, port)[0][-1]
msg = '\x1b' + 47 * '\0'
msg = msg.encode()
TIME1970 = 2208988800 # 1970-01-01 00:00:00
# connect to server
client = socket.socket(AF_INET, SOCK_DGRAM)
client.setblocking(15)
client.sendto(msg, address)
msg, address = client.recvfrom(buf)
t = struct.unpack("!12I", msg)[10]
t -= TIME1970
tuple_time = time.localtime(t)
rtc.init((tuple_time))
client.close()
but also tested if rtc.ntp_sync could help but same result :(
i2c not work - i2c buss error
i init it with id=0 (i do not remember if in 1.7.2 it was hardware or software based)
bus=I2C(0, I2C.MASTER, baudrate=100000, pins=("P19", "P20"))
to test it what is going on i have updated board 3 times (all times sucessfully)
but with the same result
i have downgraded firmware back to 1.7.2.b1
all work without any problems - any hint?