hb_comm*

127 views
Skip to first unread message

Paola Bruccoleri

unread,
Aug 27, 2011, 1:26:41 PM8/27/11
to Lista Harbour-users
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
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


Marta

unread,
Aug 28, 2011, 9:05:15 AM8/28/11
to Harbour Users
Hello Paola,
Have you tested COM4: with "Hyperteminal" program?
regards,
Márta

Paola Bruccoleri

unread,
Aug 28, 2011, 11:55:19 AM8/28/11
to harbou...@googlegroups.com
El 28/08/2011 10:05 a.m., Marta escribió:
> Hello Paola,
> Have you tested COM4: with "Hyperteminal" program?
> regards,
> Márta
Hello Marta..
yes.. I tried with putty
the command AT returns OK, but the other commands AT return errors.

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

Reply all
Reply to author
Forward
0 new messages