RFID_STATUS WINAPI RFID_GetUSBOperationMode ( RFID_HANDLE32  readerManagementHandle,
LPUSB_OPERATION_INFO  lpUsbOperationInfo 
)

This function gets the USB operation settings of the RFID Reader.

Parameters:
[in] readerManagementHandle 
Handle returned by RFID_Login.
[out] lpUsbOperationInfo 
Pointer to USB_OPERATION_INFO.
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Handle provided is invalid
  • RFID_READER_FUNCTION_UNSUPPORTED Unsupported on Device-based readers like MC
Remarks:
See also:
RFID_SetUSBOperationMode
Remarks:
Example:
// USB Operation Mode
                RFID_HANDLE32 readerManagementHandle;
                RFID_STATUS rfidStatus = RFID_API_SUCCESS;
                LOGIN_INFO loginInfo;
                READER_TYPE readerType = FX;
                BOOL secureMode=0;

                _tcscpy(loginInfo.userName, TEXT("admin"));
                _tcscpy(loginInfo.password, TEXT("change"));
                _tcscpy(loginInfo.hostName, TEXT("157.235.208.51"));
                loginInfo.forceLogin = true;
                loginInfo.version = RFID_API3_5_1;

                if(RFID_API_SUCCESS == RFID_Login(&readerManagementHandle, &loginInfo, readerType, secureMode, NULL))
                {
                        // Get USB Operation Mode
                        USB_OPERATION_INFO usbOperationInfo;
                        rfidStatus = RFID_GetUSBOperationMode(readerManagementHandle, &usbOperationInfo); 

                        if(RFID_API_SUCCESS == rfidStatus)
                        {
                                if (usbOperationInfo.mode == ACTIVE_SYNC)
                                        printf("Operation Mode\t: Active Sync\t Allow LLRP Connection Over ride \t: %s",  usbOperationInfo.allowLLRPConnectionOverride ? "true" : "false");
                                else if (usbOperationInfo.mode == NETWORK)
                                        printf("Operation Mode\t: Network\t Allow LLRP Connection Over ride \t: %s",  usbOperationInfo.allowLLRPConnectionOverride ? "true" : "false");

                        }

                        // Set USB Operation Mode to Network (Virtual Network over USB)
                        usbOperationInfo.mode = NETWORK;
                        usbOperationInfo.allowLLRPConnectionOverride = true;
                        rfidStatus = RFID_SetUSBOperationMode(readerManagementHandle, &usbOperationInfo);

                        RFID_Logout(readerManagementHandle); // Logout so that Dll is cleaned up
                }


Generated on Fri Mar 4 02:25:32 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6