Search found 22 matches

by tcbcats
Tue Nov 24, 2020 9:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Calculating 8 bit checksum from a series of bytes?
Replies: 2
Views: 109

Re: Calculating 8 bit checksum from a series of bytes?

Thanks it worked... had to set 255 to 256 in order the keep the correct count sequence.
by tcbcats
Mon Nov 23, 2020 12:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Calculating 8 bit checksum from a series of bytes?
Replies: 2
Views: 109

Calculating 8 bit checksum from a series of bytes?

I am doing some serial communication and need to calculate a 8 bit (one byte) checksum by adding up a series of 10 bytes. I have been able to do it but when the checksum value goes over 255 is keeps counting up and ends up in a 16 bit value. I need the 8 bit value to roll over from FF and keep the c...
by tcbcats
Mon Aug 31, 2020 9:12 pm
Forum: Windows
Topic: extracting highbyte and lowbyte into 16 bit from serial port
Replies: 1
Views: 828

extracting highbyte and lowbyte into 16 bit from serial port

I have 2 bytes from a serial port that represent a 16 bit number. They arrive as highbyte and lowbyte of a 16 bit word. I need to convert the 2 bytes back into a 16 bit number so I can show it in a text field. Does anyone have an example on how to get the 2 received bytes back into a 16 bit number? ...
by tcbcats
Thu Dec 07, 2017 6:01 am
Forum: Developer Services Marketplace
Topic: Looking for live code developer in Las Vegas
Replies: 0
Views: 2454

Looking for live code developer in Las Vegas

We have projects that require the use of PC serial and USB ports to support external device communication. The projects are for GUI diagnostic tools that support out line of motor controllers. We would like the developer to be local so physical testing and debugging of the end application can be don...
by tcbcats
Sun Feb 21, 2016 1:06 am
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

I added a note to pending bug report # 14612 about serial port read not working.
This bug report is related to this issue and it looks like it is still under review.
I should get an Email if someone responds or adds to the bug report.
Tom
Las Vegas
***
by tcbcats
Thu Jan 28, 2016 5:25 am
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

I did some file read tests as in the code below. The read from a normal file works but reading from a com port file does not follow the read defines in the same way. The memory leak is only there on LC ver 7.04 and above when reading continuous serial data. I would sure like to get some input from a...
by tcbcats
Wed Jan 27, 2016 10:12 pm
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

I am going to play with real file reads vs comm port file reads an see what I can find.
If I can get real files to read one char at a time, then I will report the problem.
I also want to see if the memory gain issue happens on real file reads like the comm port reads.
Thanks for your help.
Tom
***
by tcbcats
Wed Jan 27, 2016 8:23 am
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

If I uncheck the search for required inclusions in the "stand alone app settings" My app saves without the rev speech dll in the stand alone application. If I ask the save to look for the external helper files, it adds the rev speech thingy to every one of my application standalone s. I have no idea...
by tcbcats
Sun Jan 24, 2016 9:41 pm
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

I do use the beep command on a button that opens the serial port and starts the readport code that is posted here. When you use the beep in LC, the standalone app also adds the revspeech to the build and you have to remember to close it down when you exit the application. I use the "revUnloadSpeech"...
by tcbcats
Sat Jan 23, 2016 9:41 pm
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

Thank you for the reply. Yes I am in a read loop where I read the com port for 1 until I get the start chr of "*"... Then I read in a loop to collect the serial packet of 50 characters or so until I get the end chr "#. Then I start over because the next packet will arrive in about 300 milliseconds. ...
by tcbcats
Sat Jan 23, 2016 8:25 am
Forum: User Groups and Events
Topic: Any LC Coders in Las Vegas?
Replies: 0
Views: 3003

Any LC Coders in Las Vegas?

Are there any LC coders in Las Vegas?
by tcbcats
Sat Jan 23, 2016 4:35 am
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

on readPort if the hilite of btn "Port open" = true then put the label of btn "Port" into thePort read from file thePort for 1 -- looking for * as first chr of packet. If it = "*" then --lock screen put empty into fld "recField" -- clear recField set the backgroundColor of button RX to "green" put ...
by tcbcats
Fri Jan 22, 2016 5:35 am
Forum: Windows
Topic: Undo, Cut, Paste don't work in Windows Code Editor
Replies: 18
Views: 9545

Re: Undo, Cut, Paste don't work in Windows Code Editor

Same problem here on LC 7.0.4 thru 8.0 on Windows XP It happens in the Script Editor. Cut works but paste stops working and you have to restart LC to get it back working. It is a cut and never get your stuff back function... :cry: Don't know what is setting it off but is is a pain to have to restart...
by tcbcats
Thu Jan 21, 2016 10:14 pm
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Re: Serial communications memory use increases with time

This is the code in question. The memory usage keeps increasing as the app runs. It works the same on 7.0 through 8.0 I have tried several parse methods that all work. The leak seems to be coming from the read file for 1 part of the code. The serial packet begins with a * and ends with a #. on readP...
by tcbcats
Wed Jan 20, 2016 5:06 am
Forum: Windows
Topic: Serial communications memory use increases with time
Replies: 14
Views: 6401

Serial communications memory use increases with time

I am receiving a 40 byte serial packet at 9600 baud into my live code app every second. I have used 5.5.3 through 7.1 and have observed what looks like a memory leak when the application is running and receiving serial data. The same memory increase happens in development mode and in my stand alone ...

Go to advanced search