BBC BASIC for Windows
Programming >> Communication and Input/Output >> Sending data to USB to RS 232 cable
http://bb4w.conforums.com/index.cgi?board=communication&action=display&num=1398331751

Sending data to USB to RS 232 cable
Post by ks46251 on Apr 24th, 2014, 09:29am

I am involved in a project to write a program to control the numbers on a scoreboard through a USB port using a USB to RS 232 cable.
When the device manager is opened it shows that the USB connection is listed under the “Other Devices” section
Is it possible to send data to this location using BBC basic?

Re: Sending data to USB to RS 232 cable
Post by acexbe on Apr 29th, 2014, 3:28pm

If you are using USB to RS232 then you have to communicate with the assigned COM port of the converter.
BB4W supports multiple COM ports.
Note however that every USB port of your pc assigns a different COM port if you switch the converter to other USB ports.
Solution is using the same USB port each time.

Manuel
Re: Sending data to USB to RS 232 cable
Post by rtr on Apr 29th, 2014, 3:41pm

on Apr 24th, 2014, 09:29am, ks46251 wrote:
Is it possible to send data to this location using BBC basic?

I'd just like to add that of course it's "possible". BBC BASIC for Windows is a general purpose programming language so anything (within reason) is possible. If you can do it in C, or Python, or Java, you can do it in BBC BASIC.

Richard.
Re: Sending data to USB to RS 232 cable
Post by ks46251 on Apr 29th, 2014, 5:36pm

Thanks
Manuel , Richard
I will give it a try

Ks46251