Search found 11 matches

by CPSEric
Tue Sep 01, 2015 9:50 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

I would say it is possible to build anything using LiveCode, but I have had lots of trouble with the syntax. Manual is not clear and has errors.
by CPSEric
Thu Jul 09, 2015 9:59 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Figured that one out too.

write numToChar(0xFE) & numToChar(0x08) to driver COM1

By the way it works on version 6, 7 and 8.

You guys are great!

Thank you so much
by CPSEric
Thu Jul 09, 2015 9:40 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

FYI - To those that attempted to help and any other newbie needing to do this.
This is the code that made it work:

on mouseUp
set the serialControlString to BAUD=38400, PARITY=N, DATA=8, STOP=1
open driver COM1 for binary update
write numToChar(0xFE) to driver COM1
write numToChar(0x08) to ...
by CPSEric
Thu Jul 09, 2015 7:30 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

I like what Simon says.

But please, let us not blow any gaskets. Klaus thank you too.

Is it Klaus Major? Have I not seen your name in several websites browsing for an answer to my dilemma?

Thank you all.
by CPSEric
Thu Jul 09, 2015 5:16 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Actually, I installed version 6 and using this code:

on mouseUp
set the serialControlString to BAUD=38400, PARITY=N, DATA=8, STOP=1
open file COM1 for binary write
write "0xFE, 0x08" to file COM1
close file COM1
end mouseUp

With the above code I can at least see that the board I am trying to ...
by CPSEric
Thu Jul 09, 2015 2:42 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Thank you Jacque, Klaus and Simon for trying to help me. This is so frustrating, I feel this is something simple to do, but for some reason it is just not working.

Went ahead and installed version 6, but that did not do it either.

I have a feeling that the code I came up with is not opening the ...
by CPSEric
Wed Jul 08, 2015 9:25 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Serial communication is not dead, someone should have the answer. . . :-(

Anybody out there?
by CPSEric
Wed Jul 08, 2015 7:16 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Sorry I missed that, but in all the tutorials I have read it has the content after the write command within parenthesis.

Made the change to:

on mouseUp
set the serialControlString to "BAUD=38400, PARITY=N, DATA=8, STOP=1"
open driver "COM1:" for binary update
write "0xFE, 0x08" to driver "COM1 ...
by CPSEric
Wed Jul 08, 2015 6:19 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Thank you so much for your response, I really appreciate it.

Went ahead and changed the code to:

on mouseUp
set the serialControlString to "BAUD=38400, PARITY=N, DATA=8, STOP=1"
open driver "COM1:" for binary write
write (0xFE, 0x08) to driver "COM1:"
end mouseUp

but it still did not work, it ...
by CPSEric
Wed Jul 08, 2015 5:05 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Re: Serial Port. Com1 communication

Okay, I have been trying. This is what I have so far:
I think it should be working, but it is not.
Any more guidance?

on mouseUp
set the serialControlString to BAUD=38400, PARITY=N, DATA=8, STOP=1
open driver "Com1:" for binary write
write (0xFE, 0x08) to driver "Com1:"
end mouseUp
by CPSEric
Tue Jun 30, 2015 8:12 pm
Forum: Windows
Topic: Serial Port. Com1 communication
Replies: 26
Views: 26328

Serial Port. Com1 communication

I would like to send some hexadecimal codes to a vending machine via the com port.
Does anyone have the syntax needed to do this?

So far what I have:

on MouseUp
open driver "COM1:"
<----- what goes in here to send the codes
close driver "COM1:"
end mouseUp

Any guidance would be deeply ...