Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » USB port communication
USB port communication [message #15188] Tue, 08 April 2008 13:14 Go to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi all,
Does ultimate++ has support to read/write to a usb port?
I sow the usb.h file on the upp tree... Is tis a little confusing for me.

Look I have an UBUNTU box (it is a old PC celeron) with the minicom app ready. This box has to serial ports. I plugged the serial cable on the first port.

On the other side I have my lap top with win XP and the ultimate ++ env.
This laptop has no serial ports. Thus I get a serial to usb cable and to plug the serial cable from ubuntu box to mu lap top usb port. I have installed the drivers and the ubs port reconizes the serial to usb cable.
Now I would like to open the usb port and writing something to it to see it it reachs the ubuntu box.
Can I do this with ultimate++?
Any sample code?
If not which is the best program to send info from my laptop to the ubuntu box?

Many thanks
Alex
Re: USB port communication [message #15189 is a reply to message #15188] Tue, 08 April 2008 14:00 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
I can't help you with your original question, but if you have serial-to-USB converter with proper USB drivers, doesn't it create virtual serial port on the laptop? So that conversion is transparent to application and it thinks it works with ordinary serial port? I would expect it to work like this, but maybe I'm wrong.
Re: USB port communication [message #15190 is a reply to message #15189] Tue, 08 April 2008 14:08 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Let me check the virtual COM ports...
Re: USB port communication [message #15192 is a reply to message #15190] Tue, 08 April 2008 14:14 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
yep, you are right! The driver installed a COM4 as USB-to-Serial COMM Port.
Many thanks for this big tip!

Alex
Previous Topic: thread, virtual class and exception
Next Topic: SetFocus / ActiveFocus -- difference?
Goto Forum:
  


Current Time: Mon Apr 29 07:20:50 CEST 2024

Total time taken to generate the page: 0.03376 seconds