Page 1 of 1

Serial communication via USB device

Posted: Wed Dec 03, 2008 12:21 am
by jeffInt
I have a Matrix orbital LCD module attatched to a USB-I2C translation module. This is plugged into a USB port on my Windows box. I have a piece of driver software for the translation module installed on my box. This driver makes the USB interface look like a regular serial port.

With other demo software I have proved to myself that this setup works.

However, I do not seem to be able to communicate with the LCD using RR.

Here is the code I am using;

open driver "com7:" for update
put the result into field "fldMsg"

#following are dec values for I2C control of Matrix orbital LCD (clear screen)
write numtochar(80) to driver "com7:"
write numtochar(254) to driver "com7:"
write numtochar(88) to driver "com7:"


close driver "com7:"


There is a small led on the translation module that flashes with the demo software but does not with the RR code.

Any ideas?

Jeff

Posted: Thu Dec 04, 2008 10:04 am
by hamlynart
Did you ever resolve this? I'm in a similar boat wanting to communicate betreen RunRev and a serial device.

Cheers

Jim H

Posted: Fri Dec 05, 2008 10:33 pm
by jeffInt
Hi Jim

Yes I have "solved" this issue. Solved as in still early days with run rev code but at least I have proven that communication is possible using a virtual serial port over a USB cable in Win XP.

If you want more please post a question and I will try and help.

Jeff

Posted: Sat Dec 06, 2008 12:15 pm
by hamlynart
That's good news. I'm using Mac OSX but I imagine the RunRev code is very similar (if not the same) for communicating with the Serial Proxy. Where do I look to find out how to script for serial communication with RunRev?

Thanks

Jim H

Posted: Sat Dec 06, 2008 4:49 pm
by jeffInt
If you open the Run Rev dictionary and search for com1 or driver a number of procedure calls should be returned.

Jeff

Re: Serial communication via USB device

Posted: Sat Feb 24, 2018 9:36 pm
by richmond62
I am the owner of a Valiant Roamer 2

http://www.roamer-educational-robot.com/

So . . . the Roamer has a USB connector (meaning it has a USB port to connect to a PC, and at the other end of
the cable a highly individual connector to connect to the Roamer.

except:

1. How do I determine what driver to open (as there is NO driver as such for the Roamer)?

2. What is the difference between 'open driver' and a USB port?

3. How on earth do I understand what signals to send to the Roamer if I get that far?