CDATA[Microsoft.PointOfService.PosControlException: message Access to the port 'COM10' is denied./ (anotrher error ''communication (port) fault'' - windows-7

I have a software which is on the retail machine (self check out) installed:
In the device manager, I did not receive any error like, some device is unplugged.
The functionality of the application is this:
Each device of the payment station coin recycler, note acceptor, note distributor are installed on serial ports, and USB ports, these devices send information to the application thru the ports and com:
These payment devices are installed with no issues, but after some time I found this error in event viewer (windows7) :
Microsoft.PointOfService.PosControlException: Coins device is not initialized
ErrorCode: Failure
ErrorCodeExtended: 0
and
Microsoft.PointOfService.PosControlException: Notes acceptor returned message Access to the port 'COM10' is denied.
ErrorCode: Failure
Note that in the device manager is nothing unplugged and also devices are in the normal mode, no error identified.
Can somebody please explain why, I receive the above errors, what can I improve?
I need to create a new driver to check the communication of the ports, to close and open the ports.(and if yes please advise how ).
What should I check per total to not receive these errors anymore?
thank you.

Please note that Windows version is Embedded (special for retail created)

Related

USB CDC communication freeze on Windows

I have problem with communication via USB CDC with Windows. On Linux or Mac everything work good.
So, when I try to connect to my COM port I get notification from PUTTY "Unable to open communication to COM2. Unable to configure port.
It is my own device based on Rx63n uC, I transmit in FullSpeed standard, packet in size less than 64 bytes. I'm used 2 endpoints for bulk transfer IN/OUT.
In USBLyzer I got information thatSTALL packet is received from my device after error (USBD_STATUS_CANCELED).
I used driver from Windows 10 usbser.sys.
Any ideas what is wrong?
I forgot to add that in USBLyzer I see a lot of my packets, and after transferred some data it generate error as above.

Getting error while getting device data from watson iot platform using Rest API

I have added 2 type of devices in Watson-Iot platform, one is Iot-Bridge and one is gateway.
When I make the API call to get device info for gateway type of device, it gives me the information but same type of call for Iot-Bridge type device says NotFound.
e.g. https://internetofthings.ibmcloud.com/api/v0002/organizations/{orgId}/device/types/gateway01/devices/{deviceId}
gives device Info but below call gives NOT FOUND, however there is a device by that name as /bulk/devices gives list of all devices.
https://internetofthings.ibmcloud.com/api/v0002/organizations/{orgId}/device/types/iot-bridge/devices/{deviceId}
Can anyone provide any idea?
Also how can I get all the information for data sent by these devices to Iot Platform? API endpoint is given but its giving Bad Request.
I am glad to hear you identified the device info endpoint was checking for cases sensitivity and resolved the problem by correcting the case of the device type name.
An application can subscribe to monitor the status of one or more devices, for example:
Subscribe to topic iot-2/type/device_type/id/device_id/mon
Note: To subscribe to updates from more than one device, use the MQTT "any" wildcard character (+) for any of the following components:
device_type
device_id
For managed devices, you can use the API to get log connection information to determine when managed devices have connected and disconnected.
You may find this recipe for displaying status of devices useful: https://developer.ibm.com/recipes/tutorials/display-status-of-registered-devices-on-watson-iot-platform/

Unable to Open SCOAudio connection with phone

I am trying to use IOBluetooth framework on OS X 10.8.2 to connect with the bluetooth enabled phones emulating computer as a hands free device. I can successfully make a connection with the phone and phone can recognise the connection as a HandsFree connected to the phone.
But when I try to make a call with the phone and want to send the audio to the mac (by selecting the source as handsfree), the audio never reaches the computer.
As at this point the bluetooth framework tries to open a SCO Audio connection with the device, but the connection establishment is never successful and I get the error code 0x0D status code in scoConnectionOpened status.
I am using IOBluetoothAddSCOAudioDevice function to attach the SCO Audio device with bluetooth device and it is always successful.
//btDevice is paired
res=IOBluetoothAddSCOAudioDevice((IOBluetoothDeviceRef) btDevice,NULL);
if(res != kIOReturnSuccess)
{
self.error.title = [NSString stringWithFormat:
#"Could not attach the Audio device. Try paring device again"];
}
The console log says
24/11/2012 4:02:13.000 PM kernel[0]: [SendHCIRequestFormatted] ###
ERROR: [0x0428] (Setup Synchronous Connection) -- Send request failed
(err = 0x000D (kBluetoothHCIErrorHostRejectedLimitedResources))
24/11/2012 4:02:13.000 PM kernel[0]: REQUIRE_NO_ERR failure: 0xd -
file:
/SourceCache/IOBluetoothFamily_kexts/IOBluetoothFamily-4090.4.33/Core/Family/Drivers/IOBluetoothSCOAudioDriver/IOBluetoothSCOAudioDevice.cpp:872
Although console log says limited resources but I have tried it with multiple phones having their batteries full.
I am stumped on this and just thinking if I need to do any thing special or different?
Thanks in advance for much appreciated help.
This error ("Connection Rejected due to Limited resource") typically happens when a T2 request is sent to a T1-only SCO listener. If you read the patch notes to version 5 you can get a discussion about this problem linux-bluetooth v5 patch notes

error 734 the ppp link control protocal was terminated

I want to connect my mobile internet to pc using bluetooth device. I installed blue soleil software in my pc.
Steps:
I can able to pair my cellphone with pc bluetooth device.
I selected my device and select bluetooth dialup networking service.
It asks an alert "DUN connection with device?" in my mobile.
After Clicked "YES", connect bluetooth DUN connection window opens.
In that window there was a fields "User Name", "PassWord" which i leave empty and then in "Dial = *99***1#" and click Dial button.
After that it say "Registering your computer on the netwok.." and become fails.
The Error is as "error 734 the ppp link control protocal was terminated"
The same procedure should be followed for Nokia 3110c it works fine.But in my samsung mobile c3053 it not connected also i am tryig with samsung corby pro BT3510 mobile .
Is there any settings changes needed for samsung mobiles ?
When I've seen this error in the past, it generally indicates that the username and password for the connection is not correct. (Many GPRS configurations do not require a username and password, but some do.)
Or, the GPRS APN is not configured correctly.
If you are trying to use the device as a general purpose modem, it can be difficult to set the GPRS APN without extra dialer software. The easiest way is to add an "AT+CGDCONT" command to the "extra initialisation commands" that can be configured for the modem in the Windows control panel.
A specific example of what would be configured for this "extra initialisation command" is:
AT+CGDCONT=1,"IP","internet"
You would replace internet in this example with the name of the GPRS APN to which you want to connect.
Also, you can refer the following link for checking the connection:
http://support.microsoft.com/kb/318718
I almost got mad as a result of this problem few days back. I tried all the solutions suggested in different forums but to no avail.
My issue was not of insufficient airtime as suggested by some folks, nor the ppp link settings but because i had a space before the username input in my username and password field input in my dial up box.
So folks, if you are getting a PPP link termination error, check user name and password fields carefully for a single SPACE in this field will automatically call up this error when you dial. eg
My user name is: 7032564825#bluebroadband.com
Password: 1234
A space before the first number (that is 7 as in the example above) will trigger this error message. So guys give it a check before you search for other options like airtime and dial up settings.
If you get "734 the ppp link control protocal was terminated" with a SAMSUNG mobile phone, the problem is in the phone. On Phone Settings -> PC Connections select that your phone will always be in "PC Studio" mode. If you select other modes or "Ask each time" you will get 743 when trying to use the phone as a modem.
the solution is very simple. you just need to put extra initialization command.
Please don't read too much tech about ppp and its meaning.
i had same problem in 2006 what you have to do is in modem( the active e.g. bluetooth DUN modem or hardware modem or mobile as a modem) just go to propertise of : my computer>device manager> modem
then modem propertises> advance> Extra Initialization command
here you just have to put command
e.g i use bsnl net so command will be:
at+cgdcont=1,"ip","bsnlnet"
bsnlnet is APN, if you use airtel, anp is "airtelgprs.com"
I too faced the same problem, I even searched on line for a solution, but I figured my self based on the instructions that were given from the customer service centre. I have been using a bsnl network, to avoid ppp link control termination problem
Activate GPRS by sending START sms to BSNL service initiated number
Wait for some time at-least 2 hours to get activated after activation you will receive a activation message.
Since bsnl network, we have to create a APN - Access Point Network
i) create an APN as - bsnlnet
ii) password as 1111
Now change your access point network as bsnlnet switch on your mobile data.
Enjoy Internet.....

Locked Serial Port on Vista

I'm working on an App that talks to a serial port, and on my development machine, I'm running Vista, and that serial port is a Bluetooth connection. Occasionally, the serial port gets caught in a state where my App can no longer connect to it. In .net I get an IOException with a message reading "Element not found."
I've tried restarting the App, connecting with other Apps (a communications client like HyperTerm) but nothing helps. I can't find any more specific error message, and nothing is logged to the machine's event logs. The device manager tells me the port is "working properly."
Is there any way to find out which process and or .dll has possession of a serial port, and/or force a port closed?
If it makes any difference, my App is in C#, but structurally, it's not convenient to open and close the port with a "using" statement.
Thanks,
Andy
To the best of my knowledge you can't close a serial port that you do not have the handle to. My experience of Bluetooth serial ports is that they can end up getting mapped to different COM port numbers at connection time, and can sometimes leave bogus COM ports when disconnected. For example, I currently have no bluetooth devices connected, but if I go into device manager, I see a total of eleven COM ports listed as Bluetooth serial port The properties on each of these ports show the device as working and available, and I can usually open these ports though I get occasional failures. My work around for this is to force COM port numbers for connected deviced, through properties / advanced / COM port number. I'm not sure if the problem is driver related (IVT corp in this case) or a problem with the way Windows manages blutooth serial ports.
Sorry I couldn't be of any more help.

Resources