veins | Veins - The open source vehicular network simulation

 by   sommer C++ Version: veins-5.2 License: GPL-2.0

kandi X-RAY | veins Summary

kandi X-RAY | veins Summary

veins is a C++ library. veins has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

Veins - The open source vehicular network simulation framework. See the Veins website for a tutorial, documentation, and publications. Veins is composed of many parts. See the version control log for a full list of contributors and modifications. Each part is protected by its own, individual copyright(s), but can be redistributed and/or modified under an open source license. License terms are available at the top of each file. Parts that do not explicitly include license text shall be assumed to be governed by the "GNU General Public License" as published by the Free Software Foundation -- either version 2 of the License, or (at your option) any later version (SPDX-License-Identifier: GPL-2.0-or-later). Parts that are not source code and do not include license text shall be assumed to allow the Creative Commons "Attribution-ShareAlike 4.0 International License" as an additional option (SPDX-License-Identifier: GPL-2.0-or-later OR CC-BY-SA-4.0). Full license texts are available with the source distribution.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              veins has a low active ecosystem.
              It has 236 star(s) with 196 fork(s). There are 32 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 67 have been closed. On average issues are closed in 28 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of veins is veins-5.2

            kandi-Quality Quality

              veins has no bugs reported.

            kandi-Security Security

              veins has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              veins is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              veins releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of veins
            Get all kandi verified functions for this library.

            veins Key Features

            No Key Features are available at this moment for veins.

            veins Examples and Code Snippets

            No Code Snippets are available at this moment for veins.

            Community Discussions

            QUESTION

            Divide data on the basis of specific column number using pandas
            Asked 2021-May-18 at 21:26

            I am trying to load a .txt file using pandas read_csv function.

            My data looks like this:

            ...

            ANSWER

            Answered 2021-May-18 at 21:14

            If your id has the same format "xx-xxxxxx-xxxx", you can use it as a separator:

            Source https://stackoverflow.com/questions/67593940

            QUESTION

            Unsupported TraCI API version, recommend using Sumo version 1.0.1 or 0.32.0
            Asked 2021-Apr-27 at 04:39

            I'd like to use OMNeT++ along with Veins 5.1, Sumo 1.8 in Ubuntu 20.04 and I keep getting an error involving the setApiVersion that recommends to use Sumo 0.32 or Sumo 1.0.1. Is there any way to overcome that and use a later version of Sumo?

            ...

            ANSWER

            Answered 2021-Apr-27 at 04:39

            In my case the code was written for earlier versions of SUMO and Veins. The cc files used a different declaration of the namespace, with camel case instead of lower case. After changing to lower case the code is working without errors in Sumo 1.8 and Veins 5.1.

            Source https://stackoverflow.com/questions/67077200

            QUESTION

            Packet has bit Errors. Lost. Packet was not received correctly, sending it as control message to upper layer
            Asked 2021-Apr-18 at 09:58

            After configuring the simulation environment in Veins 5.0, different nodes send and receive messages at the same time. However, the following log is output only for specific messages.

            Packet has bit Errors. Lost

            Packet was not received correctly, sending it as control message to upper layer

            After browsing various information, I modified the omnetpp.ini code as follows, but the same transmission loss log is output.

            omnetpp.ini

            ...

            ANSWER

            Answered 2021-Apr-18 at 09:58

            What you are describing are collisions: if a node receives two wireless transmissions at the same time, it has difficulties understanding either transmission. (Imagine two people speaking to you at the same time: in this situation you would also have a harder time understanding what is being said).

            Normally, 802.11 tries to avoid this situation (this is the whole point of CSMA/CA, backoffs, ...), but there are cases where the mechanisms fail:

            A rather well-known case is a "hidden terminal" situation, where a sender is not aware of the presence of another sender (e.g., the other sender is hidden behind a building).

            Another, less well known case, is that where both senders start transmitting at the exact same time: Both senders will see that nobody else is transmitting, will change from receive to transmit mode, and will start sending (completely unaware that another sender is doing exactly this at exactly the same time). In practice, this situation is rather uncommon (after all, the two senders would need to start sending at very precisely the same time). Unfortunately, it is rather easy to do this by mistake in simulations: just configure two nodes to transmit at t=42s and they will both be trying to transmit at exactly t=42s.

            Source https://stackoverflow.com/questions/67108693

            QUESTION

            Error: Storage::readChar(): invalid position using Sumo, veins example and omnet++
            Asked 2021-Apr-17 at 17:29

            I've been using Veins (v5.1) along with SUMO (v1.8) and OMNeT++ (v5.6.2) in Linux Ubuntu 20.04 and 18.04. When I try to run the example provided by veins I keep getting the same error both in Ubuntu 20.04 and 18.04.

            According to the information in OMNeT, the error code is 133 or 137 and there isn't much information about the error in the above lines.

            Sumo seems to be running correctly, listening on port 9999, and sumo-gui is actually launching. However, a few seconds later it terminates with the following error log "Error: Storage::readChar(): invalid position". There's also an error code in the terminal.

            In the past I faced this problem in Ubuntu 14.04 due to incompatibility issues between the versions I was using. This time I'm using the recommended versions from veins webpage. Has anyone faced this problem before? Could this be an incompatibility issue with the operating system and if so, does anyone know what the compatible versions are for Ubuntu 18.04 or 20.04? I haven't used Linux before so I'm not sure if there's something else I'm missing.

            I've included a screenshot with the errors I'm getting in case that helps.

            Thanks!

            ...

            ANSWER

            Answered 2021-Mar-26 at 14:54

            I don't know if that is actually an answer to the problem or why this works. I've tried it both in my laptop (Ubuntu 18.04) and in two different virtual machines (Ubuntu 18.04 and Ubuntu 20.04) and this seems to fix the problem.

            Veins should be saved in a folder called src and then imported to OMNeT++ to avoid the error. The path to Veins should be similar to the following.

            Source https://stackoverflow.com/questions/66566806

            QUESTION

            Run OMNeT++ simulation from terminal using Qtenv
            Asked 2021-Apr-13 at 12:05

            I'm using Veins (v5.1) along with SUMO (v0.32) and OMNeT++ (v5.6.2) in Linux Ubuntu 20.04 and I'm trying to run the Qtenv from the terminal with the opp_run command. When the simulation window opens I still need to click run (F5) in order to start the simulation. Is there any way to start the simulation directly while using the Qtenv?

            ...

            ANSWER

            Answered 2021-Apr-13 at 12:05

            In Qtenv there is no way to start simulation automatically after opening the window.

            EDIT

            However, based on that question you may try use xdotool to start simulation by sending F5, for example:

            Source https://stackoverflow.com/questions/67053661

            QUESTION

            Where to view logged results in Veins 5.1
            Asked 2021-Apr-11 at 10:36

            I'm somewhat new to Veins and I'm trying to record collision statistics within the sample "RSUExampleScenario" provided in the VM. I found this question which describes what line to add to the .ini file, which I have, but I'm unable to find the "ncollisions" value in the results folder, which makes me think either I ran the wrong .ini line or am looking in the wrong place.

            Thanks!

            ...

            ANSWER

            Answered 2021-Apr-11 at 10:36

            Because collision statistics take time to compute (essentially: trying to decode every transmission twice: once while considering interference by other nodes as usual, then trying again while ignoring all interference), Veins 5.1 requires you to explicitly turn collision statistics on. As discussed in https://stackoverflow.com/a/52103375/4707703, this can be achieved by adding a line *.**.nic.phy80211p.collectCollisionStatistics = true to omnetpp.ini.

            After altering the Veins 5.1 example simulation this way and running it again (e.g., by running ./run -u Cmdenv -c Default from the command line), the ncollisions field in the resulting .sca file should now (sometimes) have non-zero values.

            You can quickly verify this by running (from the command line)

            Source https://stackoverflow.com/questions/67040038

            QUESTION

            The MAC address value isn't recognized by other node messages
            Asked 2021-Apr-09 at 16:04

            I'm using Veins 5.0. Here is the code I've written:

            NodeMsg.msg

            ...

            ANSWER

            Answered 2021-Apr-09 at 16:04

            AnotherNode.cc is creating a fresh mR_SA using new, but is expecting to find the sending node's mac address in there. This will not work. Rather, you would need to cast the received cMessage to this type and use member accessors to get the mac address.

            Source https://stackoverflow.com/questions/67010844

            QUESTION

            APP: Error: Got Self Message of unknown kind
            Asked 2021-Apr-07 at 17:40

            I'm using Veins 5.0 framework version. Each node sends a self-message to send its own defined message to other nodes.

            However, the following error log is output on the node. The error is output, but the following code seems to run fine.

            APP: Error: Got Self Message of unknown kind! Name: mR_TQ Event

            The code part of each file is structured as follows.

            RSU.h

            ...

            ANSWER

            Answered 2021-Apr-07 at 17:40

            The mentioned error comes from DemoBaseApplLayer::handleSelfMsg(msg). Involving this method must be done only when in your switch the matched kind is not found, i.e.:

            Source https://stackoverflow.com/questions/66985584

            QUESTION

            how to calculate RSSI in Veins
            Asked 2021-Apr-06 at 09:30

            How to calculate the RSSI value in Veins, the calculation method and theoretical formula look different, find the codes as follows, but did not understand, looking forward to help.

            ...

            ANSWER

            Answered 2021-Apr-06 at 09:30

            I don't know what you are assuming is the "theoretical formula" to calculate RSSI. I am assuming you are asking about how Veins calculates received power based on transmit power of a signal. As of Veins 5.1, the calculations roughly follow a typical link budget equation, taking into account transmit power, antenna gains, as well as various loss effects. One of these is path loss; the most simple path loss model, free space path loss, is being modeled by its SimplePathlossModel: Here, the attenuation is computed as , which (for alpha=2) mirrors the formula of free space path loss.

            Source https://stackoverflow.com/questions/66954736

            QUESTION

            How can I perform unicast communication in Veins?
            Asked 2021-Apr-04 at 16:25

            While looking for various information on Stackoverflow, I read that Veins 5.x and above support Unicast communication.

            I understood that unicast communication is possible through populateWSM(). However, I don't understand which LAddress::L2Type rcvId should be in the ID value of the second parameter.

            Should I pass the ID value obtained through

            ...

            ANSWER

            Answered 2021-Apr-04 at 16:25

            The demo implementation of Veins 5.1 uses the OMNeT++ module ID. For more robustness, I would recommend querying the MAC layer. See, for example, https://github.com/sommer/veins/blob/veins-5.1/src/veins/modules/application/ieee80211p/DemoBaseApplLayer.cc#L83

            Source https://stackoverflow.com/questions/66934864

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install veins

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link