i'm currently developing an application, that uses a usb bluetooth adapter to connect to three codebar readers, so far so good, they are connected, and should be working properly.
but after one hour, one hour and half, sometimes even less, they no longer can't work with the application, i can't get them to read anything.
and sometimes, as the application is starting up i get the following error:
Timestamp: 19-03-2009 21:02:34
Message: There is no explicit mapping for the categories 'Geral'. The log entry was:
Timestamp: 19-03-2009 21:02:34
Message: ERRO EVENTO LOAD FRMMAIN: The semaphore time-out period has expired.
# at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
and the datarecieved event to handle the data recieved from the bar code readers
like the example bellow:
Private Sub SerialPort1_DataRecieved(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
Try
Dim leitor As Integer = 1
Leitura.Leitura = SerialPort1.ReadExisting
InterpretaComando(Me, leitor, Leitura, Generica.Colaborador)
Leitura.Leitura = ""
Catch ex As Exception
Log("SerialPort1 error: " + ex.Message + " # " + ex.StackTrace)
Finally
SerialPort1.DiscardInBuffer()
SerialPort1.DiscardOutBuffer()
End Try
End Sub
i've searching and could not find any answer for this issue.
Question
paxa
hi.
i'm currently developing an application, that uses a usb bluetooth adapter to connect to three codebar readers, so far so good, they are connected, and should be working properly.
but after one hour, one hour and half, sometimes even less, they no longer can't work with the application, i can't get them to read anything.
and sometimes, as the application is starting up i get the following error:
and the datarecieved event to handle the data recieved from the bar code readers
like the example bellow:
Private Sub SerialPort1_DataRecieved(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived Try Dim leitor As Integer = 1 Leitura.Leitura = SerialPort1.ReadExisting InterpretaComando(Me, leitor, Leitura, Generica.Colaborador) Leitura.Leitura = "" Catch ex As Exception Log("SerialPort1 error: " + ex.Message + " # " + ex.StackTrace) Finally SerialPort1.DiscardInBuffer() SerialPort1.DiscardOutBuffer() End Try End Subi've searching and could not find any answer for this issue.
any ideas?
help would be appreciated.
thanks in advance
Link to comment
Share on other sites
5 answers to this question
Recommended Posts