dcristut wrote:vending machine via a multi-drop bus
a RS485 adapter is needed but, due to the 9 bit structure of the MDB packet
-a- RS485 is a electric specification ( voltage difference serial signal )
used as 2 (3 with GND ) or 4 ( 5 with GND ) wire system what can be used for multi drop
( 32 devices on that (2) wires )
it requires a final resistor 100 .. 120 ohm ( minimal one, on a longer wire 2 ( on both ends )
and can be one long cable ( not a star connection ) 1200m ( but depending on Mbit/s used )
-b- the protocol used on that serial link hardware is something completely different.
it could be for example modbus multidrop
-c- as you have a device you want to connect you must find out all about what that device is using?
(a) and (b)
-d- for using RPI as partner ( like modbus multidrop master ?) you must find a RS485 adapter what fits to GPIO or USB
and find out if that used protocol software ( as driver ) is available for RPI, as i doubt you could do that protocol code.