I have a situation where many mobile devices are travelling up and down a road where they cross each others path. I need to determine what the vehicle speed is when they are in (very) close proximity. The Bluetooth channel has already been dedicated to another device so I would like to use WiFi direct. No one device can act as server since it may be miles away from all other devices.
Playing with the Wifi direct example and lib, it seems that one device must act as server and the other(s) as client. In my case, upon discovery, each device must act as both (I assume). Each unit comes in and out of range of the other and I need to know what the speed is of each unit - and communicate this.
The question is: can I set each device as a server and connect to the other, exchange data, or connect each device as a client, exchange data - OR must one be a server and the other(s) be a client (tear down and build up these connections on the fly and make it work)? At anytime. neither is a client or a server since they are constantly passing in and out of each others range (who is what?).
I was hoping this process was like a two-way radio, where each could communicate upon simple discovery of each other.
Signed stuck.
Thanks
Playing with the Wifi direct example and lib, it seems that one device must act as server and the other(s) as client. In my case, upon discovery, each device must act as both (I assume). Each unit comes in and out of range of the other and I need to know what the speed is of each unit - and communicate this.
The question is: can I set each device as a server and connect to the other, exchange data, or connect each device as a client, exchange data - OR must one be a server and the other(s) be a client (tear down and build up these connections on the fly and make it work)? At anytime. neither is a client or a server since they are constantly passing in and out of each others range (who is what?).
I was hoping this process was like a two-way radio, where each could communicate upon simple discovery of each other.
Signed stuck.
Thanks