Hi,I have almost the same situation. I have a Beaglebone Green and the Waveshare RS485 CAN CAPE mentioned in the first post.In the near future I want to use RS485 to build a Modbus TCP to Modbus RTU Gateway to communicate with a central ventilation system in my house.What i found out so far is that the Waveshare cape can by default only receive or transmit, but not both because it has no way to switch the /RE and DE pins of the MAX485.But in my opinion the middle pin of the 485_RSE JMP Jumper header could be connected to a appropriate pin using a jumper wire.My problem at the moment is that i have no idea if the kernel shipped with the BeagleBone Green (3.8 something) is able to handle RS485, especially direction switching.
I've read that I should use the omap-serial driver instead of the 8XXX-serial driver and that i have to apply some overlay stuff, but actually 'm completely lost.It would be very helpful if somebody could point out what steps i need to do in order to get RS485 working.
Hi,
indeed i want to go for Modbus TCP, but unfortunately my ventilation system has only Modbus RTU. The BB will act as a Gateway between Modbus TCP and Serial Modbus RTU.
Hi,thanks for your answers!I've searched the web yesterday in the evening for quite a long time and stumbled up on this page:If I got it right, I can use the installed Kernel (Linux beaglebone 3.8.13-bone71.1) because as of 3.8.13-bone39 RS485 support is built into the kernel.I just did a quick test:- The beaglebone is connected via USB to my laptop, I ssh into it over said usb.- I have a USB-RS485 adapter connected to my laptop as well- both devices are connected with 2 wires (A&B)- I've set the jumper to UART4, for both RX and TX- I also connected the RSE pin to P9_15 which is GPIO48- UART 4 was activated throug /boot/uEnv.txt (cape_enable=capemgr.enable_partno=BB-UART4)Using this python script https://gist.github.com/Bouni/49a292798e88a7a0956c308b3c9d1190 (inspired by http://inspire.logicsupply.com/2014/09/beaglebone-rs-485-communication.html),I'm able to communicate over RS485. In my opinion i should be able to complete my project with these preconditions.
@William: my ventilation system is completely passiva as far as i know. It features a Modbus RTU server from which i can request information or send new settings over Modbus RTU.My Homeautomation system can only handle Modbus TCP. So my plan is to let the BB run a Modbus TCP server which translates the TCP requests to RTU and send them to the ventilation system.The answers just go the other way round.
if i use this board with my begal bone black is it possible to read CAN messages ???
how to interface this with my begalbone black board?? i mean any circuit diagram??