CAN IoT Card driver


I got this CAN module

Is this the right tutorial for MangOH Red in order to get this CAN module to work?


Yes, it is.
Let us know if you have any issues


The link in step one is broken
"1. Download Legato Distribution Source Package from Sierra Wireless website:
Yocto Source (Around 3 GB)"


Thanks. Fixed the link. You need to pick the latest toolchain package


I have this «module. Do you have the schematic ? Not found on the web site.


Nope, same problem…


The link on the wiki is

Is this the problem?


Sorry Asyal, the link is ok, I ment the CAN module electrical schematic


I have builded the new yocto image to support the CAN IoT card. I not see in menu config a way to add can-utils. For example candump is very good utility to monitor can message. Any way to add it in yocto ??? Thanks



I have connected the CAN Iot card TALON to a can viewer.

I meet a problem.

I can send 1 can message only. The next message are not sent.
Any idea ??

This is my code (using socket CAN). Very basic…
Hello message is send but not the second message…

int can_loop(void)
struct ifreq ifr;
struct sockaddr_can addr;
struct can_frame frame;
int s;
memset(&ifr, 0x0, sizeof(ifr));
memset(&addr, 0x0, sizeof(addr));
memset(&frame, 0x0, sizeof(frame));
/* open CAN_RAW socket /
s = socket(PF_CAN, SOCK_RAW, CAN_RAW);
convert interface sting “can0” into interface index /
strcpy(ifr.ifr_name, “can0”);
ioctl(s, SIOCGIFINDEX, &ifr);
setup address for bind /
addr.can_ifindex = ifr.ifr_ifindex;
addr.can_family = PF_CAN;
bind socket to the can0 interface */
bind(s, (struct sockaddr )&addr, sizeof(addr));
first fill, then send the CAN frame */
frame.can_id = 0x23;
strcpy((char ), “hello”);
frame.can_dlc = 5;
write(s, &frame, sizeof(frame));
first fill, then send the CAN frame */
frame.can_id = 0x24;
strcpy((char *), “iCC2012”);
frame.can_dlc = 7;
write(s, &frame, sizeof(frame));
return 0;


// Run the before advertising the service to ensure that the CAN device is
// available before we allow it to be used.
char line[256];
FILE* fp = popen(" 2>&1", "r");
while (fgets(line, sizeof(line), fp) != NULL)
	LE_INFO(" output: %s", line);
int canInitResult = pclose(fp);
LE_FATAL_IF(!WIFEXITED(canInitResult), "Could not run");
const int canInitExitCode = WEXITSTATUS(canInitResult);
LE_FATAL_IF(canInitExitCode != 0, " failed with exit code %d", canInitExitCode);




I suspect a patch problem. I not use the patch for the Mangoh Red…
I must rebuild the yocto linux distro…


All is good now with the correct patch :slight_smile:


can you suggest links related LoRa expansion card ?
Not found any useful data related to it?
any documentation releted to it will be really useful