C
colin
Hi,
Im having a tiresome amount of trouble with using a bluetooth serial link.
The receiving end is a bluetooth-rs232 module conected to my embeded system.
The PC has a little usb bluetooth dongle, ive tried a another dongle with
widicom software
as I was having problems with the IVT bluesoleil software.
that seems to have got rid of some other problems,
but I stil find that every now and then my buffer isnt getting flushed.
im using a std IO.Ports.SerialPort data item picked of the form design
toolbar to access the port.
im using BaseStream.Flush() to flush the port
it all seems to work ok but
once in a while it gets in a state where it doesnt seem to flush the port
properly.
i send a command but it doesnt get sent,
when I send another command it nudges the other one and they both arrive.
always one command on its own never gets through.
once the serial port is closed and reopened it sorts itself out.
it usually gets into this state when im starting/stopping the program to
debug/modify it.
am I using the right data items/functions,
or is there something specific with bluetooth wich I need to use to flush it
?
does it make any difference what character I use to mark my end of message ?
it seems to be receiving messages back ok.
thanks
Colin =^.^=
Im having a tiresome amount of trouble with using a bluetooth serial link.
The receiving end is a bluetooth-rs232 module conected to my embeded system.
The PC has a little usb bluetooth dongle, ive tried a another dongle with
widicom software
as I was having problems with the IVT bluesoleil software.
that seems to have got rid of some other problems,
but I stil find that every now and then my buffer isnt getting flushed.
im using a std IO.Ports.SerialPort data item picked of the form design
toolbar to access the port.
im using BaseStream.Flush() to flush the port
it all seems to work ok but
once in a while it gets in a state where it doesnt seem to flush the port
properly.
i send a command but it doesnt get sent,
when I send another command it nudges the other one and they both arrive.
always one command on its own never gets through.
once the serial port is closed and reopened it sorts itself out.
it usually gets into this state when im starting/stopping the program to
debug/modify it.
am I using the right data items/functions,
or is there something specific with bluetooth wich I need to use to flush it
?
does it make any difference what character I use to mark my end of message ?
it seems to be receiving messages back ok.
thanks
Colin =^.^=