Sending Packets between Two Nodes

조회 수: 11 (최근 30일)
A M
A M 2017년 3월 27일
댓글: Mohmmad Abu Yousuf 2020년 2월 12일
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.
  댓글 수: 2
John BG
John BG 2017년 3월 27일
couldn't you jsut be a bit more specific?
and you mean SIMULATING 2 wireless nodes, don't you?
A M
A M 2017년 4월 25일
Yes, John. Simulating 2 wireless nodes. I just intend to start pinging two nodes once they are in vicinity of each other.

댓글을 달려면 로그인하십시오.

답변 (3개)

Walter Roberson
Walter Roberson 2017년 3월 28일
There are multiple ways to do that.
  1. 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()
  2. 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()
  3. You could use bluetooth; see https://www.mathworks.com/help/instrument/bluetooth.html
  4. there are other wireless devices available that would appear as serial over USB. Some of them might even support Visa drivers
  5. you could use Software Defined Radio (USRP)

A M
A M 2017년 4월 25일
What actually i am trying to do is to simulate a vehicular environment where vehicles would start communicating with each other once they fall in certain zones (i.e., zones in terms of distances between them). While I have simulated / identified the zones, what I am unable to do is to demonstrate that how they would communicate each other, i.e., (ping one another for collision).
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 4월 25일
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
Mohmmad Abu Yousuf 2020년 2월 9일
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
Walter Roberson
Walter Roberson 2020년 2월 10일
https://www.mathworks.com/matlabcentral/answers/472096-broadcasting-a-packet-in-wireless-sensor-networks#answer_403736
Mohmmad Abu Yousuf
Mohmmad Abu Yousuf 2020년 2월 12일
thank you Mr Walter.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by