Search found 39 matches

by Shards
Sun Aug 28, 2022 6:46 am
Forum: Announcements and News
Topic: Migration to GitHub Discussions
Replies: 20
Views: 176861

Re: Migration to GitHub Discussions

Certainly github discussions works just fine on an android tablet with posts occupying the whole screen width with m)ore screen space for text than this forum. Though I miss the categorisation by processor type.
by Shards
Mon Aug 15, 2022 11:45 am
Forum: General Discussion and Questions
Topic: The ntptime module documenation is confusing?
Replies: 3
Views: 117025

Re: The ntptime module documenation is confusing?

Have you actually tried using ntptime without worrying about UTC? With a suitable host set a simple ntptime.settime() delivers a correct UTC time. This is using the latest overnight build of 1.19 for the Pico W. And there is no timezone, or any other, keyword argument. The documentation is clearly w...
by Shards
Thu Jul 07, 2022 3:38 pm
Forum: Raspberry Pi microcontroller boards
Topic: How to distinguish Pico from Pico W?
Replies: 6
Views: 5332

Re: How to distinguish Pico from Pico W?

I have a couple of the new chips, available from day one here in the UK. I can confirm the INFO_UF2.TXT file is identical to the original board. Once micropython is installed it's easy enough to identify the new board. If nothing else it has a network module.
by Shards
Thu Jun 16, 2022 2:21 pm
Forum: Other Boards
Topic: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code
Replies: 7
Views: 32443

Re: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code

Without an IP address you won't get anywhere. I'm not sure I have any more to add as it looks like the problem is with your specific hardware. The code I listed works on both ESP8266 and a range of ESP32 mcu. Hopefully someone with some experience of your board can help. You might also get a more fo...
by Shards
Thu Jun 16, 2022 6:53 am
Forum: ESP8266 boards
Topic: Racing RTC - days pass in a minute
Replies: 6
Views: 3535

Re: Racing RTC - days pass in a minute

A while back I tested a range of microcontroller RTCs and the ESP8266 was easily the worst. If you must use an ESP8266 and require decent timekeeping either an external clock chip or frequent resetting using ntptime is essential. It's not that Expressif can't do decent RTCs, timekeeping on the ESP32...
by Shards
Wed Jun 15, 2022 6:52 am
Forum: Other Boards
Topic: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code
Replies: 7
Views: 32443

Re: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code

An empty HOST string should work. Are you still getting an error or does it just hang? Your code looks OK as far as making a connection goes. I'm not so sure about the HTML you are generating but if you try connecting to your devices IP address via a browser you should at least see a connection if y...
by Shards
Tue Jun 14, 2022 1:38 pm
Forum: Other Boards
Topic: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code
Replies: 7
Views: 32443

Re: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code

Not sure why you are using AP_IF. Any device connected to an IP network must have an IP address which you can see using ifconfig . I have a web server running on my ESP32s using code virtually identical to yours for the basic socket stuff. I just do a normal STA_IF connection and it works just fine....
by Shards
Mon Jun 13, 2022 7:08 am
Forum: Other Boards
Topic: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code
Replies: 7
Views: 32443

Re: [Arduino Portenta H7] OSError: [Errno 1] EPERM when running network code

I can see a couple of problems with the code. You only import WLAN from network so 'network.STA_IF' is invalid. However, the real issue is that that you need 'wlan.active(True) after the assignment and before the connection. I'm using an ESP32 but the network interface is pretty consistent across bu...
by Shards
Tue May 03, 2022 8:43 am
Forum: General Discussion and Questions
Topic: First try at a websocket server - Pi Pico W5100S, HTML and javascript
Replies: 7
Views: 6243

Re: First try at a websocket server - Pi Pico W5100S, HTML and javascript

Alternatively you could use a board / processor that already has ethernet access available. The teensy 4.1 has an optional kit to add an ethernet port and support is available in the Micropython port and it's very straightforward to use. I've set up an FTP server using a standard implementation and ...
by Shards
Thu Apr 21, 2022 11:09 am
Forum: ESP32 boards
Topic: WiFi re-connect problem
Replies: 6
Views: 8623

Re: WiFi re-connect problem

If you want the program to continue to run you need to trap the 'Wifi Internal Error' with a try: except: block. you can then ignore the error and try connecting again. Certainly not best practice but I fairly consistently get the error, sometimes multiple times, and the code below gets it connected...