How to connect my Jetson nano with my raspsberry pi 4?


I am new here, and I need your help…
I have the new jetson nano and a raspberry pi 4 model b.
I would like to send (x,y) from jetson to raspberry. Can i use a connection USB-A to USB-A with a cable USB/USB ?

thank you all

Hello @Victorine ,

You can use ssh connection between them.

OK, Thank you @ozguryildiz for that information, can I do that if I don’t have wifi on my jetson nano (I don’t have the modul) ?

Hi @Victorine,

You dont have Wifi module specifically. You can use ethernet cable to RJ45 port of Jetson Nano. If you dont have a chance to do that, you can use basic USB stick for data transfer.

You can also connect the Nano devkit microUSB connector to a host.
It should provide a bridge for IP connection over USB. Check on both ends with ifconfig.
The interface on Nano should be l4tbr0:

ifconfig l4tbr0


Thank you, I think I’m not very good but how can I use it in my code (I’m coding in python) ?

Assuming you use your Ubuntu PC host for as receiver.
Connect with a cable (be sure it has data lines, some cables for phone battery only have power lines) jetson devkit micro-USB port to Host USB.
From host, in a terminal you would check you have an interface for IP bridge over USB:

enp0s20f0u6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast

In my case the interface is called enp0s20f0u6, but it may be different in your host. The main point is to get the IP address, here my host has address over USB bridge. The use netcat to listen on this interface on an available port. Be sure there is no firewall preventing this. Here using port 5000 with TCP:

nc -l -s -p5000

Now on Jetson check the interface:

l4tbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast

should be l4tbr0 and here IP address
So you would try to connect to host over USB bridge on port 5000 with:

nc 5000

Then type Hello followed by Enter… You should see Hello in host terminal listening.

If this works, it validates the connection and you know the addresses and port.

From python, you would also use TCP sockets as done above by netcat. You may find many examples of using sockets with python searching from the web.