Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

pekic_1399826
New Contributor

In documentation it is written that calling CyResetDevice will re-enumeerate.

   

Under Linux we do not see this behavior: the call returns CY_SUCCESS but the device stays and is accessible via same handles.

   

Also info about newly enumerated device does not appear in system logs.

   

Can anyone please elaborate on what exactly the CyResetDevice is for, and the differences (if any) of its effect under linux and windows.

   

This comes from our task to write a portable software which must function same under different OS.

   

 Thanks in advance!

0 Likes
1 Solution
Hemanth
Moderator
Moderator

Hi,

   

As you know, the CyResetDevice will cause re-enumeration of the device. To see that what you can do is:

   

1. In one terminal enter:

   

    tail -f /var/log/syslog

   

2. In another terminal run an application which opens the device. After opening the device, pass the handle to CyResetDevice API.

   

By doing that in the other terminal you can see the device being disconnected and getting connected again.

   

Let me know for further questions.

   

Regards,

   

hman

Hemanth

View solution in original post

0 Likes
1 Reply
Hemanth
Moderator
Moderator

Hi,

   

As you know, the CyResetDevice will cause re-enumeration of the device. To see that what you can do is:

   

1. In one terminal enter:

   

    tail -f /var/log/syslog

   

2. In another terminal run an application which opens the device. After opening the device, pass the handle to CyResetDevice API.

   

By doing that in the other terminal you can see the device being disconnected and getting connected again.

   

Let me know for further questions.

   

Regards,

   

hman

Hemanth

View solution in original post

0 Likes