Brummbar wrote: ↑
Mon Aug 26, 2019 9:23 am
I would like to use a Raspberry Pi as a DCC Packet Sniffer (Packet Analyzer). I am new to Raspberry Pi's and would very much appreciate any and all help offered.
I have built an Arduino DCC signal shield before; so, I am familiar with the DCC-to-5v, 6N137 Opto-Coupler circuit; although, not interfacing it to a Raspberry Pi.
This would be a very useful tool for me and others I believe.
The gpio on all Pi are 3.3v not 5v and will be damaged if fed 5v so you may need a different optocoupler.
The next problem is that unlike an arduino, a pi is not a hard realtime system. There's a lot of background processes running that may cause problems with the timing and interrupt handling needed for decoding.
I've considerd doing something similar but haven't got beyond that stage. What I was going to do was use a cheap chinese clone of an arduino nano to handle the actul decoding and pass the decoded packets to the pi via a serial connection.
Attempts to contact me outside of thes forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters