Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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.
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
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 ?
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.
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.
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
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
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)
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 (attached), am i doing something wrong ? Note, if i remove the 'alignment' line, the parser jumps bytes from field to field... Please help Thanks!