Git Product home page Git Product logo

Comments (4)

riebl avatar riebl commented on June 6, 2024

Hi @danieladriano,

I have just checked GBC reception with DenService which seems to be working as intended. Hence, I do not assume that anything is severely broken. Did I understand you correctly that only the communication between RSUs and vehicles is broken but among the same type is working? Maybe the security entity is configured differently and thus dropped by one of them? You can check this by looking at node[x].vanetza (and rsu[x].vanetza) if SecurityEntity is present.

Regards,
Raphael

from artery.

danieladriano avatar danieladriano commented on June 6, 2024

Hi @riebl ,

In my service, when the message have the vehicle as origin and a RSU as destine, the communication via GBC don't work. But the inverse (RSU to Vehicle) its working and V2V too.

If I change from GBC for SHB, the communication works fine.

About the security entity, I don't have SecurityEntity set at node[x].vanetza or rsu[x].vanetza.

This is my code for send a packet from vehicle to RSU.

void VehicleService::sendPacket(cPacket* packet)
{
    btp::DataRequestB req;
    req.destination_port = host_cast<VehicleService::port_type>(getPortNumber());
    req.gn.transport_type = geonet::TransportType::GBC;
    req.gn.traffic_class.tc_id(static_cast<unsigned>(dcc::Profile::DP1));
    req.gn.communication_profile = geonet::CommunicationProfile::ITS_G5;

    geonet::Area area;
    area.shape = geonet::Circle();

    using units::si::meter;
    geonet::Circle destination_shape;
    destination_shape.r = 100.0 * meter;
    area.shape = destination_shape;

    area.position.latitude = opLatitude;
    area.position.longitude = opLongitude;
    req.gn.destination = area;

    request(req, packet);
}

Thanks for the helping.

Regards,
Daniel

from artery.

riebl avatar riebl commented on June 6, 2024

Okay, based on your detailed problem description I have been able to find and fix the problem.
I don't want to close this issue ticket, however, because I would like to have a test case to prevent this issue in the future. Any ideas are welcome.

from artery.

danieladriano avatar danieladriano commented on June 6, 2024

Hi @riebl ,

Thanks for the help and the bug fix. I will test my application again and give you a feedback.

I have no experience with test cases, but if I have any ideas, I will pass on to you.

Thanks again.

Regards,
Daniel

from artery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.