-
Notifications
You must be signed in to change notification settings - Fork 30
MKR1000 and WIFI problem and another problem #20
Comments
This WebSockets2_Generic Library is not currently supporting boards using WiFi101 shield and library. I already checked and to provide support to this WiFi101 requires drastic changes in both WebSockets2_Generic Library and some changes in WiFi101 library. Because of the unpopularity of WiFi101 as well as MKR1000, I won't assign this work with high priority. And it'll take weeks to fix / update. Moreover, I don't have this combination MKR1000 + WiFi101 to test. I suggest you, if urgent. to use another currently-supported combination, such as ESP32, ESP8266, Nano-33-IoT, or even MKR1000 with Ethernet W5x00/EN28J60. If you're willing to wait, and test within a week or so, I can speed-up the changes for you to test. Good Luck, |
Hi, On the server we have a socket.io, express and nodejs configuration. Thank you very much for all your help. |
You can have a look at my WebSockets_Generic Library, based on ArduinoWebSockets and supporting Socket.IO. For example Generic_WebSocketClientSocketIO_WiFiNINA example. If OK and you'll spend time to test, I'll add support to MKR1000 and WiFi101 to that WebSockets_Generic Library |
Yes. Of course. I will be doing the test of all the improvements that you are producing to your library. :) |
Will release tomorrow. Almost done You can test the Modified WiFi101 library now. |
Do you know if the supported version of socket.io in your library corresponds to the supported version of node socket.io (https://www.npmjs.com/package/socket.io)? |
You are wonderful, you are a crack. :) |
No idea yet. Many different implementations out there. But if they stick to the Socket.IO standards, it'll be compatible and OK. |
You have to guide me a bit to do the tests you need to check that everything works correctly.
Do you want me to do something else for now? |
Already publish WebSockets2_Generic Releases v1.3.0 Please test with the Forked WiFi101 library and let me know the result. Thanks, Release v1.3.0
|
Those are enough tests. |
First analysis. With the library manager of the Arduino IDE I have installed your WebSockects_Generic library. Tell me if I should do some other tests. |
WebSockects_Generic library is not supporting WiFi101. That's why you have the same hanging issue because it tries to use WiFiNINA, instead of WiFi101. Have to fix in next step, if necessary. |
Now, just try the WebSockects2_Generic with normal WebSocket server, to see of WiFi101 is working OK. Use the examples such as SAMD_WiFi101-Minimal-Client. There are 7 examples For SAMD21/SAMD51 boards using WiFi101 |
In WebSockects2_Generic now the WiFi works perfectly, thank you very much. Thank you very much for your work. Now I would have to try testing it with a normal websocket server, but I don't have any implementation. |
Hi Khoi Hoang, I have made a small standard websocket server based on the nodejs websocket library (https://www.npmjs.com/package/websocket). Also, as you will see in the screenshots, warnings are produced when compiling the arduino program. Server Source code:
Any other tests you want me to do, you tell me. Thank you. (Edit) New investigations: With your library, can you use a specific protocol to communicate with the server? Look at the following screenshots: However, I have observed a problem. When using extended characters (Spanish), for example ñ, ó, ... that are in the middle of the sentence to be sent, the connection is blocked, and this is the fault of:
Do you have any idea how to solve this problem? Thank you so much for all your help. |
Good news that you can find your way out from now on. You can try this sophisticated SAMD_WiFi101-Client_SINRIC example and control your device from For Spanish character issue, you have to ask on some forums how to solve as I don't have experience with
You can use the SAMD_WiFi101-Server example, or the similar one written for other boards, to create a test WebSocket Server. |
However, for now I cannot use it with our server, since as I mentioned it works with socket.io. Very interesting what you tell me about control through Alexa and SinRic. I'll keep it in mind in case we need it. :) To control an industrial encoder, speed measurement by sections, etc ... do you have any library recommendations? Thank you very much for all your help. |
I'll put this in my very long bucket lists
In the mean time, you can try to merge the code with Socket.IO-client Library to see if OK.
Try to use my SAMD_TimerInterrupt, especially These examples are using ISR and won't be interrupted by other low priority tasks. |
Ahhh .... I thought you told me that by tomorrow you would have a version of WebSockets_Generic + WiFi101, that is what I had understood, for that reason I had been so happy, however, if it is not possible in all ways you I appreciate your efforts. |
Possibly I told you WebSockets2_Generic + WiFi101, not WebSockets_Generic + WiFi101 as this is not in my mind at all. A typo (missing 2 ??) |
I'll try finish WebSockets_Generic + WiFi101 next week as this is much simpler to do than last WebSockets2_Generic + WiFi101 |
Ohhh ... that would be wonderful ... thank you so much 👍 |
I'm closing this issue now as there is nothing more to do here on this enhancement. |
Describe the bug
I am running the sample program "SAMD-Minimal-Client", but it has a problem when it reaches any WIFI line.
Arduino IDE 1.8.15
Arduino MKR 1000
Installed libraries:
WiFiNINA_Generic v1.2.4
WebSockets2_Generic v1.8.5
Steps to Reproduce
When I compile the sample program I get some strange lines before finishing compilation (ScreenShot sc05.jpg).
I have added some lines to the code Serial.prinln ("1") ... (ScreenShot sc06.jpg) to see where the execution of the program goes.
As you will see in the screenshot, on the serial monitor, the program correctly detects my MKR1000, but it does not pass the Serial.print (1) line, that is, it remains blocked in WiFi.status () (ScreenShot sc07.jpg)
Even if you disable several lines in the program prior to the WiFi connection (ScreenShot sc08.jpg), it always stays blocked, even on the WiFi.begin line (ScreenShot sc09.jpg).
You can also see in the screenshots that I have used the firmware check programs and another example program from the Wifi101 library to check the WiFi connection and everything works perfectly (ScreenShots sc01, sc02, sc03, sc04). That is, the problem is when using your library.
Am I doing something wrong or is it a bug in your library?
Look at all the screenshots.
Checks:
CheckWifi101FirmwareVersion
WiFiWebClient
Thank you very much for your help.
Regards,
Jose.
The text was updated successfully, but these errors were encountered: