Jump to content

rs232 and USB2.0 question


v_pan

Recommended Posts

hello everybody..

i made a project based on microcontroller and communicate with 232.

my baud rate is at 115200bps and proved to be very poor for what i want to do.

i'm thinking to change my communication to usb2.0 (microcontroller support )

my question is ..

if i do this ,do i have to change my program on labview?

i mean ..

now i select COM1 to communicate with micro

after change this

the only thing i have to do is to change COM1 to COM4 for example?

and increase baud rate

or i have to do more things on program>?

Link to comment

QUOTE (v_pan @ Dec 14 2008, 03:31 AM)

hello everybody..

i made a project based on microcontroller and communicate with 232.

my baud rate is at 115200bps and proved to be very poor for what i want to do.

i'm thinking to change my communication to usb2.0 (microcontroller support )

my question is ..

if i do this ,do i have to change my program on labview?

i mean ..

now i select COM1 to communicate with micro

after change this

the only thing i have to do is to change COM1 to COM4 for example?

and increase baud rate

or i have to do more things on program>?

Hello,

If what you changed is just adding a RS232 to USB2.0 converter, like what you have said it shows up as COM4, then nothing on speed will improve, even though it is connected to USB port and use a USB cable, but underlying communication protocal is same, it is still RS232. To fully make use of USB protocal, you need to use a true USB device, not a simulated COM port. Regarding the LabVIEW code, yes, you only need to change COM1 to COM4 if you use a RS232 to USB converter, no other code changes needed.

Irene

Link to comment

i will use a PIC microcontrolle that supports USB2.0 hardware.i will make software of USB protocal .

so, output from PIC will be a usb cable (not rs232 to usb converter) and i 'll plug it to one of my usb2.0 port

on my computer

in that case, will LABVIEW recognise this PORT as serial(COM4 for example) or usb?

can i increase speed that way?

thanks for answer!!

Link to comment

QUOTE (v_pan @ Dec 14 2008, 04:53 AM)

i will use a PIC microcontrolle that supports USB2.0 hardware.i will make software of USB protocal .

so, output from PIC will be a usb cable (not rs232 to usb converter) and i 'll plug it to one of my usb2.0 port

on my computer

in that case, will LABVIEW recognise this PORT as serial(COM4 for example) or usb?

can i increase speed that way?

thanks for answer!!

Well, it depends on what firmware you implemented in the hardware. If you have COM type firmware, then it is just a RS232 to USB converter. For a true USB2.0 device, you should be able to stream your data very fast.

Irene

Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.