"RS Connection" Dialog when scanning barcode on Motion Computing f5v

"RS Connection" Dialog when scanning barcode on Motion Computing f5v

This is the code Im using to subscribe to the scanned barcode event:

try
{
m_DeviceButtons = new Intel.Healthcare.Device.Buttons( DeviceHardwareListener.Handle );
m_BarcodeHandler = new EventHandler( OnBarcodesScanned );
m_DeviceButtons.BarcodesScanned += m_BarcodeHandler;
}
catch ( Exception exp )
{
logger.WarnException( "Could not connect to the MCA buttons, this platform may not support MCA", exp );
}

Where DeviceHardwareListener is a System.Windows.Form

This is my event function

void OnBarcodesScanned( object sender, BarcodeEventArgs e )
{
string barcode = e.BarcodeReader.Barcodes[ 0 ].Value;
e.BarcodeReader.ReleaseDevice();
IBarcodeListener target = DeviceHardwareListener as IBarcodeListener;
if ( target != null )
{
target.ProcessBarcode( barcode );
}
}

The barcode is sent to our application when doing this. However, there is a dialog titled RS Connection and it pops up when our application is the active window, and it is scanning through baud rates and parities then it goes away and the event fires.

If I have notepad up, this dialog does not appear. How do I make the RS Connection dialog not appear?

12 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Also this does not happen with the button simulator in the SDK. Only on a real tablet.

Hi Paul,

Can you tell me what version of the MCA software you are using?
Also, can you send a copy of the MCA log file when the issue occurs?

Thanks,
Steve

Hi Paul,

We have been testing with a Motion F5v system we have but cannot reproduce the error. In addition to the MCA log file and MCA version asked for above, could you also please provide the following:

1. Could you please provide your application to us for testing? If the application is too complicated for configuration or has lots of dependencies, a stripped down version of it that allows us to duplicate the issue would be fine.

2. Could you locate a DLL named ISDC_RS.dll in the system32 folder and let us know the version of that file?

Thanks,
Steve

Iam developing with the Intel MCA SDK 3.0

The tablet is using:

IntelHealthcareToolTray.exe: 3.0.0.34538

IntelHealthcareService.exe: 3.0.0.34538

IntelHCStatusMonitor.exe: 3.0.0.34538

IntelHealthcareSDK.dll: 3.0.0.34538

ButtonHandler.dll: 3.0.0.34538

BarcodeDefaultHandler.dll: 3.0.0.34538

RfidDefaultHandler.dll: 3.0.0.34538

CameraDefaultHandler.dll: 3.0.0.34538

IntelHealthcareUtil.dll: 3.0.0.34538

PIBarcodeIntrmc.dll: 3.0.0.34210

PICameraDS9.dll: 3.0.0.34210

PIDeviceControlMtnC5.dll: 3.0.0.34210

PIRfidTI7960.dll: 3.0.0.34210

IntelHealthcare_com.dll: 3.0.0.34538

HealthcareSDK_JNI.dll: 3.0.0.34538

IntelDefaultExe.dll: 3.0.0.34538

vdIMCA.dll: 3.0.0.34538

ISDC_RS.dll: 2.5.1.0

1. That's tough, our application is 300mb, and I would have to build you an installer to make it easy to run. I'll see if I can stub it out into a simple exe.

Here is the log entries from when I scan a barcode:

W [2012-01-02 09:36:23.481] {S1-P2660-T2828} [Config] The following line is not formatted correctly and was ignored: /Intel/HealthcareSDK/ToolTray/DefaultHandler//MEDB-FriendlyName = Medical Application B

W [2012-01-02 09:36:23.481] {S1-P2660-T2828} [Config] The following line is not formatted correctly and was ignored: /Intel/HealthcareSDK/ToolTray/DefaultHandler//MEDA-FriendlyName = Medical Application A

W [2012-01-02 09:36:49.049] {S1-P4048-T2676} [Config] The following line is not formatted correctly and was ignored: /Intel/HealthcareSDK/ToolTray/DefaultHandler//MEDB-FriendlyName = Medical Application B

W [2012-01-02 09:36:49.049] {S1-P4048-T2676} [Config] The following line is not formatted correctly and was ignored: /Intel/HealthcareSDK/ToolTray/DefaultHandler//MEDA-FriendlyName = Medical Application A

R [2012-01-02 09:36:49.080] {S1-P4048-T2676} [HDF] Process name={C:\Program Files\Intel\MCA\Bin\IntelHealthcareToolTray.exe} id={4048} attached.

