2
\$\begingroup\$

I need to configure a sensor (Thies 3D Sonic Anemometer, Manual: https://www.biral.com/wp-content/uploads/2015/01/4.383x.xx_.xxxUS3D.pdf) via my computer, it has RS485 full duplex and half-duplex capability.

From the wiring diagram I found that there are four pins available: TX+ (pin 5), TX- (pin 2), RX+ (pin 4), RX- (pin 1) for full duplex. For half-duplex pin 2 serves for TX-/RX- and pin 5 as TX+/RX+. Now I only have an RS485 Adapter, which has four ports labelled as A, B, Ground and +5V.

As far as I know, the sensor has last been operated in full duplex mode. Will I damage anything, if I hook pins 2 and 5 to my adapter (YF USB to RS485 adapter: https://www.play-zone.ch/de/yf-usb-zu-rs485-adapter.html)?

How do I know which pin to A and which to B on the adapter side?

\$\endgroup\$
3
  • \$\begingroup\$ Figure out if you need RS-485 or RS-422. \$\endgroup\$
    – filo
    Commented Apr 1, 2019 at 20:24
  • \$\begingroup\$ It's half duplex, A and B are TX+/RX+ and TX-/RX- . Have no idea what's a YF USB to RS485 adapter. You should post some links about the sensor and converter. \$\endgroup\$ Commented Apr 1, 2019 at 22:08
  • \$\begingroup\$ Hi, sorry, I edited my post with some links and the manual of the sensor. Yes, I need RS485. Meanwhile I hooked up TX+/RX+ to B and TX-/RX- to A, Ground from Sensor (pin 6) to Adapter Ground. I downloaded all drivers of the adapter and installed them, and tried to interface the sensor with Tera Term. However, I never got to get it to create an output in the Terminal. But is the general procedure correct how to hook up a sensor? \$\endgroup\$
    – sfluck
    Commented Apr 2, 2019 at 18:15

1 Answer 1

1
\$\begingroup\$

This is not universal at all but for the devices I've seen A is usually positive (DATA+) and B negative (DATA-).

So wire TX+ together with RX+ to A and TX- to RX- and B and you're good to go.

If you switch these connection your link won't work (as you have already experienced) but the risk of breaking your hardware is not high (but not unheard of).

I quick glance at the manual of your devices seems to imply that you might need to send commands from your computer before you see an answer:

Master-slave structure, i.e. there is a device in the bus (control, PC...) that performs cyclic enquiry of the data of the individual ULTRASONICs and possibly parameterises the ULTRASONICs.

There is also mention to a device ID, have you checked that?

If you just wire everything, open your terminal and still don't see activity maybe you should take a deeper look at the manual, or if you think your configuration is correct maybe you can take a look at your bus with a scope.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.