WAVE- BSM packet fileds

295 views
Skip to first unread message

Ayman Abufanas

unread,
Feb 27, 2015, 9:22:20 AM2/27/15
to ns-3-...@googlegroups.com
Hello every body,

I plan to do a new application over WAVE models using basic safety messages (VANET-ROUTING-COMPARE.cc), but I need to alert some fields on the current. I have to create a new header has fields that I want to have and add them to the packet before sending. Could I get help  from where I should start in the code. I.e, where I can find BSM packet  setup so I can pause it and resume from my own code.  

Thanks in advance,
Ayman,

Konstantinos

unread,
Feb 27, 2015, 9:45:07 AM2/27/15
to ns-3-...@googlegroups.com
Hi,

The code you are looking for is in the BsmApplication class. That is where BSM packets are generated and consumed. 

Ayman Abufanas

unread,
Mar 3, 2015, 9:09:23 AM3/3/15
to ns-3-...@googlegroups.com
Hi Konstantinos,

Thanks for this reply. 
Can you please guide me bit more on this point that where all do I need to make possible set of changes in BSM "*.cc & *.h" Files.
As per my concept I want to initiate the BSM packet from the actual node only but intermediate node may update this packet depending on  specific considerations. Is it feasible ?

Konstantinos

unread,
Mar 3, 2015, 9:33:48 AM3/3/15
to ns-3-...@googlegroups.com
Please study the ns-3 documentation. The BSM application is quite simple to understand and the function names are pretty much self descriptive.
The "GenerateWaveTraffic" creates new BSM packets, and the "ReceiveWavePacket", well ... receives them!

I do not understand what you mean by 'actual node', but I would say yes it is feasible. 

You can study other example applications such as UdpEchoClient/Server, where the server receives a packet and acts upon it by echoing it back to the client.

Sam NiTo

unread,
Aug 7, 2017, 1:13:22 PM8/7/17
to ns-3-users
Dear Sir,
Were you able to achieve what you wanted. I'm in a similar step. Could you please share some tips.

Saurabh Kumar

unread,
Aug 7, 2017, 10:58:00 PM8/7/17
to ns-3-...@googlegroups.com
Hello Sam, 

Can you explain in details, what are you intended to do ?
What is the objective of the new BSM application ?

Regards
Saurabh

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.

For more options, visit https://groups.google.com/d/optout.

reshma m nair

unread,
Jan 25, 2019, 3:41:14 AM1/25/19
to ns-3-users


Hi sir,
      Were you modify the code according to your need? I am also in such a stage where I want to add new bsm fields. If you achieve it can you please help me.

                                                                                                     Thank You
                                                                                                             Reshma M Nair


                                       
Reply all
Reply to author
Forward
0 new messages