Sending Packets between Two Nodes
Afficher commentaires plus anciens
I intend to send and receive Packets between two wireless nodes. I would be extremely grateful if anyone of you can give advise on how to go about it.
Réponses (3)
Walter Roberson
le 28 Mar 2017
0 votes
There are multiple ways to do that.
- You could use a device similar to ZigBee on each end. Those devices appear as if they are serial ports, so you would use fopen() / fread() or fscanf() / fprintf() or fwrite() / fclose()
- You could use wi-fi and tcp/udp . You could use the Instrument Control Toolbox and tcp() or udp() in order to have one side be server and the other side be client, or you could use the File Exchange Contribution tcpudpip()
- You could use bluetooth; see https://www.mathworks.com/help/instrument/bluetooth.html
- there are other wireless devices available that would appear as serial over USB. Some of them might even support Visa drivers
- you could use Software Defined Radio (USRP)
A M
le 25 Avr 2017
0 votes
1 commentaire
Walter Roberson
le 25 Avr 2017
VANET can use any of a number of different wireless technologies, including WiFi, Zigbee, USDR, and cellular such as LTE. The first three of those probably come out more or less the same, but the cellular would need very different lower level protocols.
You should probably write your code more generically, such as by having a WhoHaveIRecentlyHeardFrom() function that returns IDs and timestamps (and signal strengths or something like that) that hides the protocol details. Then, the simulated version of that function could examine distances and build simulated notifications.
Mohmmad Abu Yousuf
le 9 Fév 2020
0 votes
Hi, Good day,
Hope you have got you answer about sending and receiving packets. Could you please share the codes with me.
Thank you in advance.
Email Add: yousufm.a@yahoo.com
4 commentaires
Walter Roberson
le 9 Fév 2020
As this is a project assignment that comes up from time to time, the volunteers would be concerned that they would be contributing to plagiarism.
Mohmmad Abu Yousuf
le 10 Fév 2020
Thank you Mr Walter, yes I understand that and I am also concerned about it but I need some idea at least how to start the simulation.
Walter Roberson
le 10 Fév 2020
https://www.mathworks.com/matlabcentral/answers/472096-broadcasting-a-packet-in-wireless-sensor-networks#answer_403736
Mohmmad Abu Yousuf
le 12 Fév 2020
thank you Mr Walter.
Catégories
En savoir plus sur Communications Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!