Sferalabs Strato Pi CAN Скачать руководство пользователя страница 22

CAN TERMINATION JUMPER POSITION

The MCP2515 is fully supported by the SocketCAN framework on Raspbian and other 
Raspberry Pi Linux distributions.

You can install the “can-utils” package to test CAN:

sudo apt-get update  

sudo apt-get install can-utils

 

Then setup the CAN interface at the appropriate speed, for example at 500 kbps:

$ sudo ip link set can0 up type can bitrate 500000 

You can now check that the CAN interface is up, and send or receive data:

sudo ifconfig

 

can0      Link encap:UNSPEC  HWaddr 

00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 

          UP RUNNING NOARP  MTU:16  Metric:1 

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 

          collisions:0 txqueuelen:10 

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 

cansend can0 456#43414e2054452364

 

candump can0

 

21

Strato Pi CAN User Guide

Содержание Strato Pi CAN

Страница 1: ...Strato Pi CAN User Guide July 2018 Revision 006 SPBC11X Strato Pi CAN board SPMC11X Strato Pi CAN server with Raspberry Pi 3 Model B SPMC11XP Strato Pi CAN server with Raspberry Pi 3 Model B...

Страница 2: ...r supply 12 Relay output 14 Dedicated GPIO pins 14 Software installation and configuration 15 Strato Pi CAN utility 15 Real Time Clock software 15 Testing the Real Time Clock 16 CAN Bus 17 Disabling B...

Страница 3: ...p 28 Conformity Information 29 EU 29 USA 29 CANADA 29 AUSTRALIA NEW ZEALAND 30 Compliance information for Raspberry Pi 3 Model B 30 EU 30 USA 30 CANADA 30 Compliance information for Raspberry Pi 3 Mod...

Страница 4: ...and weapons systems Strato is neither designed nor intended for use in critical military or aerospace applications or environments Customer acknowledges and agrees that any such use of Strato Pi CAN i...

Страница 5: ...oduct Hazard levels This manual contains information you must observe to ensure your personal safety and prevent damage to property Safety information in this manual are highlighted by the safety symb...

Страница 6: ...led and operated properly Follow all applicable electrical safety standards guidelines specifications and regulations for installation wiring and operations of this product The Raspberry Pi board coul...

Страница 7: ...ry must be replaced only with an identical battery See the Replacing the RTC backup battery section for instructions Do not throw lithium batteries into fire do not solder on the cell body do not rech...

Страница 8: ...and service continuity are key requirements It is available as a bare board or fully assembled unit including a Raspberry Pi 3 Model B or B in a standard DIN rail case The information contained in th...

Страница 9: ...oard for acoustic feedback hardware watchdog implemented in the Strato Pi board fully independent from the Raspberry Pi controlled via the I O pins of the Raspberry Pi board on board LEDs for power su...

Страница 10: ...ogether ensuring that no conductive part of one board touches any part of the other board Be particularly careful to ensure there is enough clearance between the Ethernet and USB connectors and the bo...

Страница 11: ...osion of the batteries and or release of harmful substances Worn out or defective batteries can compromise the function of this product KEEP OUT OF REACH OF CHILDREN Swallowing may lead to serious inj...

Страница 12: ...gative terminals 5 Unsolder the terminals tips and clean the circuit board holes to prepare for the installation of the new battery 6 Insert the new battery in the circuit board holes Respect the batt...

Страница 13: ...CAN board is used never connect the Raspberry Pi micro USB power plug The Strato Pi CAN power supply stage is optimised to deliver up to 2 5A at 5V to the Raspberry Pi Because Strato Pi CAN has two p...

Страница 14: ...STRATO PI CAN POWER SUPPLY STAGE TYPICAL IN OUT VOLTAGE AND CURRENT 13 Strato Pi CAN User Guide...

Страница 15: ...ime clock GPIO3 SCL I2C SCL line for the real time clock GPIO14 TXD out RS 485 TX line GPIO15 RXD in RS 485 RX line GPIO8 SPI_CE0 out SPI chip select line to the CAN Controller GPIO9 SPI_MISO in SPI d...

Страница 16: ...the Strato Pi utility without arguments to print its options strato Usage strato beep on off length_millis length_millis pause_millis repeats strato watchdog enable disable heartbeat timeout strato s...

Страница 17: ...pdate the hardware clock after the last reboot if its internal registers contained invalid values If the RTC still doesn t work you should check if the Pi sees the RTC chip on the I2C bus Run these tw...

Страница 18: ...your Raspberry Pi Disabling Bluetooth WiFi and the serial console On Raspberry Pi 3 the main UART is used for Bluetooth and the TX RX pins on the GPIO connector are controlled by a limited function M...

Страница 19: ...the ttyAMA0 console service sudo systemctl disable serial getty ttyAMA0 service Edit the boot cmdline txt file and delete the serial console configuration console serial0 115200 18 Strato Pi CAN User...

Страница 20: ...main power supply with a high efficiency DC DC converter This configuration should prevent ground loops between devices connected via the RS 485 lines The RS 485 TX RX switching is implemented automat...

Страница 21: ...ines are available on the terminal block The CAN transceiver s TX and RX lines are isolated from the CAN controller with dedicated opto couplers The CAN transceiver is also galvanically isolated from...

Страница 22: ...xample at 500 kbps sudo ip link set can0 up type can bitrate 500000 You can now check that the CAN interface is up and send or receive data sudo ifconfig can0 Link encap UNSPEC HWaddr 00 00 00 00 00 0...

Страница 23: ...plements a command to control the relay Relay on sudo strato relay on Relay off sudo strato relay off Hardware watchdog Strato Pi CAN implements a dedicated hardware watchdog circuit that can be used...

Страница 24: ...t timeout The Strato Pi CAN utility can be used to control the watchdog from your custom scripts Enable the watchdog sudo strato watchdog enable Disable the watchdog sudo strato watchdog disable Send...

Страница 25: ...Block diagram STRATO PI CAN BLOCK DIAGRAM 24 Strato Pi CAN User Guide...

Страница 26: ...ons Raspberry platform compatibility Pi 3 Model B Pi 3 Model B Pi 2 Model B Serial communication ports RS 485 Half Duplex with automatic data direction management Controller Area Network CAN Maximum s...

Страница 27: ...batteries Expected battery life without main power supply 3 years Expected battery life with main power supply 10 years Housing standard 4M for DIN rail Operating temperature 0 50 C Storage temperatur...

Страница 28: ...Dimensions DIMENSIONS mm 27 Strato Pi CAN User Guide...

Страница 29: ...ccess to the Strato Pi CAN circuit board Always remove the battery before disposing of this product Installation and use restrictions Standards and regulations The design and the setting up of electri...

Страница 30: ...cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the inte...

Страница 31: ...mitter product guidelines This WiFi DTS device has 20 MHz bandwidth mode CANADA Raspberry Pi 3 Model B IC CERTIFICATION No 20953 RPI32 This device complies with Industry Canada license exempt RSS stan...

Страница 32: ...Raspberry Pi 3 Model B IC CERTIFICATION No 20953 RPI3P This device complies with Industry Canada license exempt RSS standard s Operation is subject to the following two conditions 1 this device may no...

Страница 33: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Sfera Labs SPBC11X SPMC11X SPMC11XP...

Отзывы: