I would like to know how could I create a wireless communication between a car and a pedestrian (V2P) in Veins?
Thanks a for your attention.
Veins allows to specify a module for a vehicle type it gets from SuMO: Veins Multiple Applications in multiples Vehicle types
You have to setup your network and pedestrians according to the SuMO wiki and then configure the corresponding module in Veins.
Related
I am trying to use SUMO in my MATLAB VANET simulator, and as per my understanding, SUMO is a standalone mobility simulator which can simulate different mobility models such as: car following (platoon), lane changing and traffic intersections.
On the other side, the VANETs applications shall make use of the VANETs protocol messages (Beacon messages or EMG or whatever) and take actions based on these infos and update the vehicles' mobility as well.
I am already familiar with veins and plexe frameworks which already make use of SUMO via TraCI, however I can't understand the big picture for how they affect mobility in SUMO!
For instance, in Plexe framework, sumo configuration files with vehicle routings can be loaded in SUMO and simulate the platoon scenario itself, so what is the value added from using VANETs protocol messages?
The same for lane changing simulation, SUMO will perform lane change for vehicles based on certain conditions, so what have the VANET simulator to add using the VANETs protocol messages?
in Plexe framework, sumo configuration files with vehicle routings can
be loaded in SUMO and simulate the platoon scenario itself, so what is
the value added from using VANETs protocol messages?
Cooperative Adaptive Cruise Control (CACC) requires information about what the preceding vehicle plans to do (as opposed to simply observing what the preceding vehicle is doing). This is only possible if the preceding vehicle communicates its plans wirelessly. Plexe makes it possible to simulate the fact that this wireless exchange of information...
takes some time and causes some load on the channel which, in turn, depends on the amount of information exchanged by other vehicles
can lose information if...
vehicles are too far away
vehicles are (partially) hidden behind obstacles
vehicles receive multiple transmissions simultaneously
(any many more effects)
All of this is simulated by a wireless network simulation made possible by the simulation models of Plexe and Veins running in OMNeT++.
I'm making a project where temperature and humidity levels are sensored by Arduino and send those data to AWS with ESP-8266-01s. At the same time, those data are also shown on the web application (it may be on Node.js/Java, etc.).
So what I'm asking is how the architecture should be. What is the best practice? Does AWS also provide a web app where I can use it for both database cloud as a web application or should I make a separate project as a web app to connect to AWS?
I searched on Google but the only answers I can find are two ways: Arduino and AWS without another aspect connected to it in my case the web app.
Make use of MQTT protocol.
Components required -
Pubsubclient.h library on esp8266 that will be used to publish temp and humidity data to MQTT Broker on AWS
mosquitto MQTT broker setup on AWS used to accept data from esp8266
Python script that will subscribe to data from the mosquitto broker and dumps into any database(my suggestion is influxdb)
Graphing platform to query database and display visual timeseries-graphs(my suggestion grafana)
Use AWS only for purchasing a virtual machine. Rest can be taken care using open-source Platforms.
Assuming you want to display graphs of temperature and humidity, Using grafana is the best practice.
You will not find a silver bullet here. A proper architecture for your case depends on many things and there can be different approaches with their own pros and cons.
There are many aspects to cover including connectivity, security, update, availability, costs.
Usually IoT devices are not connected directly to the cloud, because they don't have a constant connection, or any network connection. There is a hub (or middleware) that collects data from sensors/devices and send them to the cloud for processing.
But many cloud vendors provide some out of the box complex solutions here (including AWS).
I listed just examples.
we work on a AVL (automatic vehicle location) project.
we will have about 300000 vehicle that send their activity info with GSM (Simcard) modem over TCP protocol.
we have a listener developed by C++ that listens to a specific port.
at the moment, we have about 20000 GPS Devices that communicate data with C++ listener on one specific port.
some times many devices wait until port be free. we should have a scalable listener.
is any better solution for this case. i saw some usages of Node.js for same case.
my questions :
1:what is your idea?is Node.js good approach?
2:how design and implement a listener with node.js?
3:any other solution?
I would look on some actor model framework, this will allow your application to scale much better, and have higher throughput (but maybe lower latency), if you have a listener at specific endpoint, this is also a potentially a SPOF (Single point of failure) and also single point of bottleneck(Potentially). The solution depends on the requirements for HA, HR, Scaling and performance and other metric's.
I have now idea regarding actor toolkit for node, here is a github page:
https://github.com/benlau/nactor
How can we play multi player game by connecting two devices through WiFi?
How data transfer will happen between two devices using wifi but not in bluetooth?
Here's Apple's example how to transfer data between two devices via Wi-Fi: WiTap.
using ad-hoc networking features of GKSession. The app both advertises itself on the local network and automatically connects to available peers, establishing a peer-to-peer network.
For the record as we are all discovering and for the sake of completeness (or continuation) of this article...IOS 7.0 dumps the whole GKSession thing and now uses the multipeerconnectivty framework. Some say its more complicated, but give it some time and look and understand some of Apple's examples and it's really not bad at all.
Is there any open source(it may be c,c++ and java) for machine to machine communication ?
I would like to make communication between my hospital ECG device and my pc.
Serial port with Linux platform
Thanks
-Anlon
M2M is a generic term. there is no standard protocol or medium to implement a machine-to-machine communication. thus ou have to search for yourself which communication mean would best fit your need, depending on your device.
basically any communication channel can be considered a m2m channel: serial port, usb port, ethernet, also gsm/sms for gsm enabled devices. as for the protocol, it depends on the protocol used by your device (you won't be able to modify your ecg device to fit a specific protocol of your choice, you will have to stick to what format the data comes out of your device).
There's currently an initiave at Eclipse Foundation to start to gather efforts around Open Source M2M and 2 projects from this initiative are starting: 1 about tooling (Koneki) and 1 about M2M protocol (Paho).
You might be interested in trying out Mihini, a project recently added to the Eclipse M2M initiative that provides an open-source embedded framework for M2M. It allows to really easily do serial communication with Linux.
I don't know what protocol your ECG is talking, but there's e.g. built-in support for the Modbus protocol in Mihini.