( KaTT | 2019. 06. 18., k – 13:24 )

Ha jól értem, nekem 2 féle átalakító kell.

1.: RPI-hez CAN busz kommunikációs modul, amivel az RPI eléri a CAN buszt.

2.: Több darab CAN busz - SPI átalakító, és az átalakítóra SPI-n kerül rá az 1-3 szenzor helyiségenként. Helyiségenként pedig 1-1 ilyen CAN busz - SPI átalakító.

Ide kapcsoló kérdés:

K1.: Ha egy helyiségbe odakötöm a CAN buszt, rá a kiválasztott CAN busz - SPI átalakítót, akkor onnan hány méter kábellel köthetem rá a szenzorokat és hány darabot SPI-n keresztül? Mint ahogy az SPI standard támogatja, vagy rövidebbet, mert gyengült jobban a jel, stb?

K2.: Ha azonos típusú szenzor van egy másik CAN buszon, ahol ugyancsak SPI van, úgy nem lesz ütközés, mint ahogy az I2C buszon lehet ütközés és gond, ha azonos az ID?

RPI - CAN busz adapter: ===============================

Ez tűnik a legjobb RPI - CAN busz adapternek:

https://i.imgur.com/dDZCCUA.jpg

RS485 And CAN Module
http://www.inno-maker.com/product/rs485-and-can-module/
http://www.inno-maker.com/wp-content/uploads/2019/04/RS485-CAN-HAT.pdf

* RS485&CAN Module is an industrial communication module for Raspberry Pi, on board 2*RS485 Bus and 1*CAN Bus communication interface via SPI interface.
* CAN bus and RS485 bus powered through separated isolation power module, signal between the transceiver and the controller is isolated , ESD protection for the communication port, ensure your raspberry pi can be used in more strictly industrial sites

1. Compatible with Raspberry Pi Zero/Zero W/2B/3B/3B+. Only a small amount of GPIO are used and the rest pins allow to work for other extended function
2. Power supply and signal isolation, Build-in surge and ESD protection.
3. CAN function, onboard CAN controller MCP2515 via SPI interface, onboard high speed CAN transceiver, onboard digital isolation ADUM1201BRZ, Communication Rates 20Kbps-1Mpbs can be programmed arbitrarily.
4. RS485 function, controlled via UART, half-duplex communication, supports automatic TX/RX control without programming, onboard SPI to RS485 SC16IS1752. Electrical data isolation ADM2483.
5. On board individual 120 Ohm terminal resistance, Impedance matching and guarantee the ability to drive.

Tudtok ennél jobban megcsinált RPI - CAN busz adaptert?
CANBERRYDUALISO V2.1 TWO CHANNELS esetleg előnyösebb, az RTC-n kívül?

Ez a kettő között mi a különbség, az ISO itt mit jelent, mitől kerül másfélszer annyiba, és mi az előnye?

https://i.imgur.com/FtCY8c1.jpg

CANBERRYDUALISO V2.1 TWO CHANNELS
https://www.sg-electronic-systems.com/ecommerce/en/canberry/15-canberry…

CANBERRYDUAL V2.1 TWO CHANNELS
https://www.sg-electronic-systems.com/ecommerce/en/canberry/12-canberry…

Az én esetemben van értelme 2 CAN buszt kihúzni 1 helyett? Jobb 2 rövidebb CAN busz, külön porton kezelve, mint 1 hosszabb?

CAN busz - SPI átalakítók ===============================

https://www.aliexpress.com/item/Waveshare-RS485-CAN-HAT-for-Raspberry-P…
Features
* Raspberry Pi connectivity, compatible with Raspberry Pi Zero/Zero W/Zero WH/2B/3B/3B+
* CAN function, onboard CAN controller MCP2515 via SPI interface, with transceiver SN65HVD230
* RS485 function, controlled via UART, half-duplex communication, with transceiver SP3485
* Reserved control pins, allows to work with other control boards
* Comes with development resources and manual (examples in wiringPi/python)

Specifications
* Operating voltage: 3.3V
* CAN controller: MCP2515
* CAN transceiver: SN65HVD230
* 485 transceiver: SP3485

Ez 1,5 USD:

https://www.alibaba.com/product-detail/MCP2515-CAN-Bus-Module-TJA1050-R…

MCP2515 CAN Bus Module TJA1050 Receiver SPI Module For Arduinos Raspberry Pi 51 AVR

MCP2515 Controller Bus Module TJA1050 Receiver SPI Protocol
1, Support CAN V2.0B specification, the communication speed 1Mb / S
2, 0 to 8-byte data field
3, The standard frame and expand the frame and remote frame
4. 5V DC power supply module, SPI interface protocol control
5, 120 ohm termination resistors. Impedance matching, ensure drive capacity, long-distance data transmission against signal radiation
6, Module size: 4.4cm x 2.8cm screw hole center spacing 23mm * 35mm
7, The working current: typ. 5mA, 1 microamp standby current. Except the power indicator
8, The working temperature: Industrial grade to 85 'C -40 'C
9, CAN controller chip: Microchip MCP2515, High speed CAN transceiver chip: NXP TJA1050

Jól gondolom, hogy nekem olyan lenne az optimális RPI-hez, ami 3,3VDC-vel megy, és nem 5?

Mint a fenti, csak forrasztani kell, 1,3 USD 2 darab:

https://www.aliexpress.com/item/2pcs-TJA1050-CAN-Controller-Interface-M…

Sakk-matt,
KaTT :)