I was wondering if someone has any info about how to implement a link layer portocol which uses the GPIOs (for example in a Raspberry Pi).The idea is to implement a custom interface (similar to eth0) which would be point-to-point and when a message is sent through that interface instead of calling the ethernet module, my new kernel module (device driver) would be called which would use the GPIOs to send the packet.I would like to know some stuff:Does anyone know of any book/paper/... with an example of something similar or info I would need to know? I found quite a lot of stuff on kernel modules and so, but nothing about connecting the new interface with the kernel module.Does it need to be implemented with TCP/IP if I want it to appear as a new interface? (I suppose the answer is yes)My research lead me to some interesting webpages:Device driver implementation example for raspberry pi (controlling GPIOs).RFC1149 ImplementationBut still I'm quite lost when it comes to the interface implementation part, and how to connect it to the driver. So when I do a ping using the new interface, it sends the IP Packet to my device driver, so I should encapsulate it and send it through my hardware.Thanks, hope to get some answers!
Custom link layer protocol in UNIX
linux;drivers;kernel modules;network interface;c