Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sat Nov 18, 2017 10:36 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Mar 29, 2010 12:06 am 
Offline

Joined: Mon Nov 30, 2009 11:03 pm
Posts: 2
Hi all,

Has anyone experienced extremely long delays when calling RP1210_ClientConnect?

I can load the QBRDGE32.DLL just fine, but when I call ClientConnect, the system pauses for about 60 seconds every time. The function does return valid, and all J1939 functions work afterwards, but the initial process time of this function is just painful.

I can see various DLLs loading in the debugger's output window. It seems to hang on wspm.dll, but that could be just a delay in the reporting window and it's really doing something in qbrdge32.dll. Does anyone know if QSI uses delayed loading for some of their DLLs?

Platform Type : GEODE platform
Load module: ws2.dll
Load module: qbrdge32.dll
Load module: ssllsp.dll
Load module: wspm.dll
||-------------------------------pause occurs here
Unload module: wspm.dll
Unload module: ssllsp.dll
Load module: ssllsp.dll
Load module: wspm.dll
Unload module: wspm.dll
Unload module: ssllsp.dll
Load module: ssllsp.dll
Load module: wspm.dll

Anyone having this issue, have any ideas or a perhaps a code snippet??

Code:
m_hCanDll = ::LoadLibrary(_T("\\HardDisk\\bin\\QBridge\\QBRDGE32.dll"));

if(m_hCanDll)
{
   pRP1210_ClientConnect = (fnRP1210_ClientConnect) (GetProcAddress(m_hCanDll, _T"RP1210_ClientConnect")));

// Starting here....
m_CanClientID = pRP1210_ClientConnect(GetSafeHwnd(), QBRIDGE_COM4,QBRIDGE_J1939_PROTOCOL,0,0,0);
// .... to here takes approx. 60 seconds.

if((m_CanClientID >= 0 ) && (m_CanClientID <= 127 )) ... do stuff
else ... don't do stuff



Thanks!

-Rob.


Top
 Profile  
 
PostPosted: Mon Mar 29, 2010 8:15 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
The first ClientConnect takes some time. There is a .NET Compact Framework application and dll that starts which handles the communication going back and forth to the J1939/J1708 interface (the QBridge). There is also some communication to the QBridge on initialization. I don't remember all of the details, but I do remember it taking some time.

An alternative to the RP1210 interface but may require more work is communicating with the QBridge directly over the serial port.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group