Streamer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
rasec_2385561
Level 4
Level 4
First like received

Hmmm. Well using the C# version of Streamer does seem to allow the endpoints to display correctly. The

throughput display does not seem to be updating still.

When I try to use the USB Control Center, it does seem to retain the entries in the left pane through

restarts of the application but trying to send data through USB Control Center does not seem to be

working correctly.

The setting of the PID value seems to be working for the moment.

Any ideas ?

error9.png

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

Please find the project3 of AN56377 which is working fine on C# based streamer application

View solution in original post

0 Likes
15 Replies
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

- Please update the driver to the latest version (1.2.3.20) which is available from the FX3 SDK.

- The driver can be found in the below path after the installation of the SDK.

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\driver\bin\<OS>\<Architecture>

- Regarding the failure on the ISOC endpoint, please let me know if there has been any changes made to the AN56377 project.

Best regards,

Srinath S

lock attach
Attachments are accessible only for community members.

The device driver version from the CYUSB3 setup file is DriverVer=11/08/2017,1.2.3.20  .

The only changes that have been made to the AN56377 project relate to making changes to support different VID/PID values. Currently the VID/PID are 04b4 and 1003. The main.c is the only file I made changes to. See the attached file.

Randy

0 Likes

Hi,

Please share the Creator project too in which you have changed the main.c and you are checking that on USB control center after that as shown in image previously attached by you.

0 Likes
lock attach
Attachments are accessible only for community members.

My AN56377 project is attached.

0 Likes

HI Randy,

I asked for specific project in AN56377 for which you have modified the main.c and checking on USB Control Center.

Actually, its very confusing because:

>>The screenshot of USB Control Center that you shared previously shows that you are checking project1 of AN56377

>>But you have changed main.c of Project3

The changes that you have done in Project3's main.c (basically removing an If statement ) seems to be not required.

So, Please clear the point which project are you checking on USB control Center and which on Streamer and share those particular projects accordingly

0 Likes

I wanted to see if I could get the bulk endpoints to work with the Streamer application as a means to do board control.

1. Ok, so I reprogrammed the board with project 3 and retested. The Streamer application worked the first time though.

2. I started the Control Center and the ISOC endpoint is visible but fails to transmit.

3. I restarted the Streamer application to retest the functionality. Now only the KitProg driver for the programmer is visible. No Streamer device driver is visible. Microsoft's device manager still sees the driver.

I take the board out of the hub to reload the driver. The device driver does not reload automatically. I have to restart my PC.

0 Likes

4. Rebooted.

5. Streamer loads with the KitProg driver in the pulldown.

6. StreamerExample driver in Microsoft's device manager returns

   This device cannot start. (Code 10).

7. I try to manaully install StreamerExample driver in Microsoft's device manager returns

   This device cannot start (Code 10).

8. So I unplug the board from the hub and later replag the board in.

9. I instruct Microsoft device manager to scan for device changes.

   Microsoft's device manager returns: This device cannot start (Code 10).

10. I checked USB Device Viewer for the status of the device. It says the

[Port2] FailedEnumeration :  Cypress FX2LP StreamerExample Device

       ---===>Device Information<===---

ConnectionStatus:                  FailedEnumeration

Current Config Value:              0x00  -> Device Bus Speed: Low

Device Address:                    0x00

Open Pipes:                           0

*!*ERROR:  No open pipes!

          ===>Device Descriptor<===

*!*ERROR:  bLength of 0 incorrect, should be 18

bLength:                           0x00

bDescriptorType:                   0x00

bcdUSB:                          0x0000

bDeviceClass:                      0x00

*!*ERROR:  Device enumeration failure

11. Any ideas ?

0 Likes
lock attach
Attachments are accessible only for community members.

I suppose the issue is that you are not getting  project3 of AN456377 properly enumerated  on Streamer application.So, For that:

>>Can you please undo the changes done in main.c of Project3 as you have done previously because they are not required.Please use the main.c as provided with AN without any modification. attaching that Main.c (as available with AN ) too for reference

>>Can you connect the CY8CKIT-059 directly with PC ( Personnel Computer )'s USB port not with a hub .

>> Please update the driver to the latest version (1.2.3.20) which is available from the FX3 SDK.

- The driver can be found in the below path after the installation of the SDK.

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\driver\bin\<OS>\<Architecture>

Please test Project3 with Streamer application as stated in AN56377.

This is system specific issue because we have tried on multiple systems in our facility, we are not getting any issue with enumeration of Project3 of AN56377 on the PC and on Streamer application.So please check the hardware in your setup.

0 Likes

Project1 and  Project2 having the Bulk Endpoints will work on Control Center as stated in AN56377 and we have tested that too on multiple system.

But if you make changes in main.c then it will effect the functionality.

0 Likes

1. After reprogramming the board with project 3 (still the old version)

and moved the board to a CPU connected USB connection. I started

the Streamer application, all writes were failures. I replugged the

board and tried to restart the Streamer application. The ISOC connection

is not in the device connected list. So no ISOC endpoints.

See the attached screen shot of a Microsoft message about the USB controller

not having enough effective bandwidth. This is the first time that I have seen

this message !

error10.png

2. The device driver on the PC is from the EZ-USB FX3 SDK version 1.3 . The

date it was modified was 5/8/2018 however Windows device manager says it was

