<div dir="ltr"><div><div>A new topic to the list :)<br><br></div>- Write netlink api for access with iproute2<br><br></div>Cheers, <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-18 17:21 GMT-03:00 Daniel. <span dir="ltr"><<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi all!<br><br></div>I have a driver for nordic nRF24L01+ module: <a href="http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P" target="_blank">http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P</a><br><br></div>I'm looking for a requirements list of what I need to do. For now I have this topics<br><br></div>- Write driver using kernel NAPI (I already have a driver working with cdev API)<br></div>- Write new protocol and export to userspace as a new socket type (no ideia on this)<br><br></div>As example I'm using the linux socketCan, I want to do like they did, but with nRF24L01+. I have no ideia how this two topics touch one each other... Any documentation, simple examples, tutorials, guide lines, articles or irc chat on subject is welcome, I look on LDD3, but its outdated, I'm using kernel 3.0 for development, <br><br></div><div>As first version requeriment I want to send frames (32 bytes fixed) with sendto() and receive (32 bytes fixed too) with recvfrom()... Messages should be enqueued while sending, the driver need to iterate over a circular list of remote nodes, exchaning frames and delivering the received to userspace... <br><br></div><div>Something like:<br></div><br></div><div>for (;;) {<br></div><div> node *n = get_next_node();<br></div><div> send_frames_to(n); // <- send enqueed frames, unblocking sendto() caller<br></div><div> receive_frames_from(n); // <- deliver received frames to recvfrom() caller<br>}<br></div><div><br>Thanks in advance!<br></div>Cheers<span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div><div><div><div><div><div><div><br>-- <br><div><div style="text-align:right"><i>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</div></div></div></div></div></div></div></div></div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div style="text-align:right"><i>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</div>