USB-UIRT Forum Forum Index USB-UIRT Forum
Plug-n-Play IR Solution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UIRT transmit failed with error code 0

 
Post new topic   Reply to topic    USB-UIRT Forum Forum Index -> Troubleshooting
View previous topic :: View next topic  
Author Message
mwebber



Joined: 02 Feb 2009
Posts: 1

PostPosted: Mon Feb 02, 2009 9:11 pm    Post subject: UIRT transmit failed with error code 0 Reply with quote

I've been stepping through diagnosis with the developers of Intelliremote who leverage the usbuirt.dll.

We enabled the debug logging in their app and found that there is apparently a blowup in the usbuirt.dll.

I transmit a signal in to the usbuirt which triggers an autoit script that generates a different ir transmit. (Your standard purpose for a usbuirt.)

Here's where things go off the rails...

In the log:

2/2/2009 1:21:23 PM [DEBUG] Line 5: UirtTransmit( 500, 5, "0000 007C 0000 0011 000A 0048 000A 0048 000A 0048 000A 001F 000A 001F 000A 001F 000A 0048 000A 001F 000A 0048 000A 001F 000A 001F 000A 001F 000A 001F 000A 001F 000A 0048 000A 001F 000A 0377")
2/2/2009 1:21:23 PM [ERROR] Problem with command UIRTTRANSMIT: (UIRT Error) UIRT transmit failed with error code 0

At this point the app hangs and we get a 'send the error to Microsoft' dialog.

I've seen several posts in the forum that suggest that there are problems with the 1.4 dll. I have tested this on 4 different installations of XP (SP1 or SP3) and the behavior across all of them has been identical.

Help!
Back to top
View user's profile Send private message
Melloware



Joined: 30 May 2008
Posts: 10

PostPosted: Tue Feb 03, 2009 1:01 pm    Post subject: Reply with quote

I would like to also add to the debugging for jrhees the following.

1. Blasting IR works fine.

2. Receiving IR works fine.

3. The scenario that blows up is is calling a transmit inside a receive signal. So basically the USB-UIRT is receiving IR and then trying to blast out IR in the same thread inside the Receive Method.

So its calling UUIRTTransmitIR(...); inside of the Receive Callback method set using UUIRTSetReceiveCallback(...);. Hope that helps!
_________________
------------------------------------------------
Melloware
Tack Back Control of Your PC!
http://www.intelliremote.com
------------------------------------------------
Back to top
View user's profile Send private message
Melloware



Joined: 30 May 2008
Posts: 10

PostPosted: Wed Feb 04, 2009 1:42 pm    Post subject: Reply with quote

OK we have solved this thanks to USB-UIRT support. Transmits and Recieve IR cannot be called in the same thread. So upon receiving a IR command I queue the Transmitting of IR in another thread.

Thanks to UBS-UIRT team and mwebber for the hints and testing!
_________________
------------------------------------------------
Melloware
Tack Back Control of Your PC!
http://www.intelliremote.com
------------------------------------------------
Back to top
View user's profile Send private message
sasumner



Joined: 02 Mar 2009
Posts: 1
Location: Farmington Hills, MI

PostPosted: Mon Mar 02, 2009 7:32 pm    Post subject: UUIRTTransmitIR fails with error code zero Reply with quote

This isn't quite the same as previous posters in the thread, but the subject exemplifies my problem so I thought I'd reuse it.

I have an application that hums along fine for awhile, transmitting (only) IR codes that were previously learned. All of a sudden, UUIRTTransmitIR starts returning 0. There is nothing in the API documentation about what can cause a zero to be returned, so I am somewhat at a loss. If I ignore the failure for the bad transmit, and try again with the next thing I am trying to do, it fails again and again.

If it matters, my code looks like this:

Code:
b = pThis->UUIRTTransmitIR(pThis->hDrvHandle,
s.c_str(), /* IRCode */
UUIRTDRV_IRFMT_PRONTO, /* codeFormat */
pArgsList->Strings[2].ToIntDef(10), /* repeatCount */
0, /* inactivityWaitTime */
NULL, /* hEvent */
NULL, /* reserved1 */
NULL); /* reserved2 */

Any help or insights would be appreciated.
_________________
Scott Sumner
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    USB-UIRT Forum Forum Index -> Troubleshooting All times are GMT
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