serial communication and bluetooth (how to communicate between PDA and mobile?)
-
Hi ! I have a problem ... i have written a program that communicates with IR - serial communication with my pocket pc and my mobile phone. I used for that a part of the little tty-codesample, which you can find in the help of the Visual C++ tools of Microsoft. I changed there some communication options and it worked. But now i want to use that serial communication with bluetooth. Could that work? And one thing is, that i don't know exactly, how i have to setup the settings for that communication (serial). My current setup is like that: PortDCB.BaudRate = CBR_9600; PortDCB.fBinary = TRUE; PortDCB.fParity = TRUE; PortDCB.fOutxCtsFlow = FALSE; PortDCB.fOutxDsrFlow = FALSE; PortDCB.fDtrControl = DTR_CONTROL_ENABLE; PortDCB.fDsrSensitivity = FALSE; PortDCB.fTXContinueOnXoff = TRUE; PortDCB.fOutX = FALSE; PortDCB.fInX = FALSE; PortDCB.fErrorChar = FALSE; PortDCB.fNull = FALSE; PortDCB.fRtsControl = RTS_CONTROL_ENABLE; PortDCB.fAbortOnError = FALSE; PortDCB.ByteSize = 8; PortDCB.Parity = NOPARITY; PortDCB.StopBits = ONESTOPBIT; and: CommTimeouts.ReadIntervalTimeout = MAXDWORD; CommTimeouts.ReadTotalTimeoutMultiplier = 0; CommTimeouts.ReadTotalTimeoutConstant = 0; CommTimeouts.WriteTotalTimeoutMultiplier = 10; CommTimeouts.WriteTotalTimeoutConstant = 1000; That worked for the IR-communication, but not for bluetooth. Would be very fine, if someone knows a trick to setup for bluetooth communication !!! Greetings, Frank _____ easySMS for pocket PC _____ www.Siedler-Net.de/WinCE/easySMS/