The TraCI protocoll already supports retrieving custom information from vehicle devices via a TCP socket communication. Please take a look at the implemenetation of MSDevice_Battery::getParameter and MSDevice::setParameter. Accessing device parameters via traci is done like this: traci.vehicle.getParameter(vehID, "device.battery.energyConsumed") instead of 'battery' you will have to use the name that has been declared in the constructor of your new device.
regards, Jakob 2017-12-28 16:31 GMT+01:00 Sagaama Insaf <sagaama.in...@gmail.com>: > Dear all, > -I have developed a new energy model device in sumo-0.30.0 version. > -I have built "project <SUMO>\build\msvc10\prj.sln" with "visual studio > express 2013 for windows desktop". > > Next, I want to make each vehicle in SUMO sends each instantaneous energy > consumed to a server via TCP socket communication. > > Which Class of SUMO code should I modified ? > > -- > My B > est regards, > SAGAAMA Insaf. > > PhD student at CRISTAL Lab, RAMSIS Pole, ENSI- Tunisia. > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-devel mailing list sumo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-devel