News:

  • August 23, 2026, 01:53:50 PM

Login with username, password and session length

Author Topic: Using BRX USB port  (Read 11381 times)

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Using BRX USB port
« on: June 23, 2018, 09:14:01 PM »
I am wondering if the USB port on a BRX can get serial data from an Arduino R3 that sends out data to a PC USB port. The Arduino programming software provides a utility that collects the serial data that print statements in the Arduino send out. For the experiments I am conducting I’d like the data to go to the BRX.

Thanks,

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Using BRX USB port
« Reply #1 on: June 25, 2018, 02:43:37 PM »
I doubt it.  USB distinguishes between master and slave devices, and the type port that's on the BRX is intended to be the slave type so it can talk to a PC.  If the Arduino can talk to a PC, then it's probably the same type as the BRX and thus cannot talk to it.  It's not like RS232 where you can get devices that are the same type (electrically) to talk to each other by cross-connecting their Tx & Rx.  Does the Arduino have an RS232 port so you can talk to the serial port on the BRX?  That would be a lot easier on the BRX end.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Using BRX USB port
« Reply #2 on: June 25, 2018, 02:46:29 PM »
I am wondering if the USB port on a BRX can get serial data from an Arduino R3 that sends out data to a PC USB port. The Arduino programming software provides a utility that collects the serial data that print statements in the Arduino send out. For the experiments I am conducting I’d like the data to go to the BRX.

Thanks,

No, for a couple of reasons.

As was already suggested, serial is the best bet.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Using BRX USB port
« Reply #3 on: June 25, 2018, 08:07:41 PM »
Thanks guys,
I have always thought that RS-232 was a 12vdc based protocol which was why serial converters using the USB port didn't work well with things like PLCs. The Arduino is 5 volt and has a UART based serial port.  Would this likely talk to the BRX built in serial port or the POM module?

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Using BRX USB port
« Reply #4 on: June 28, 2018, 07:50:25 PM »
These work nicely.
https://www.amazon.com/RS232-RS485-Shield-for-Arduino/dp/B00N4MKVFK
It uses the same com pins as the USB.

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Using BRX USB port
« Reply #5 on: June 28, 2018, 08:20:18 PM »
Thanks for that link. Of course they are out of stock!  I hate Amazon it’s like shopping at a flea market.

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Using BRX USB port
« Reply #6 on: June 28, 2018, 09:35:04 PM »
Missed that, had to get the last shipment from the manufacturer, cheaper actually.
https://www.tinyosshop.com/arduino-rs232-rs485-shield