Moxa V2426A-C2-W7E [38/88] Installing the epm dk02 kernel module

Moxa V2426A-C2-T [38/88] Installing the epm dk02 kernel module
V2400A Series Expansion Modules Software Installation and Programming Guide
4-18
if (nbytes < 0) {
perror("Error in can raw socket read");
return 1;
}
if (nbytes < sizeof(struct can_frame)) {
fprintf(stderr, "read: incomplete CAN frame\n");
return 1;
}
printf(" %5s %03x [%d] ", ifname, frame.can_id, frame.can_dlc);
for (i = 0; i < frame.can_dlc; i++)
printf(" %02x", frame.data[i]);
printf("\n");
return 0;
}
Installing the EPM-DK02 Kernel Module
Moxa’s EPM-DK02 module supports 2 mini PCIe sockets for connecting mini PCIe modules.
Socket 1, Physical interface: mini PCIe
Electrical interface: mini PCIe, USB 2.0.
Socket 2, Physical interface: mini PCIe
Electrical interface: USB 2.0.
EPM-DK02 Kernel Module
Upload the v2400a-dkcontrol_1.0.0_amd64.deb file to the target machine and use dpkg command to install
the package.
Moxa:/home# dpkg -i v2400a-dkcontrol_1.0.0_amd64.deb
Configuring Power Control
The EPM-DK02 and EPM-DK03 modules come with the capability to automate a modular device’s power status.
Note, however, that this function is provided primarily for powering on and off GPRS/HSDPA cards that use a
USB interface. It is NOT advisable to use this function with PCIe devices, because doing so may damage them.
WARNING
Us
ing the EPM-DK02’s or EPM-DK03’s onboard power controls to control PCIe or USB-DOM devices is not
recommended
. Using the onboard power controls for control of PCIe and USB-
DOM devices may damage the
devices (PCIe) or corrupt data (USB
-DOM). Any use of the EPM-DK02’s automated, onboard power
controls with PCIe and USB
-DOM devices is undertaken at the user’s own risk.
It is also not advisable to use the power control feature with USB DOM devices, because these devices involve
the mounting and unmounting of file systems, and while the Linux system will be able to automatically mount
the USB DOM file systems as they come online, without careful scripting it will not be able to automatically
unmount the file systems once the device goes offline.
The command for manipulating the PCIe card’s power feature is the mx-dkcontrol. The precise syntax is as
follows, with slot_number indicating the number of the card slot located on the EPM-DK02 or EPM-DK03 board
itself (note: slot_number does not refer to module slots on the V2400A computer itself):

Содержание

Похожие устройства

Скачать