Hi - I used the /dev/scc devices in earlier kernels but am now using
2.6.9 and things have changed a lot.
The scc driver module is built, installed, loads and I can talk to it
using the sccstat program - but I don't know what the API is to send
and receive raw HDLC frames!
I open the device by using the socket() call:
int fd = socket(AF_AX25,SOCK_DGRAM,0);
This succeeds (gives fd > 0).
A write() of two bytes (eg. a SNRM to address 0x55) fails with:
Cannot assign requested address
from perror().
----
Does anyone have an example source file that simply opens the
/dev/scc0 device and sends and receives a frame???
----
I am missing some infomation and just need a kick in the right
direction.
Cheers,
Nick.
|