Windows CreateFile() api failed with error code 1397 or 1238
-
Hello, I am having a HP laptop (Probook 6470b) with Windows 7 configuration and BroadCom stack (Driver Version : 6.5.1.1785). Windows CreateFile() API fails with error code 1397 or 1238 while trying to connect a device via serial COM port over Bluetooth. I am having an administrator account and antivirus has not been installed over laptop, all the data transfer happens through Bluetooth only. Application receives valid COM port still problem occurs. Request you to plz help me. . .. . Regards, Nilam
-
Hello, I am having a HP laptop (Probook 6470b) with Windows 7 configuration and BroadCom stack (Driver Version : 6.5.1.1785). Windows CreateFile() API fails with error code 1397 or 1238 while trying to connect a device via serial COM port over Bluetooth. I am having an administrator account and antivirus has not been installed over laptop, all the data transfer happens through Bluetooth only. Application receives valid COM port still problem occurs. Request you to plz help me. . .. . Regards, Nilam
ERROR_CONNECTION_COUNT_LIMIT
1238 (0x4D6)
A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.ERROR_MUTUAL_AUTH_FAILED
1397 (0x575)
Mutual Authentication failed. The server's password is out of date at the domain controller.I don't see any connection to
CreateFile()
in these; are you sure that is where the error occurrs? Perhaps you should show what it is you are trying to create or open with this call.Veni, vidi, abiit domum
-
ERROR_CONNECTION_COUNT_LIMIT
1238 (0x4D6)
A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.ERROR_MUTUAL_AUTH_FAILED
1397 (0x575)
Mutual Authentication failed. The server's password is out of date at the domain controller.I don't see any connection to
CreateFile()
in these; are you sure that is where the error occurrs? Perhaps you should show what it is you are trying to create or open with this call.Veni, vidi, abiit domum
Hello Richard, Thanks for your response. .. . :-D I have called GetLastError() API incase CreateFile()API fails, and through this only i get to know these error codes (1397 / 1238). I have done upgradation of Broadcom driver, but still facing the same problem. :( If i do the retry in a loop over CreateFile() API then it succeddes. But not able to get passed this API in 1st attempt only, which results into slower performance. Requesting you support . .. plz help . . .
-
Hello Richard, Thanks for your response. .. . :-D I have called GetLastError() API incase CreateFile()API fails, and through this only i get to know these error codes (1397 / 1238). I have done upgradation of Broadcom driver, but still facing the same problem. :( If i do the retry in a loop over CreateFile() API then it succeddes. But not able to get passed this API in 1st attempt only, which results into slower performance. Requesting you support . .. plz help . . .
-
But what is the name of the file that you are trying to open? Please provide full details of your code and your data.
Veni, vidi, abiit domum
Hello, I am trying to open a device over serial port using windows bluetooth api's. Following is the code snippet : BluetoothFindFirstRadio(&m_bt_find_radio,&m_radio); . . . BluetoothAuthenticateDevice( NULL, m_radio, &m_device_info, L"PASSKEY", SEVEN ); . . //m_device_info.Address contains the bluetooth address in the format "AA:BB:CC:DD:EE:FF" . . BluetoothSetServiceState( NULL, &m_device_info, &SerialPortServiceClass_UUID, BLUETOOTH_SERVICE_ENABLE ); If authentication fails then tried retry for 3 times. . . /* Logic has been implemented to find the com port created by BluetoothSetServiceState(. .. ) api. * / . . CreateFileA ( (LPCSTR)szComPortStr, GENERIC_READ | GENERIC_WRITE, NULL, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL ); szComPortStr is having the format : " \\\\.\\%s" where %s specifies the port number. If CreateFileA() fails then tried retry for 3 times. The CreateFileA() api fails for several times and works sometimes with same implementation. Thus the api shows unexpected behavior, resulting into application performance issue.