Hello list,
I'm having problems talking to a 2 wire rs485 device. This is my following configuration:
- embedded pc104 board AAEON PFM-530I
- programmable electricity meter with rs485 interface for communication.
Now, setting a few jumpers on the board toggles an rs485 port on ttyS1. My specific problem is this: i don't seem to connect the board and the meter correctly. This is what i did:
- found out which pins on the db9 connector attached on port ttyS1 are rs485 data+ and data-.
- connected data+ to a hole on the meter labeld A, and data- on an other one, labeled B. (i tried the opposite too, data+ to B, data- to A)
- tried to communicate with the meter
what happens is that i receive garbage bytes, and not the response i expect. i'm aware(sort of) that i have to do something with the ground wire on the db9 connector, do not know exactly what though. My meter has only two inputs, labeled A and B.
Furthermore, If i use an rs232-rs485 converter, and switch back the jumpers to the rs232 configuration for ttyS1, everything works great.
I do not want to use a converter.
I also read a lot about a 100ohm resistor between the wires connected to the slave devices. Could this be the solution?
Thanks everyone, Vasilis.