Navigation

    IO Ninja IO Ninja Forum
    • Register
    • Login
        No matches found
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Chaim Cohen
    3. Posts
    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by Chaim Cohen

    RE: Packet template 'alignment' issue

    Hi Again,
    Thanks for the above scripts it really works great !!!
    I've presented the protocol analyzer i did to a big forum in out company, and a few question came up.

    1. We would like to add this tool as part of our nightly build and validation process. Once a new build is created and deployed to a target, we'd like a way to run the IONinja via a batch file (running some command lines), load the protocol analyzer open the port and start recording the session. Is it possible to run the IONinja tool via an external API /commandline ? if so, can you send me an example how ?
    2. The protocol analyzer is written in Jancy language. Is there an ability to access in Jancy APIs from DLLs created in C++ or Python ?
    3. Can you activate in Jancy a batch file and do some manipulation on the bytes received ? i.e. pass the received bytes as an argument to a batch file, and get an answer from the batch file ?
      Many thanks
      Chaim
    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Hi,
    I tried to modify the 'scripts/common/log_RepresentStruct.jnc' to support nested structures with no success.
    Can you please send me a modified version of 'scripts/common/log_RepresentStruct.jnc' that supports nested structures.
    It will be a big help.
    Thanks

    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Hi,
    Thanks for your reply, indeed i had a parsing bug in my code... fixed it and now i'm able to see parsed packets in the log 😊.
    I'm using the log.representStruct to print a stucture in the log, cool stuff !!!
    Say you have a structure that contains another stucture and so on for a few levels. Is there a way to use the 'representStruct' recursively, so all inner struct will be formatted too ?

    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Ok, to me it was very unclear, and took me a while to figure that out...

    In any case, i was able to create a new protocol analyzer according to the help provided in - https://ioninja.com/doc/developer-manual/tutorial-plugin-analyzer.html
    I've added the plugin to IO Ninja (using the settings dialog), and add the new plugin as a layer on top of 'Serial Tap'.
    We are using a IO Ninja serial Tap device to sniffer serial packets (we use TTL).
    I'm able to see the packet flow when the serial tap is connected, however, i wasn't able to see the protocol analyzer plugin working... the plugin parses the incoming data, and when a full packet is completed is sends a formatted string to the logger (just as done in the tutorial).
    Is there something i'm missing ?
    Many thanks.

    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Hi,
    I managed to solve the issue.
    There is a typo in the tutorial page (https://ioninja.com/doc/developer-manual/tutorial-plugin-analyzer.html).
    The user should open NetBeans IDE for creating a new project, and not the IO Ninja IDE...
    Please update.

    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Thanks for your reply.
    I'm looking at the tutorial you pointed to, on how to create a protocol analyzer.
    However, i could find in the IO-Ninja IDE how to create a new IONinja project... there is no menu 'File->New Project' only 'File->New Session...'. Was the IDE changed recently ? Can you please guide me how to do it with the current IONinja IDE.
    Thanks

    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Thanks for your reply.
    From what you wrote, i understand i'm using the wrong tool, since i want to analyze incoming packets and log then to a log or display them at runtime, and not build packets before sending them...
    Can you please suggest a way to do so, and provide an example i can use ?
    Thanks

    posted in Support & Troubleshooting •
    RE: Packet template 'alignment' issue

    Thank you very much, it works now with the updated syntax. Would be great if the tutorial would be updated too :-)...
    In the protocol we are trying to trace with the IO Ninja, each packet has a different size. According to the packet type/size the data structure is different. Is it possible to create such a template that can display different data structure according to the packet type ?
    If so, can you send me an example of such a template.
    If not, is there a way to do ?

    Here is how out packet looks like:
    pragma(Alignment, 1)

    struct FE_BE_Packet
    {
    uint8_t StartOfPacket;
    uint16_t Length;
    uint8_t MessageID;
    uint16_t GlobalSequenceNumber;
    uint16_t MessageSequenceNumber;
    char MessageData[70];
    uint16_t CheckSumData;
    }
    The 'MessageData' is the one that keeps changes (size and content)

    posted in Support & Troubleshooting •
    Packet template 'alignment' issue

    Hi,
    I'm evaluating the usage of IO Ninja as a COM sniffer between 2 processors. I'm trying to create a Packet template in order to quickly parse packets. I'm using the help provided in https://ioninja.com/doc/developer-manual/tutorial-ias-packet.html. However, when i add the 'alignment(1);' line at the beginning of the new template i'm writing and click 'OK' i get the following error IO_Ninja_TemplatePacket_Error.jpg (attached), am i doing something wrong ?
    Note, if i remove the 'alignment' line, the parser jumps bytes from field to field...
    Please help
    Thanks!

    posted in Support & Troubleshooting •