Cannot connect Nano RP2040 Connect running on Micropython to WiFi - wifi

I have a Nano RP2040 Connect with Micropython on it. I need to connect it to WiFi. Micropython documentation says I need to import the "network" module, but when I try importing it, I get the no module named 'network' error. I assume the module is only for ESP32 & ESP8266 boards. If anyone has connected to WiFi with a Nano RP2040 Connect on Micropython, please help me out.
P.S.: I have tried CircuitPython, and it worked great, but I need to run a Tensorflow Lite model on my RP2040, and CircuitPython does not have a library for running TFLite, unlike Micropython.

Related

Getting telemetry data from dji matrice 210 RTK to Raspberry pi with Rasbian

I'm trying to get the telemetry data from the DJI matrice 210 RTK with a Raspberry pi3 through the OSDK.
I've followed the guide https://jamesthesken.github.io/dji-sdk-setup/
and manage to start serial communication but unable to receive data.
I've double-checked the possible reasons but none of them are the source of the problem.
This is the log I get:
STATUS/1 # init, L65: ...Serial started successfully.
STATUS/1 # sendData, L405: Port did not send
ERRORLOG/1 #sendData, L411:Open Protocol cmd send failed, send_len:0 packet_1en :19
ERRORLOG/1 # getDroneVersion, L1418: Drone version not obtained! Please do not proceed.
I expected to run the telemetry sample and obtain the results.
Thank you in advance for your help
With the Raspberry Pi 3b you need to disable Bluetooth in order to make serial communication possible.
$ sudo nano /boot/config.txt
dtoverlay=pi3-disable-bt
sudo reboot
Agreed with #escardill above. I would suggest also just verifying that the tx pins are connected to rx pins, and vice versa, if you are using a USB to ttl adapter cable (the one DJI sells for $5).

No internet / Can't install plugins on OctoPrint

I have installed OctoPi on my Raspberry Pi 3b+, that is connected to a mks gen l v1.0 motherboard for my 3D printer (Ender 3 Pro). When I open my OctoPrint into a browser I can use it, but I wanted to install some plugins. First time I had an error that said my server was offline, after connecting my Raspberry to Wifi and setting up a static ip-address, I've connected my Raspberry to my main board, after that it said the status of OctoPrint was operational, so I expected it will work..
Sadly, it says that my installation doesn't have internet, so I still couldn't install plugins. I see that in the "connectivity check" my host is 8.8.8.8 and my port 53; I've pressed on test and there it said "server is unreachable".
What am I supposed to do?
Try repowering your internet, if that does not work, try installing plugins from zip files

Network port not showing after running BasicOTA in ArduinoIDE for ESP8266 on Mac

I've just recently got an NodeMCUv3 ESP8266 and I've been trying to use the Arduino IDE 1.8.8 to program it on my Mac.
I've successfully installed ch340* drivers and I can flash the ESP8266 using USB wire cable.
But after flashing the BasicOTA example (modified to connect to my WiFi), I am not seeing my NodeMCU listed as a network port. I only see a list of Serial ports even after restarting ArduinoIDE and NodeMCU.
I tried Bonjour Browser to discover my NodeMCU device and I cannot see it on the net as well.
Could you please suggest any ideas what could be the problem for appearing the network port for NodeMCU device in the ArduinoIDE?
The problem was solved by adding the line
MDNS.update();
into loop() function.
If you are using windows
1. Install Bonjour
2. Exit the IDE, Disable the network adapters, Enable & connect the network adapters, Start the IDE
3. Disable IPV6 on your network adapters
4. Open the INBOUND port for Python.exe (with the full path)
Hopefully if you do all this, you should be able to do OTA

The operation couldn't be completed. (Starscream.WSError error 1.) RBSManager

I am trying to connect to ROS Machine using iOS App I am using the RBSManager
it's A Swift-native library for handling the WebSocket connection to a
Robot Operating System (ROS) master running ROSBridge for Controll
your robots with a mobile phone
.
but everytime I am trying to connect to ROS machine I got an Errore:
The operation couldn't be completed. (Starscream.WSError error 1.)
I am using swift 4 as a programming language and xcode 10 as IDE.
and the host that I am trying to connect to is: "192.168.69.155:11311".
There are probably two things that you need to fix to get this working presently.
1) use port 9090 which is the default instead of 11311 assuming you haven't changed it specifically. In the host text input of the RBSManager example app, type ws://192.168.69.155:9090 (the ws:// can be omitted if you prefer). Port 11311 is the default port and would be the port to use if this was a ROS < > ROS connection (e.g. two Ubuntu machines on the same subnet running ROS). ROS Bridge provides a different function which is similar, except that the data is transmitted in JSON format.
2) If you're getting the error when trying to get RBSManager to work with ROS Kinetic (on Ubuntu 16.04), then it seems there is a problem with one of the libraries, tornado on the ROS Kinetic side. Try downgrading from version 5.1.1 to 4.5.3. Doing this fixed the issue for me. This solution came from After tornado upgraded to version 5.0, websocket disconnects immediately after connection #353
Here are the commands:
pip uninstall tornado,
pip install tornado==4.5.3
Lastly, the same RBSManager example app will work without any tweaks to tornado with ROS Melodic on Ubuntu 18.04.

Unable to connect Rainbow Hat/Raspberry pi3 with Android Things using adb

I'm using Pimoroni Rainbow-Hat Raspberry pi3 kit. I have loaded android things image on sdcard. I have power cable and ethernet cable connected.
I can see Android things boot screen on display but i don't see the IP.
When i try to connect with adb connect Android.local it's not working(getting unknow host). I tried the ethernet cable from pi3 ethernet port to laptop , i can see the lan ip when i do ipconfig /all but when i try adb connect <-ip-:5555, still connection gets refused. but am able ping to the ip.
I am using Windows 7 OS.
Tried turning off IP v6, Windows Firewall, rebooting host etc, still not able to connect.
My main problem is getting the Aot device recognised on the host and load the app onto it.
I'm aware but haven't tried usb to ttl serial cable option mentioned here
I'm familiar with Android but new to iot/Aot , any help about where i am going wrong would be appreciated.
When i try to connect with adb connect Android.local it's not working(getting unknow host).
I tried the ethernet cable from pi3 ethernet port to laptop
The Raspberry Pi is a computer in its own right.
You need to connect the ethernet cable from the Pi3 to your router aka to the local network (not into your computer directly)
The follow the steps from the docs here and setup wifi to avoid further cable issues.

Resources