Re: recieving 3 value in uart
What do you mean? can it still be fixed?
The pupose of the USB dongle is to connect to the bluetooth module which runs serial port profile, just like having a serial connection but through bluetooth. This is the setup.
But the thing is it should be able to read because the terminal program can read it.
Re: recieving 3 value in uart
Have you checked to see if there is a support forum for the hardware in question? Have you checked for drivers? Known issues and so on?
Re: recieving 3 value in uart
The hardware is just a USB dongle and a Bluetooth module it don't require a driver to run them.
Although I use a software to run the dongle, a software called Bluesoleil.
But this doesnt seem to affect.
What about portable versions and old version of Vb 6, will it affect?
It's not service pack 6, but If I use service pack 6 will it be better?
Re: recieving 3 value in uart
All USB devices require a driver.
I take it by your response that you have not checked for a support forum or drivers for this device.
You should be using SP6.
Re: recieving 3 value in uart
The USB device is just a USB dongle, it can run directly. The software I used to run it is Bluesoleil which can run any USB bluetooth dongle.
I will try to enquire if they have some issues similar to this.
So what are the other solution besides this?
Re: recieving 3 value in uart
You do not seem to understand. All USB devices require a driver. This driver may be included in windows but never the less it is required. I have no idea what this bluesoleil is or what you mean by it can run any USB bluetooth.
Your USB device supposedly is mimicing a serial port and translating that into blue tooth so it should be using a driver that causes it to show up in control panel as a serial port. If you are needing to run this software as well then that could be the root of the problem.
I have both serial USB devices and Serial Bluetooth devices both of which work fine with MSComm and neither require any software other than a driver which is required only by the USB devices in order for the system to know that they are serial ports.
At any rate the problem here would seem to be either that you do not have the proper driver installed or this bluesoleil software.
Re: recieving 3 value in uart
I think the driver is included in the windows and the software bluesoleil because they automatically install the dongle when it is detected.
I'm using a BLUETOOTH DONGLE by the way to connect to a module that mimics a serial port. The Bluesoleil software is used to detect and assign a port in the for the module.
So what could the problem with this?
Re: recieving 3 value in uart
Did you look for a support forum for your device?
Re: recieving 3 value in uart
no forum just email they say that they had no issue regarding similar to this one
The fact that a terminal program like realterm can receive and read the port, it puzzles me where the error could be?
Re: recieving 3 value in uart
We could start debugging the code, checking things closer.
If you have set up the OnComm() event like we discussed, you can put some debug statements in, like
Code:
...
Case vbMSCommEvReceive
debug.print MSComm.InputLen
...
Re: recieving 3 value in uart
I never thought of that. I suppose in Inputlen=0 that could be a problem.
Re: recieving 3 value in uart
If reading from .Input when InputLen is 0, this could reveal the problem.
In this case we must put an If .InputLen > 0 before the .Input statement.
I really wonder why the terminal program can read successfully and we can not...
Re: recieving 3 value in uart
Inputlen is a user setting is it not? Not sure about MSComm but in SAX comm a setting of 0 means read the entire buffer any other value means read this number of characters.
Re: recieving 3 value in uart
Well, yes so it seems. I was falling for that, too.
But look, you were also going on about doing an If MSCOmm.InputLen > ) then do the input. :)
But as it seems we were only referring to the wrong property.
It is MSComm.InBufferCount which reflects the number of characters waiting in the InBuffer to be read.
So in fact what we want to do is
If MSComm1.InBufferCount > 0 Then i$ = MSComm1.Input, while we have set
MSComm1.InputLen to 0 to signify that we want to read all of the buffered characters.
Re: recieving 3 value in uart
I am thinking that either this device is not compatiable with MSComm or there is a property set on MSComm that should not be set and we have not been told about it as of yet.
I would suggest that the OP upload the project and let us have a look at the code and properties.