Sc16Is7Xx: Rs232/Rs485 Driver (Optimized For Emview-7/Rpi3); 5.2.4.4 Rtc-Ds1307: Rtc - Janz Tec emVIEW-7/RPI3 Hardware Manual

Embedded computing touch panel
Table of Contents

Advertisement

emVIEW-7/RPI3 (Hardware and Software Manual) • Operating System and Drivers
This driver installation includes a SocketCan compatible driver. In the configuration file
/etc/network/interfaces the CAN device with the Linux device name can0 is enabled by default (bus-
on) and is configured to 500Kbit (bitrate 500000). To change the default bitrate, edit file
/etc/network/interfaces, change the bitrate parameter and restart your system.
Here are some can-utils examples:
Print incoming can frames:
pi@raspberry ~$ candump can0
Send random can frames:
pi@raspberry ~$ cangen can0
Show can bus load information:
pi@raspberry ~$ canbusload can0@5000000 -r -t -b -c
NOTICE
On high CAN-bus utilization, incoming CAN frames might get dropped because of an
overrun in the MCP2515 FIFO. To reduce the possibility of such overruns, we have
highly optimized the CAN and SPI drivers to receive incoming CAN frames significant
faster than the default mcp2515 Linux driver. As a result, even with high bus utilization,
baudrates up to 500Kbit/s can be used with (almost) no CAN frame drops. Because of
the limitations of the MCP2515 controller and the interrupt latency of Linux, the 1Mbit/s
baudrate is not recommend, when CAN frame drops cannot be accepted.

5.2.4.3 sc16is7xx: RS232/RS485 driver (optimized for emVIEW-7/RPI3)

By default, the emVIEW-7/RPI3 is configured to RS232 mode (Jumper J301 is set).
If you want to use RS485 mode, open the case as described in chapter 4 and remove the jumper J301
and check the following configuration:
pi@raspberry ~$ sudo nano /boot/cmdline.txt
When parameter RS485 is set to 2 (RS485=2), then 'automatic mode' is enabled. Starting with
hardware revision 1.1, this parameter sets RS232 or RS485 mode based on the jumper J301 setting
and no further manual software configuration is required. For older hardware revisions, manually
configuration as shown below is required.
Parameter RS485=1 enables the automatic RS485 RTS control mode and automatically controls the
RS485 transceiver direction for sending or receiving.
Parameter RS485=0 disabled the RS485 mode and enables normal RS232 operation.

5.2.4.4 rtc-ds1307: RTC

MCP7940N RTC is compatible with the rtc-ds1307 Linux driver (supported from kernel 3.19). The
emVIEW-7/RPI3 installation installs the RTC service, so that the RTC automatically sets the system
time on every boot.
Rev. 1.0
5 - 21
© Janz Tec AG

Advertisement

Table of Contents
loading

Table of Contents