Search found 8 matches

by nedoskiv
Thu May 09, 2019 7:37 am
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 10
Views: 2194

Re: uPing - Ping library for MicroPython

and here is the fix I have maded: # init socket sock = usocket.socket(usocket.AF_INET, usocket.SOCK_RAW, 1) sock.setblocking(0) sock.settimeout(timeout/1000) try: addr = usocket.getaddrinfo(host, 1)[0][-1][0] # ip address except: print("Unable to resolve: "+host) sock.close() return(0,0) sock.connec...
by nedoskiv
Thu May 09, 2019 6:45 am
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 10
Views: 2194

Re: uPing - Ping library for MicroPython

Works good for me, on esp32 using latest build I can just suggest one fix to be maded, when you trying to ping hostname that cannot be resolved, it fails: >>> uping.ping("diar.bg") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "uping.py", line 52, in ping IndexError: li...
by nedoskiv
Wed May 08, 2019 11:42 am
Forum: General Discussion and Questions
Topic: How to include driver into micropython compilation
Replies: 7
Views: 485

Re: How to include driver into micropython compilation

If I do not mistaken, somewhere I have read that esp32 is merged with main, does that mean wiznet5k driver should be available for esp32 now?
by nedoskiv
Sat Apr 20, 2019 6:29 pm
Forum: General Discussion and Questions
Topic: GSM/PPPOS working example/library
Replies: 2
Views: 159

Re: GSM/PPPOS working example/library

Here is how it worked for me (very basic example): import machine import time gsm = machine.UART(1,tx=22, rx=21, timeout=1000, baudrate=9600) time.sleep(1) gsm.write("at\r\n") print(gsm.readline()) print(gsm.readline()) time.sleep(1) gsm.write("AT+CPIN?\r\n") print(gsm.readline()) print(gsm.readline...
by nedoskiv
Sat Apr 20, 2019 3:17 pm
Forum: General Discussion and Questions
Topic: GSM/PPPOS working example/library
Replies: 2
Views: 159

GSM/PPPOS working example/library

Hello, I wanted to use a GSM modem (SIM800L) for example to connect my ESP32 board (as long as read it merget with main) So far I have read that network.PPP is added, but never see anyone post a working example to run it. Loboris ESP32 have implemented GSP support and it is working. Examples that he...
by nedoskiv
Sat Mar 16, 2019 6:26 pm
Forum: General Discussion and Questions
Topic: How to include driver into micropython compilation
Replies: 7
Views: 485

Re: How to include driver into micropython compilation

Thank you for the answer, I will try to make myself clear goal that I want to achieve is using wiznet 5k adapter with esp32, if not possible - use an other wired network adapter wits esp32, since I read about that, wiznet looks more stable solution if I manage to get it working. I have download souc...
by nedoskiv
Wed Feb 27, 2019 2:42 pm
Forum: General Discussion and Questions
Topic: How to include driver into micropython compilation
Replies: 7
Views: 485

Re: How to include driver into micropython compilation

Come one people, just a little push here.
by nedoskiv
Wed Jan 23, 2019 7:33 am
Forum: General Discussion and Questions
Topic: How to include driver into micropython compilation
Replies: 7
Views: 485

How to include driver into micropython compilation

Hello, I'm new here, but stuck on some place, I want to include wiznet5k support into micropython used on esp32, so I followed some instructions/tutorials and manage to compile micropython, but after some reading was unable to understand how to include a driver or anything into compilation. Accordin...