dineshlama
Posts: 34
Joined: Mon Aug 26, 2019 4:40 pm

pi pi or pi router pi

Sun Apr 26, 2020 9:09 pm

Which is the best and fastest communication method between two pi? pi directly communicating with another pi one being wireless access point or pi communicating another pi throught router?

User avatar
Botspot
Posts: 1262
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: pi pi or pi router pi

Sun Apr 26, 2020 9:14 pm

dineshlama wrote: Which is the best and fastest communication method between two pi? pi directly communicating with another pi one being wireless access point or pi communicating another pi throught router?
Either of those would work, or you could simply do this: (daisy-chain 2 pies together with an Ethernet cord)
Image
See this topic.
I've developed the most intuitive RaspiOS img editor on the planet.
With a GUI similar to Gparted, managing imgs and sd cards is a breeze!
Boot it in a VM, Flash from the Internet at top speed, Mount (to drop in files), Shrink/Expand, Repair, and more.
https://github.com/Botspot/Pi-Power-Tools
> 400 users! 8-)

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: pi pi or pi router pi

Sun Apr 26, 2020 9:43 pm

If doing RPi to RPi with ethernet cable set both to static IP addresses.

dineshlama
Posts: 34
Joined: Mon Aug 26, 2019 4:40 pm

Re: pi pi or pi router pi

Sun Apr 26, 2020 10:08 pm

I want wireless communication not wiered connection. i am using pi 4B 4 gb ram.

User avatar
Botspot
Posts: 1262
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: pi pi or pi router pi

Sun Apr 26, 2020 10:16 pm

dineshlama wrote:
Sun Apr 26, 2020 10:08 pm
I want wireless communication not wiered connection. i am using pi 4B 4 gb ram.
Hmm, this sounds like an XY Problem - the OP wants to do X, and they think the best way to do it is Y, so they only ask how to do Y.

What are you trying to accomplish by connecting two Pies to each other?
I've developed the most intuitive RaspiOS img editor on the planet.
With a GUI similar to Gparted, managing imgs and sd cards is a breeze!
Boot it in a VM, Flash from the Internet at top speed, Mount (to drop in files), Shrink/Expand, Repair, and more.
https://github.com/Botspot/Pi-Power-Tools
> 400 users! 8-)

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: pi pi or pi router pi

Sun Apr 26, 2020 11:09 pm

dineshlama wrote:
Sun Apr 26, 2020 10:08 pm
I want wireless communication not wiered connection. i am using pi 4B 4 gb ram.
If you understood WI-Fi you would realise that Wi-Fi is a shared medium.

RPiA to Wi-Fi router to RPiB means RPiA transmits packets to router. Router can only retransmit packets to RPiB when RPIA is quiet. That is router does some degree of store and forward.

RPiA direct to RPiB means no store and forward.

Clearly not the same with regard to time.

ejolson
Posts: 5373
Joined: Tue Mar 18, 2014 11:47 am

Re: pi pi or pi router pi

Sun Apr 26, 2020 11:20 pm

drgeoff wrote:
Sun Apr 26, 2020 11:09 pm
dineshlama wrote:
Sun Apr 26, 2020 10:08 pm
I want wireless communication not wiered connection. i am using pi 4B 4 gb ram.
If you understood WI-Fi you would realise that Wi-Fi is a shared medium.

RPiA to Wi-Fi router to RPiB means RPiA transmits packets to router. Router can only retransmit packets to RPiB when RPIA is quiet. That is router does some degree of store and forward.

RPiA direct to RPiB means no store and forward.

Clearly not the same with regard to time.
Avoiding the router should significantly reduce collisions as there is only half the traffic needed to be sent. My experience is that trying to pass a large amount of data from one wireless device to another through a router is hopeless. Due to all the collisions the transfer backs off from 1/10 to 1/100 the expected speed.

Note, rather than setting one Pi up as an access point, it may be easier and just as effective to wire one to the router and configure only the other use WiFi.

Return to “Beginners”