Hi,
reading blog about sniffing NRF24 data with wireshark [1] I wondered if
would be possible to use sigrok in conjunction with Wireshark. Basically
I would like to use wireshark to dissect my traffic say on an SPI line.
In one case I have a device that transfers ethernet data over SPI. But
while developing the linux driver for this SPI device I also would like
to be able to see the SPI protocoll to work as expected... For this use
I cannot imagine to work with sigrok alone - simply because I would not
bother to implement an ethernet decoder for it ;)
So maybe there is an easy solution available already. Otherwise this
should be a discussion about how to implement such a feature... I
already had a start reading and understanding the sigrok code and am
willing to implement such a feature.
A minimalistic example of how to get data into wireshark from external
programs is: (Tested on ubuntu 14.04)
wireshark -k -i <(echo -e
"\xD4\xC3\xB2\xA1\x02\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF\xFF\xFF\x93\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x10\x00\x00\x00\x41")
This passes wireshark the pcap header (struct pcap_hdr in [2]), the
header of the actual packet (struct pcaprec_hdr in [2]) and "0x41" as
the content of this packet. Wireshark opens with displaying that packet
with "A" as the only content.
Generally the full duplex nature of SPI could be a problem for
wireshark... I have never seen any implementations of high level
protocols that use SPI in full duplex, usually they switch between tx
and rx in some point of the transmission. But just from watching the SPI
you are not able to know where this point is. Therefore one might need
to use a sigrok high level decoder to be useful with wireshark...
Any comments how I can combine sigrok with wireshark are welcome.
[1] http://hackaday.com/2014/08/05/sniffing-nrf24l01-traffic-with-wireshark/
[2]
https://github.com/Yveaux/NRF24_Sniffer/blob/master/SerialToPipe/src/Nrf24Sniff/Nrf24Sniff.cpp
Mit freundlichen Grüßen / Kind regards
Christian Aurich
--
Leiter Entwicklung / Chief Technical Officer
I2SE GmbH Tel: +49 (0) 341 355667-00
Friedrich-Ebert-Str. 61 Fax: +49 (0) 341 355667-02
04109 Leipzig
Germany
Web: http://www.i2se.com/ Mail: [email protected]
VAT No.: DE 811528334
Amtsgericht Leipzig HRB 23784
Geschäftsführer/CEO: Carsten Ziermann
*** Diese E-Mail ist allein für den bezeichneten Adressaten bestimmt. Sie kann
rechtlich vertrauliche Informationen enthalten. Wenn Sie diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte unverzüglich den Absender per
E-Mail und löschen Sie diese E-Mail von Ihrem Computer, ohne Kopien
anzufertigen.
Vielen Dank. ***
*** This email is for the exclusive use of the addressee. It may contain
legally privileged information. If you have received this message in error,
please notify the sender by email immediately and delete the message from your
computer without making any copies.
Thank you. ***
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel