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

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.

Related

lack of communication between hyper-v and physical machine

I would like to set up SMS notifications for the infrastructure auditing application. the application server stands on hyper-v. huawei modem is in a physical machine because hyper-v is not possible to connect usb. on this machine I set something like netsh interface portproxy add v4tov4 listenaddress=server address listenport=10080 connectaddress=192.168.8.1 connectport=80.
for some reason, port 10080 does not open, there is no communication between hyper-v and the machine with the modem. manual opening of the port on the firewall does not work. through cmd does not work. modem works correctly because when it is installed locally - notifications work. does anyone know where the problem may lie? how to communicate machines?

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

Paho-mqtt connect via ppp0

I am working on an embedded linux based device that runs ubuntu. Now the device driver for the wifi is really crappy so I cannot create a hotspot so this device connects to another device which is running a hotspot. Now I am connecting to that device for some input but at the same time connecting to internet to send mqtt message using paho mqtt in python via a gsm modem. The modem connect to internet using pon command and it works nicely. But when both connections are running, paho-mqtt cannot connect to internet anymore. pinging using -I ppp0 works fine. I tried to bind ppp0 ip address to paho-mqtt client using the bind_address argument but it does not work. How to resolve this issue?

Usb WiFi Dongle RaspberryPi

I want to set raspberrypi network ssid and password over Android application. My problem is how can I do. I know command line method or raspi wifi settings in desktop. I just want to do usb wifi dongle setting over Android app.
Have you tried ssh applications on android ? You can remote access Rpi if both your phone and Rpi are on the same network. Hope it helps.
You can edit the configurations using command line. hope you are using Linux.
Open the wpa-supplicant configuration file in nano:
network={
ssid="The_ESSID_from_earlier"
psk="Your_wifi_password"
}
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network.
And if not
sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot.

Connect ios devices to local server via wifi

I have a localhost server on my laptop. Can I connect ios device to this localhost server through wifi?
What settings I must set up on wifi connection?
By localhost server , i assume you are talking about a HTTP server .
If you know the port on which the server is listening to , note it down.
If you dont , generally web servers are attached to port 80.
If both laptop and ios device is connected to the same network.
Then first note down the IPAddress of you laptop.
In windows you can do so by typing : ipconfig in the command prompt
In Unix or Linux based systems : type ifconfig in the terminal.
Lets assume you found out that your ipaddress is 192.168.1.2
Note down this IP Address of your wifi adapter.
Now , just type in IPAddress:Port in the web browser of your ios device to access the server.
eg: Type in 192.168.1.2:80 on the url bar of ios device.

Resources