CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB HID data back to Delphi 2010

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
SuperDave



Joined: 22 May 2008
Posts: 63
Location: Madison, TN

View user's profile Send private message Visit poster's website

USB HID data back to Delphi 2010
PostPosted: Fri Jun 28, 2013 10:03 am     Reply with quote

From Delphi 2010 I can find and Checkout my custom USB/HID device with a PIC18LF13K50. So I know USB is wired right. I can send it instructions to EP1 and see that those instructions are received correctly (each value in the inbound array is as expected). When I then ask it to send data back using either
Code:
if (usb_put_packet(TxEP, iUSBtxData, TxLen, USB_DTS_TOGGLE))
or
Code:
if(usb_puts(TxEP,iUSBtxData,TxLen,0))

the USB/HID device reports success (true).
But the Delphi procedure that should get the on data interrupt call is not called.

In the object the "OnDeviceData" event is set to the HidCtlDeviceData procedure.
In the code at device checkout, OnData (OnDeviceData is not a choice) is also set to the HidCtlDeviceData procedure.

There's a breakpoint at the entry to the HidCtlDeviceData procedure, it never gets there.

Any ideas why?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group