Check if RS507 is connectet / paired?

N Nico Gruener 3 years ago
0 1 0

Hello,
 
i looking for a solution to check if a RS507 scanner is connectet to a MC9190 CE6 device.
Can any one please provide a sample VB / C# code how i can do this?
 
I have the EMDK v2.7 installed.
 
I connect the RS507 with the MC9190 CE via Pairing Barcode.
 
Thanks,
Nico

Please register or login to post a reply

1 Replies

M Michael Hillen

Hi Nico,

I made this with a combination of RS507 and WT4090 and WT41N0 with EMDK v2.6 - v2.9 over the StatusNotify event.

The event function:
private void myReader_StatusNotify(object Sender, EventArgs e)
{
    // Get ReaderData
    Symbol.Barcode.BarcodeStatus TheStatusData = myScanAPI.Reader.GetNextStatus();
   
    switch (TheStatusData.State)
    {
        case Symbol.Barcode.States.WAITING:
            break;

        case Symbol.Barcode.States.IDLE:
            break;

        case Symbol.Barcode.States.READY:
            break;

        case Symbol.Barcode.States.BT_CONNECTION_STATE_DISCONNECTED:
            // this is the disconnect event you want
            isReaderConnected = false;
            break;
        case Symbol.Barcode.States.BT_CONNECTION_STATE_CONNECTED:
            // this is the connect event you want
            isReaderConnected = true;
            break;

        default:
            break;
    }
}

// I declare the handler globally
private EventHandler myStatusNotifyHandler = null;

// Create/Define the status notification handler.
myStatusNotifyHandler = new EventHandler(myReader_StatusNotify);

// And finally attached it to the Reader like
myReader.StatusNotify += StatusNotifyHandler;

I have most of this done in my own class (myScanAPI), so this only a short (and maybe not complete) explanation of how you can do it.

CONTACT
Can’t find what you’re looking for?