Advantech RSB-4210 Evaluation Kit Bedienungsanleitung Seite 85

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 104
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 84
77 RSB-4210 User Manual
Chapter 3 Software Functionality
printf("Receive data: ");
for(i =0; i<8 ;i++)
{
printf("%d ",frame.data[i]);
if(frame.data[i] != test_pattern[i])
{
printf("CAN Bus Error\n");
return 1;
}
}
printf("\n");
}
}
}
else /*relay packet*/
{
int nBytes;
while(1)
{
if ((nBytes=read(s,&frame, sizeof(struct
can_frame))) < 0) {
perror("read");
return 1;
} else {
printf("Receive data: ");
for(i=0;i<8;i++)
printf("%d ",frame.data[i]);
printf("\n");
write(s, &frame, sizeof(struct can_frame));
}
}
}
close(s);
return 0;
}
(More detail please reference "source/linux-2.6.35.3/Documentation/networking/
can.txt")
3.11.5 SD card /iNand /USB Disk/SATA Disk
SD-Cards, iNand, USB, and SATA Mass Storage devices are not mounted automati-
cally in Linux systems. In order to access them, they have to be mounted manually
from the console, using their devices nodes. The SD Card and iNand can be found
under /dev/mmcblk0 and /dev/mmcblk1. its single partitions are located under /dev/
mmcblk0pX with X being a positive number. The USB and SATA mass storage
devices can be found under /dev/sdX with X=a..z, its single partitions under /dev/
sdXY with Y being a positive number as table below:
Seitenansicht 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 103 104

Kommentare zu diesen Handbüchern

Keine Kommentare