E [2012-01-02 09:36:49.096] {S1-P4048-T2676} [PluginInfo] Unable to find key [/Intel/HealthcareSDK/Plugin[2]/LEDSupport] in configuration file.

E [2012-01-02 09:36:49.096] {S1-P4048-T2676} [PluginInfo] Unable to find key [/Intel/HealthcareSDK/Plugin[2]/LEDOnOff] in configuration file.

R [2012-01-02 09:36:49.143] {S1-P4048-T2676} [PCF] Loaded {Device Control}. Plugin Version {3.0.0.34210}, Driver Version {4320}, Firmware Version {}.

E [2012-01-02 09:36:55.035] {S1-P4048-T1808} [BC_PLUGIN] Unable to connect to the Intermec device! Intermec code = 8 [Intermec: No device found]

W [2012-01-02 09:36:55.035] {S1-P4048-T1808} [BC_PLUGIN] INTERMEC::IntermecPlugin::PowerUp() FAILED: PS_DeviceUnresponsive

E [2012-01-02 09:36:55.035] {S1-P4048-T2676} [PCF] InitializePlugin: PI_PowerUp failed for device=Barcode Device

W [2012-01-02 09:36:55.035] {S1-P4048-T2676} [Device] Reset: Device unresponsive, attempting hard reset...

R [2012-01-02 09:36:56.002] {S1-P4048-T2676} [PCF] Loaded {Barcode Device}. Plugin Version {3.0.0.34210}, Driver Version {ISDC_RS:2.5.1.0}, Firmware Version {EA15 BF3_111_ CPU 0.3}.

R [2012-01-02 09:37:09.348] {S1-P4048-T2676} [PCF] Loaded {Barcode Device}. Plugin Version {3.0.0.34210}, Driver Version {ISDC_RS:2.5.1.0}, Firmware Version {EA15 BF3_111_ CPU 0.3}.

W [2012-01-02 09:37:09.603] {S1-P2660-T2828} [Config] The following line is not formatted correctly and was ignored: /Intel/HealthcareSDK/ToolTray/DefaultHandler//MEDB-FriendlyName = Medical Application B

W [2012-01-02 09:37:09.603] {S1-P2660-T2828} [Config] The following line is not formatted correctly and was ignored: /Intel/HealthcareSDK/ToolTray/DefaultHandler//MEDA-FriendlyName = Medical Application A

R [2012-01-02 09:37:09.633] {S1-P2660-T2828} [HDF] Process name={C:\Program Files\Ivara Corporation\Ivara Remote\bin\IvaraClient.exe} id={2660} attached.

E [2012-01-02 09:37:09.653] {S1-P2660-T2828} [PluginInfo] Unable to find key [/Intel/HealthcareSDK/Plugin[2]/LEDSupport] in configuration file.

E [2012-01-02 09:37:09.653] {S1-P2660-T2828} [PluginInfo] Unable to find key [/Intel/HealthcareSDK/Plugin[2]/LEDOnOff] in configuration file.

R [2012-01-02 09:37:09.703] {S1-P2660-T2828} [PCF] Loaded {Device Control}. Plugin Version {3.0.0.34210}, Driver Version {4320}, Firmware Version {}.

E [2012-01-02 09:37:15.587] {S1-P2660-T372} [BC_PLUGIN] Unable to connect to the Intermec device! Intermec code = 8 [Intermec: No device found]

W [2012-01-02 09:37:15.587] {S1-P2660-T372} [BC_PLUGIN] INTERMEC::IntermecPlugin::PowerUp() FAILED: PS_DeviceUnresponsive

E [2012-01-02 09:37:15.587] {S1-P2660-T2828} [PCF] InitializePlugin: PI_PowerUp failed for device=Barcode Device

W [2012-01-02 09:37:15.587] {S1-P2660-T2828} [Device] Reset: Device unresponsive, attempting hard reset...

R [2012-01-02 09:37:16.741] {S1-P2660-T2828} [PCF] Loaded {Barcode Device}. Plugin Version {3.0.0.34210}, Driver Version {2, 0, 1, 7}, Firmware Version {EA15 BF3_111_ CPU 0.3}.

Hi Paul,

I asked our developers to take a look at this and they were most concerned about the following lines from the log:

E [2012-01-02 09:36:55.035] {S1-P4048-T1808} [BC_PLUGIN] Unable to connect to the Intermec device! Intermec code = 8 [Intermec: No device found]
W [2012-01-02 09:36:55.035] {S1-P4048-T1808} [BC_PLUGIN] INTERMEC::IntermecPlugin::PowerUp() FAILED: PS_DeviceUnresponsive
E [2012-01-02 09:36:55.035] {S1-P4048-T2676} [PCF] InitializePlugin: PI_PowerUp failed for device=Barcode Device

