Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB9.0 C
Setup - Hardware have USB device connected to PC host. Some Data trasfer (send and receive) between PC and Hardware can be done through application software using USB communication. No problem occured at table test (means without any nosiy envoirnment i.e. in ideal condition) but problem occured in noisy envoirnment (for testing purpose forcefully create the noise through USB cable to hardware and PC).
 
Condition - No communication through hardware and PC just connect USB cable to hardware and PC then create noise through USB cable. After noise test finish try to communicate using application s/w but no communaction established.
 
observation - Data are send but could not receive by application s/w (shown on USB debugging s/w). Also Hardware did not get interrupt to receive data. So whether problem is in device driver or hardware. but hardware is tested by loopback test using device and host of hardware. Same test conduct between hardware host and device and it works. So problem looking in PC side (in device driver).
Posted 10-Jan-11 19:40pm
Comments
r.ps at 11-Jan-11 8:08am
   
Is there a question here?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Everything works in test envirenment?
 
If that's the case then the problem is probably related to communication media, radio or cable?
 
Cable can be shielded, radio is a "well known problem", easily solved by using industrial grade equipment, but usually way more expensive.
 
Depending on the envirenment you may have to shield components inside the computer too...
 
Unless you are to deliver a huge amount of devices/pc's it's usually best to buy equipment allready certified for the target environment.
 
Best of luck
 
Regards
Espen Harlinn
  Permalink  
Comments
pravin29 at 12-Jan-11 0:03am
   
Everything works in ideal condition.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi,
 
EMC Testing is a real pain!
 
If your external hardware (at the end of your USB cable) has crashed and has no watchdog or similar to reset, I think there is little you can do at the PC end. If it is powered by the USB then it maybe be possible to remove the power and cause a reset, but I am afraid I don't know how to do this in software. I see you say that data was sent but not received, these seems odd.
 
It maybe usefull to look at preventing the noise from causing a problem in the first place. I have found that earthing is very important in EMC and it is worth trying to earth the cables at one end or the other or both and see what works best. I guess the hardware is not bought in, or you would not have to EMC test it, so you should be able to try this to some extent. You could also try to screen the cable in some way. We often use ferrite beads around the cables but I have never tried this on a USB cable.
 
One last thing, it is likely that during the EMC test your software will receive various illegal values so double check that they are all being handled correctly and it is not just that your application gets 'stuck' at some point, waiting for data that will never arrive.
 
Best of Luck Smile | :)
  Permalink  
Comments
pravin29 at 11-Jan-11 23:58pm
   
Right now just consider s/w has no role during noise test. After finishing noise test i tried to communicate with device and device gets connected. Send the data but could not receive. So will software or driver need some care?
Alison P at 12-Jan-11 4:33am
   
Do you mean that you send the data from the PC end and it is not received by the device or that you send the data from the device and the PC does not receive it? Even if the software has 'no role' during test if it is running could noise create data input that 'looks like' data but is in fact invalid? Can you run the software app. in debug mode during the test, that might help you to figure out where the problem lies. Best of Luck. :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Update - Issue has solved
 
This was USB hardware issue. Noise filter (common mode choke) is implemented in USB hardware.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Afzaal Ahmad Zeeshan 256
1 OriginalGriff 251
2 BillWoodruff 240
3 Maciej Los 230
4 Sergey Alexandrovich Kryukov 195
0 OriginalGriff 6,419
1 Sergey Alexandrovich Kryukov 6,008
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,070


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 3 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100