Muhammad-Arafat @muhammad-arafat ?

active 8 years, 11 months ago
"“A” demoapp is woking.." · View
  • Muhammad-Arafat posted a new activity comment:   9 years, 4 months ago · View

    Honestly, I don’t know if I can get you out of this. But I did face such problems before and a fresh installation worked out for me pretty well..

    Sorry.

    In reply to - Hammi-Badis posted an update: HI guys: sorry for the delay I was in travel, so what do I must do to install it because I use ns3.10, must I use ns3.7, other question; in the manual they demand to execute WAF with debug option ”./waf -d debug configure” and ”./waf install” after that but they don’t [...] · View
  • Muhammad-Arafat posted a new activity comment:   9 years, 4 months ago · View

    Hello again,
    the errors ns-3 is facing are probably due to C++ compiler version, try the following commands:
    CXX=”g++-4.4” ./waf -d debug configure
    and
    CXX=”g++-4.4” ./waf install

    As for how would you know if you had well installed your iTETRIS, you may try to build the demo app provided with the platform. You will face some problems, however most of them have been covered within this community.

    Good Luck,

    Muhammad

    In reply to - Hammi-Badis posted an update: HI guys: sorry for the delay I was in travel, so what do I must do to install it because I use ns3.10, must I use ns3.7, other question; in the manual they demand to execute WAF with debug option ”./waf -d debug configure” and ”./waf install” after that but they don’t [...] · View
  • Muhammad-Arafat posted a new activity comment:   9 years, 4 months ago · View

    Hello Hammi,

    using ns3.7 is a must.

    here’s a quick tutorial of what you need to do:(remember using root user privileges)
    1) build ns3.7
    – you may use the python script ./build.py in the main folder of ns-3 (typically named ns-allinone-3.7)
    – or you may use waf commands you mentioned in ur post inside the folder(ns-allinone-3.7/ns-3.7/ )

    2) patch the installed ns: (inside the same folder where you could use ”waf”).

    3) rebuild ns3: but this time USING waf commands.

    Good Luck..

    Note: if you want to uninstall your ns3.10, I think you can use ./waf uninstall

    In reply to - Hammi-Badis posted an update: HI guys: sorry for the delay I was in travel, so what do I must do to install it because I use ns3.10, must I use ns3.7, other question; in the manual they demand to execute WAF with debug option ”./waf -d debug configure” and ”./waf install” after that but they don’t [...] · View
  • Muhammad-Arafat posted a new activity comment:   9 years, 4 months ago · View

    the folder is:
    (path_to_ns3_main_folder)/ns-3.7/

    In reply to - Hammi-Badis posted an update in the group Bug reports : Hi members, I want to install ITETRIS, so I installed Sumo and NS3, after that I Installed ICS, all works well: configure, make and install, but after that when I try to patch ns3 it shows lot of fails and when I try to do ./waf install it [...] · View
  • Muhammad-Arafat posted a new activity comment:   9 years, 4 months ago · View

    Hi Hammi,

    First you need to make sure that you are applying the patch with an admin privileges. you can try ”sudo”, I, myself, would rather use ”su”

    then you have to apply the patch in the following folder:
    /ns-3.7/

    Good Luck..

    In reply to - Hammi-Badis posted an update in the group Bug reports : Hi members, I want to install ITETRIS, so I installed Sumo and NS3, after that I Installed ICS, all works well: configure, make and install, but after that when I try to patch ns3 it shows lot of fails and when I try to do ./waf install it [...] · View
  • Muhammad-Arafat posted an update in the group Bug reports:   9 years, 5 months ago · View

    Hi,
    I’ve been trying to use the subscription ”SUB_RECEIVED_CAM_INFO”, but I keep getting this error message:

    STEP 4 – SETUP PHASE
    Error: Invalid argument: Storage::readChar(): invalid position
    iCS –> #Error while receiving response from Application: tcpip::Socket::receive() @ recv: Success

    I added some similar code to Server::LookForNewSubscriptions:

    bool
    Server::LookForNewSubscriptions() {
    int timestep = myInputStorage.readInt();
    int nodeId = myInputStorage.readInt();

    // create reply message
    writeStatusCmd(CMD_ASK_FOR_SUBSCRIPTION, APP_RTYPE_OK, ””);

    if (!ApplicationLogic::m_camAreaIsSet) {
    Area area = ApplicationLogic::GetCamArea();
    SubsSetCamArea(myOutputStorage, nodeId, timestep, area);
    } else if (!ApplicationLogic::m_returnCarAreaIsSet) {
    Area area = ApplicationLogic::GetReturningCarArea();
    SubsReturnCarsInZone(myOutputStorage, nodeId, timestep, area);
    } else if (!ApplicationLogic::m_returnCamMessagesInfoIsSet) {
    bool flag = ApplicationLogic::SetCamInfoFlagToTrue();
    SubsReceivedCamInfo(myOutputStorage, nodeId, timestep);
    } else if (ApplicationLogic::m_camAreaIsSet && ApplicationLogic::m_returnCarAreaIsSet && ApplicationLogic::m_returnCamMessagesInfoIsSet) {
    StopAskingForSubscription(myOutputStorage, nodeId, timestep);
    }

    return true;
    }

    and here’s the function that forms the second primitive of the reply:

    bool
    Server::SubsReceivedCamInfo(Storage& myOutputStorage, int nodeId, int timestep) {
    // command length
    myOutputStorage.writeUnsignedByte(1 + 1 + 1);
    // command type
    myOutputStorage.writeUnsignedByte(CMD_ASK_FOR_SUBSCRIPTION);
    // subscription type
    myOutputStorage.writeUnsignedByte(SUB_RECEIVED_CAM_INFO);

    return true;
    }

    I can’t see where I went wrong.. I even checked how iCS receives this primitive, and it was just three unsigned bytes.

    please help me,

    Kind Regards,
    Muhammad

  • Muhammad-Arafat joined the group Bug reports   9 years, 5 months ago · View

  • Muhammad-Arafat posted an update:   9 years, 5 months ago · View

    ”A” demoapp is woking..

  • Muhammad-Arafat posted a new activity comment:   9 years, 5 months ago · View

    Hi,

    I was able to run a ”demo” application on the environment. This ERROR: iCS –> [ERROR] ProcessApplicationResults() has been being produced because there is no result container class defined for ”OUTPUT_SET_SPEED_ADVICE_DEMO”, and this definition should be done in iCS side..

    Here’s what I did and I’m not sure it meant anything as an ITS Application, but it just makes sure that the environment is working..

    for other kind of errors, you can take a look at this post and the replies, they might be helpful: http://www.ict-itetris.eu/10-10-10-community/members/lukas-worle/activity/108/

    Now for the iCS –> [ERROR] ProcessApplicationResults(), do the following:

    in application-config-file.xml, use the following result container ”OUTPUT_SET_VEHICLE_MAX_SPEED”

    in server.cpp, add before line 242 the following:
    v.speed =0;
    also in server.cpp, line 266, add ”4” before ”4 + 1 + 1” to represent the number of messages.
    also in server.cpp, line 287, 294 payload length is ”4” not ”10”

    in application-logic.cpp, uncomment line 137, and comment 138.

    now you can recompile and run iCS -c itetris-config-file.xml

    Best of Luck,
    Muhamamd.

    In reply to - Muhammad-Arafat posted an update in the group Setup Support : Dear all, First I would like to thank Mr. Lukas Worle for his informative contributions. Actually I encountered the same problems when running the demo app and the solutions he provided worked. However, I’m still stuck with the problem of ”demoapp: not found”. I did the symbolic link [...] · View
  • Muhammad-Arafat posted an update:   9 years, 6 months ago · View

    Can someone please explain the difference between the following subscriptions?

    SUB_TRAVEL_TIME_ESTIMATION_START
    SUB_TRAVEL_TIME_ESTIMATION_END
    SUB_TRAVEL_TIME_ESTIMATION

    Regards,
    Muhammad

  • Muhammad-Arafat posted a new activity comment:   9 years, 6 months ago · View

    Just found an answer.

    through the TraCi command: ”TraCI/Vehicle Value Retrieval”, we can get those info for a specific vehicle, using its id…

    please, if somebody knows better, it is more than appreciated. :)

    In reply to - Muhammad-Arafat started the forum topic A question about SUMO in the group Setup Support: Hello, Could you please help me finding an answer for the following: “Can SUMO outputs the emissions & fuel consumptions for a SPECIFIC vehicle on the map??” · View
  • Muhammad-Arafat started the forum topic A question about SUMO in the group Setup Support:   9 years, 6 months ago · View

    Hello,

    Could you please help me finding an answer for the following:
    “Can SUMO outputs the emissions & fuel consumptions for a SPECIFIC vehicle on the map??”

    • Avatar Image
      Muhammad-Arafat · 9 years, 6 months ago

      Just found an answer.

      through the TraCi command: ”TraCI/Vehicle Value Retrieval”, we can get those info for a specific vehicle, using its id…

      please, if somebody knows better, it is more than appreciated. :)

  • Muhammad-Arafat posted a new activity comment:   9 years, 6 months ago · View

    Hello Julen, were you ever able to figure out how to solve this problem?? We have just adopted iTETRIS, and it would be nice if I were able to run the demo app for my professor.

    Kind regards,
    Muhammad.

    In reply to - Manfred-Schoenheits posted an update in the group Bug reports : Hello everyone, i´m having almost the same problem, but i also get a segmentation fault when running the demo application: STEP 8 – SIMULATION PHASE – Tics = 100 GeoRoutingProtocol: RouteOutput => geounicast UTILS: distance of neighbor 0 to destination = 13.1529 UTILS: the min dist to dest [...] · View
  • Muhammad-Arafat posted a new activity comment:   9 years, 6 months ago · View

    I got it working. The workaround should be done in /usr/local/bin.

    Now I’m facing the same problem:

    STEP 8 – SIMULATION PHASE – Tics = 100
    GeoRoutingProtocol: RouteOutput => geounicast
    UTILS: distance of neighbor 0 to destination = 13.1529
    UTILS: the min dist to dest = 13.1529 and is provided by node 0
    iCS –> [ERROR] ProcessApplicationResults()

    Regards,
    Muhammad.

    In reply to - Muhammad-Arafat posted an update in the group Setup Support : Dear all, First I would like to thank Mr. Lukas Worle for his informative contributions. Actually I encountered the same problems when running the demo app and the solutions he provided worked. However, I’m still stuck with the problem of ”demoapp: not found”. I did the symbolic link [...] · View
  • Muhammad-Arafat posted an update in the group Setup Support:   9 years, 6 months ago · View

    Dear all,

    First I would like to thank Mr. Lukas Worle for his informative contributions. Actually I encountered the same problems when running the demo app and the solutions he provided worked.
    However, I’m still stuck with the problem of ”demoapp: not found”. I did the symbolic link (ln -s itscoopdemoapp demoapp) and changed the value of the executables in the application-config-file.xml to (demoapp -c itscoopdemoapp-config-file.xml) but still facing the same problem..

    Can anybody please help me??

    many thanks in advance,

    • Avatar Image
      Muhammad-Arafat · 9 years, 6 months ago

      I got it working. The workaround should be done in /usr/local/bin.

      Now I’m facing the same problem:

      STEP 8 – SIMULATION PHASE – Tics = 100
      GeoRoutingProtocol: RouteOutput => geounicast
      UTILS: distance of neighbor 0 to destination = 13.1529
      UTILS: the min dist to dest = 13.1529 and is provided by node 0
      iCS –> [ERROR] ProcessApplicationResults()

      Regards,
      Muhammad.

      • Avatar Image
        Muhammad-Arafat · 9 years, 5 months ago

        Hi,

        I was able to run a ”demo” application on the environment. This ERROR: iCS –> [ERROR] ProcessApplicationResults() has been being produced because there is no result container class defined for ”OUTPUT_SET_SPEED_ADVICE_DEMO”, and this definition should be done in iCS side..

        Here’s what I did and I’m not sure it meant anything as an ITS Application, but it just makes sure that the environment is working..

        for other kind of errors, you can take a look at this post and the replies, they might be helpful: http://www.ict-itetris.eu/10-10-10-community/members/lukas-worle/activity/108/

        Now for the iCS –> [ERROR] ProcessApplicationResults(), do the following:

        in application-config-file.xml, use the following result container ”OUTPUT_SET_VEHICLE_MAX_SPEED”

        in server.cpp, add before line 242 the following:
        v.speed =0;
        also in server.cpp, line 266, add ”4” before ”4 + 1 + 1” to represent the number of messages.
        also in server.cpp, line 287, 294 payload length is ”4” not ”10”

        in application-logic.cpp, uncomment line 137, and comment 138.

        now you can recompile and run iCS -c itetris-config-file.xml

        Best of Luck,
        Muhamamd.

        • Avatar Image
          Mervat · 8 years, 6 months ago

          Hello Muhammad,

          I’ve tried this workaround, but it’s still giving me the same error. I even made a fresh make of the demo app, but still nothing. Any ideas what I may be doing wrong?

          Thanks in advance, your help on this is greatly appreciated!
          Mervat

  • Muhammad-Arafat joined the group Setup Support   9 years, 6 months ago · View