We have seen the error Intermec code = 8 a while back when Intermec was fixing some issues in the ISDC DLL. The latest version of this Intermec DLL we recommend using is v2.5.2.0 which you should be able to get from Motion Computing. Alternative problems can be, either the device control is failing to power ON the device or the barcode hardware is not functioning properly. If the barcode device can be accessed from other applications or default handler, the port configuration for the barcode device is correct in the MCA configuration file. Some additional questions below for you:

1. When the Notepad.exe is in focus and the barcode button is pressed, does a barcode get scanned and displayed in the notepad?

2. Before using your application, can you launch the Motion dashboard application and toggle the power of the barcode device to see if that makes any difference?

3. Please confirm if you see this error in any other Motion tablet so we can rule out that it is not just an issue with the barcode reader hardware on one tablet.

4. From the MCA configuration file (IntelHealthcare.cfg) in the Intel program files install directory, look at the COM port configured for the barcode device. The key name can be something like IscpPlugin\SerialPort = 3. Are you accessing this port (COM3) directly in your program for any purpose?

5. Finally, can you set the MCA log level to debug, and then reproduce the issue again and send us the debug level log? This will show us the device control activities in more detail.

Thanks,
Steve

1. Yes, and it doesn't display the "RS Connection" dialog

2.When I went into the Motion Computing dashboardunder Pen & tablet, in the other devices group box. Enable Bar Code Scannercheck box was off. I turned it on and scanned again. Same result.

3.Will try, don't know if the company owns another one.

4. Yes it is assigned as SerialPort = 3. No we do not use serial ports in our application.

5.Debug level logging here: http://links.ivara.com/mca.zip

You say this:

"The latest version of this Intermec DLL we recommend using is v2.5.2.0 which you should be able to get from Motion Computing."

But the drivers page for the f5v lists the version I have installed 2.5.1.0

Another note: I tried both the demo applications in the SDK.

Selected callback
Pressed the Register button
Pressed thebarcode scanner button on the side of the unit

both of them failed with the message: Reservation to device lost. (Unable to get last error).

Hi Paul,

Thank you for your replies and the MCA log file. This helps us understand what is happening a lot better.

Since the MCA default handler is working, but the SDK route is not, I would like you to send us your MCA configuration file (IntelHealthcare.cfg) to take a look at.

The file should be at C:\Program Files\Intel\MCA\Bin\IntelHealthcare.cfg (If the default location was accepted when the platform driver was installed).

There may be some settings under the barcode plug-in and the MCA Application->default handler for barcode to look at to see if there are any obvious differences.

Thanks,
Steve

Hi Paul,

I believe we have found the problem. In looking carefully through the debug log we can see two different versions of the ISDC_RS.dll are being used. We suspect the older version of ISDC_RS.dll is causing this problem particularly for the application IvaraClient.exe. In the logs we can see that MCA Application and the ISV application IvaraClient.exe are using different versions of the ISDC_RS.dll.

For MCA Application:
R [2012-01-04 13:17:42.853] {S1-P4048-T4232} [PCF] Loaded {Barcode Device}. Plugin Version {3.0.0.34210}, Driver Version {ISDC_RS:2.5.1.0}, Firmware Version {EA15 BF3_111_ CPU 0.3}.

For IvaraClient.exe:
R [2012-01-04 13:17:50.871] {S1-P2940-T4356} [PCF] Loaded {Barcode Device}. Plugin Version {3.0.0.34210}, Driver Version {2, 0, 1, 7}, Firmware Version {EA15 BF3_111_ CPU 0.3}.

The application IvaraClient.exe is encountering an ISDC_RS.dll of version 2.0.1.7, which is showing this RS connection dialog. You likely have a version of ISDC_RS.dll (v2.0.1.7) lying around in the same directory where your application is residing. Since the applications from the Intel installation bin directory is using the ISDC_RS.dll from the system32 directory, those are not showing up this dialog.

Please search your entire system for the presence of the ISDC_RS.dll and check the versions. It is preferred to have only one copy of that in the system32 directory and it should be of the version that Motion suggested (2.5.1.0).

Thanks,
Steve

Thank you very much, this is exactly the problem. I went and removed the components installed for the toughbook cf-u1barcode reader which is also an intermec and everything worked.

Now I have to find out why they were included in our install image. But that's not your problem, that's our problem.

发表评论

登录添加评论。还不是成员?立即加入