My company has deployed several hundred handheld computers with embedded bluetooth modules with BlueSoleil licences. Each computer runs a simple application that connects to a bluetooth printer via a virtual serial port. Most of the time, this works without any problems, but sometimes the connection attempt fails with one of the following errors:
BTSDK_ER_OPERATION_FAILURE: The operation fails for an undefined reason.
BTSDK_ER_UNKNOWN_HCI_COMMAND: HCI error “Unknown HCI Command (0X01)” is received.
What could be the reason for these errors? We have run thousands of tests (automated connect/disconnect) to try to find the root cause of the problem, but so far we have not found any clear pattern. It seems random.
We have seen this problem on many computers and many different printers, so it is not a hardware problem with a specific device. We are also sure that the printer is powered on, is connected to a power supply, has a working bluetooth module and is within range of the handheld computer (30 cm).
We are using BlueSoleil 7.0.370.0 (we have tried newer versions as well, I don't have a complete list of the versions tested at the moment).
Any suggestions would be highly appreciated.