Author Topic: WinUsb_WritePipe(...) always returns "false"  (Read 15286 times)

kabanga

  • Member
  • ***
  • Posts: 3
WinUsb_WritePipe(...) always returns "false"
« on: April 12, 2011, 07:06:47 am »
Hello everyone,
I'm using the Axelson's WinUSB(C#).
A few days ago it was perfectly working.
Now it's not. I can't send data to the microcontroller.
While debugging my application I remarked that WinUsb_WritePipe(...) = bResult always returns "false". Why?
I didn't make any changes to the original Axelson's lib.
I have no idea what could have had happened.
Thanks for your help.

Regards

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: WinUsb_WritePipe(...) always returns "false"
« Reply #1 on: April 12, 2011, 10:36:58 am »
Reboot the PC. Reload the firmware. Use a protocol analzyer to find out what is happening on the bus. Try to read data.

Jan

kabanga

  • Member
  • ***
  • Posts: 3
Re: WinUsb_WritePipe(...) always returns "false"
« Reply #2 on: April 13, 2011, 07:51:55 am »
I reloaded the firmware. Then I sent data to the MCU. No data are sent.
And I see nothing in the monitoring window of "USB Monitoring Studio software".
What is puzzling for me is that I didn't change anything to my working code and PC.
Why did it suddenly stop working?

Regards

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: WinUsb_WritePipe(...) always returns "false"
« Reply #3 on: April 13, 2011, 09:22:57 am »
Be sure the host enumerated the device. Look for it in Windows Device Manager.

Jan

kabanga

  • Member
  • ***
  • Posts: 3
Re: WinUsb_WritePipe(...) always returns "false"
« Reply #4 on: April 20, 2011, 09:56:35 am »
It's working again, but I can't explain why .

Thanks and regards