-
September 10th, 2013, 03:56 AM
#1
Data Capture Using USB2
Hi,
Now, I'm using data card for data capture. But it not support for windows 7.
So i plan to capture data from USB port or Ethernet port.
I choose USB2 for data capture.
My requirement, Data capture speed is 60 Megabits per second using USB2.
In Data sheet of USB2 , Capture Speed is 480 Mbps (Megabits per second).
But, If i use usb mouse or any other usb device means, speed will be divide for all USB device.
How can i get Data in the speed the of 60 Megabits per second using USB2?
Is possible in USB2. Pls, clear me.
Regards,
SaraswathiSrinath
-
September 10th, 2013, 04:57 AM
#2
Re: Data Capture Using USB2
Well, what is your Visual C++ Programming question or probkem?
Victor Nijegorodov
-
September 10th, 2013, 07:54 AM
#3
Re: Data Capture Using USB2
I used RS232 & RS485. after installed the driver its shown like Com3, Com 4 in port setting.
If i plug this USB2 means, How its appear ? & how can i get data from this.
Regards,
SaraswathiSrinath
-
September 10th, 2013, 08:33 AM
#4
Re: Data Capture Using USB2
Victor Nijegorodov
-
September 10th, 2013, 09:00 AM
#5
Re: Data Capture Using USB2
This may not be doable with USB2 depending what you need.
USB can run in different modes. Either in message mode or streaming and streaming has additional subtypes.
You can get a guaranteed streaming speed (in one direction), but in that case you will have to deal with possible data loss.
alternatively you can get guaranteed reception, but not a quaranteed speed.
Even USB3 with it's higher max speed can't guarantee both transfer speed and reception at 60Mbps
If you're ok with possible dataloss, then guaranteed speed (isochronous streaming transfer) is explained on:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
-
September 10th, 2013, 09:02 AM
#6
Re: Data Capture Using USB2
Originally Posted by VictorN
USB while "serial"... Has very little to do with RS232 communication.
-
September 10th, 2013, 09:47 AM
#7
Re: Data Capture Using USB2
Originally Posted by OReubens
Originally Posted by VictorN
USB while "serial"... Has very little to do with RS232 communication.
It was the answer to the OP's post:
Originally Posted by saraswathisrinath
I used RS232 & RS485. after installed the driver its shown like Com3, Com 4 in port setting.
If i plug this USB2 means, How its appear ? & how can i get data from this.
Victor Nijegorodov
-
September 10th, 2013, 11:45 PM
#8
Re: Data Capture Using USB2
Hi,
I used serial communication like below only,
Code:
BOOL SerialPort::InitPort(UINT portnr,UINT baud,char parity,
UINT databits,UINT stopbits, DWORD dwCommEvents,UINT writebuffersize)
{
// Code for Port initialize
}
Initialize Like
Code:
InitPort(4,9600,'E',8,1);
Read Data from port like
Code:
ReadFromPort()
{
bResult = ReadFile(m_hComm,&RXBuff,1,&BytesRead,&m_ov);
bResult1 = GetOverlappedResult(m_hComm,&m_ov,&BytesRead,TRUE);
}
My doubt is, shall i use this same way to get high speed data? is possible?
Thanks Mr.Victor & Mr.OReubens. I will read the posted web pages and come back.
Regards,
SaraswathiSrinath
-
September 11th, 2013, 07:51 AM
#9
Re: Data Capture Using USB2
Originally Posted by saraswathisrinath
My doubt is, shall i use this same way to get high speed data? is possible?
maybe... there are serial hardware ports that can do 60Mbps and larger and that you can access via the "COM" ports in windows.
USB isn't among them
While there are drivers that allow you to access a USB in a similar method as an RS232 (The Arduino project uses this principle). The speed at which you can do this is limited.
If you need guaranteed 60Mbps (with possible dataloss), you will need to write a kernel mode isochronous USB driver.
If you don't need the guaranteed speed, there are alternatives for USB. Such as interfacing via the WinUSB driver, they can offer data integrity, but the speed will be limited and may not be stable (data may come in bursts).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|