I want to do some tests with serial functions.
I have a cell phone (Nokia 6120) connected via bluetooth to a computer
(COM4)
I'm trying to connect to the port like this:
cPort: = 'COM4'
if HB_COMINIT (cPort, 9600, 'N', 8, 1)
MsgBox ('connect')
else
MsgBox ('not connected')
endif
and always get the message "not connected"
I tried putting the port in the form: "COM4", "4", "\ \. \ COM4" (I
see sms.prg test) and the same.
If I use the example:
sms_Send( "\\.\COM4", "099257111", "hello", .T. )
communication is established with the phone, but does not send message.
(Download a program made in visual basic that if I connect to COM4, so
discard is another problem.)
Has anyone tried to use these functions?
very thanks
Anyone have any example of using these functions?
very thanks
byeeeeeee
> On aug. 27, 19:26, Paola Bruccoleri<pbruccol...@adinet.com.uy> wrote:
>> Hello...
>>
>> I want to do some tests with serial functions.
>> I have a cell phone (Nokia 6120) connected via bluetooth to a computer
>> (COM4)
>>
>> I'm trying to connect to the port like this:
>>
>> cPort: = 'COM4'
>> if HB_COMINIT (cPort, 9600, 'N', 8, 1)
>> MsgBox ('connect')
>> else
>> MsgBox ('not connected')
>> endif
>>
>> and always get the message "not connected"
>> I tried putting the port in the form: "COM4", "4", "\ \.. \ COM4" (I