built 11/8/2017 version 1.2.3.20 . I believe this is the most current device

driver.

3. After reprogramming the board with project 3 (the updated version) the

device is found in the device connected list but all writes were fails.

Restarted the Streamer application shows that the only device in the device

connected list is the KitProg programmer.

Do you have a working copy of main.c for the project 3 that you could send me ???

4. I unplugged the board and waited 10 seconds before reinserting. Restarted

the Streamer application shows that the only device in the device connected

list is the KitProg programmer.

USB Device Viewer shows:

[Port3] NotEnoughBandwidth :  Cypress FX2LP StreamerExample Device

Device Power State:               PowerDeviceD0

       ---===>Device Information<===---

*!*ERROR:  No String Descriptor for index 5!

ConnectionStatus:                  NotEnoughBandwidth

Current Config Value:              0x01  -> Device Bus Speed: Full

Device Address:                    0x01

Open Pipes:                           0

*!*ERROR:  No open pipes!

          ===>Device Descriptor<===

bLength:                           0x12

bDescriptorType:                   0x01

bcdUSB:                          0x0200

bDeviceClass:                      0xFF  -> This is a Vendor Specific Device

bDeviceSubClass:                   0x00

bDeviceProtocol:                   0x00

bMaxPacketSize0:                   0x08 = (8) Bytes

idVendor:                        0x04B4 = Cypress Semiconductor

idProduct:                       0x1003

bcdDevice:                       0x0000

iManufacturer:                     0x01

*!*ERROR:  No String Descriptor for index 1!

iProduct:                          0x05

*!*ERROR:  No String Descriptor for index 5!

iSerialNumber:                     0x00

bNumConfigurations:                0x01

5. Rebooting the PC shows FailedEnumeration in USB Device Viewer.

[Port3] FailedEnumeration

       ---===>Device Information<===---

ConnectionStatus:                  FailedEnumeration

Current Config Value:              0x00  -> Device Bus Speed: Low

Device Address:                    0x00

Open Pipes:                           0

*!*ERROR:  No open pipes!

          ===>Device Descriptor<===

*!*ERROR:  bLength of 0 incorrect, should be 18

bLength:                           0x00

bDescriptorType:                   0x00

bcdUSB:                          0x0000

bDeviceClass:                      0x00

*!*ERROR:  Device enumeration failure

Windows device manager displays the message:

Windows has stopped this device because it has reported problems. (Code 43)

0 Likes
lock attach
Attachments are accessible only for community members.

Please find the project3 of AN56377 which is working fine on C# based streamer application

0 Likes

We made a little bit of improvement but there still seem to be issues.

I updated the main.c file in project 3 and programmed the board.

I started the streamer application but all writes to the ISOC endpoint

failed. The only change I made to the new was the

//void main (void)

int main (void)

to get rid of a warning.

USB Control Center transfers in data to the ISOC endpoint correctly.

USB Device Viewer shows:

[Port3] NotEnoughBandwidth :  Cypress FX2LP StreamerExample Device

Device Power State:               PowerDeviceD0

       ---===>Device Information<===---

*!*ERROR:  No String Descriptor for index 5!

ConnectionStatus:                  NotEnoughBandwidth

Current Config Value:              0x01  -> Device Bus Speed: Full

Device Address:                    0x02

Open Pipes:                           0

*!*ERROR:  No open pipes!

          ===>Device Descriptor<===

bLength:                           0x12

bDescriptorType:                   0x01

bcdUSB:                          0x0200

bDeviceClass:                      0xFF  -> This is a Vendor Specific Device

bDeviceSubClass:                   0x00

bDeviceProtocol:                   0x00

bMaxPacketSize0:                   0x08 = (8) Bytes

idVendor:                        0x04B4 = Cypress Semiconductor

idProduct:                       0x1003

bcdDevice:                       0x0000

iManufacturer:                     0x01

*!*ERROR:  No String Descriptor for index 1!

iProduct:                          0x05

*!*ERROR:  No String Descriptor for index 5!

iSerialNumber:                     0x00

bNumConfigurations:                0x01

Could this be a bandwidth issue where adding a high PCIe USB board would provide sufficient

bandwidth ? The PC is running Windows 7 and is about five years old.

Randy

0 Likes

The project attached previously attached is working fine on multiple systems.

For sure that issue that you are experiencing is a system specific issue so there can be a possibly of Bandwidth issue too.

Ok, so I'm thinking about the USB connections on my PC. I have a USB keyboard, mouse,

WIFI networking, and of coarse the CY8CKIT-059 PSOC 5LP. The USB keyboard and mouse

should not bandwidth hogs but the WIFI networking connection has potential to be a

hog. So I unplug the WIFI networking connection. And I start the Streamer application

and it works, no problem. The progress bar even works. So I try the USB Control Center

and try to send out some packets to the ISOC endpoint. And it fails with a message:

ISOC IN transfer

ISOC IN transfer failed with Error Code:997

The WIFI networking connection is from ASUSTek Computer Inc.

Model:USB-N53

S/N: E6IA06003231

MAC: 60A44CEC7CEE

Input: 5V at 500mv        which makes it a power hog also.

What do you think ???

Please don't try to check Project3 of AN56377 on Control Center.Its firmware needs to be checked with Streamer application only.

0 Likes