摘要:
can测试-refer to ok6410自带例子//server.c
//server.c
#include #include #include #ifndef PF_CAN
#define PF_CAN 29
#endif #ifndef AF_CAN
#define AF_CAN PF_CAN
#endif int main()
{ int s; unsigned long nbytes,len; struct sockaddr_can addr; struct ifreq ifr; struct can_frame frame; s = socket(PF_... 阅读全文