Advantech RSB-4210 Evaluation Kit Manuel d'utilisateur Page 85

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 104
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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:
Vue de la page 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 103 104

Commentaires sur ces manuels

Pas de commentaire