[fpc-pascal] Fpc make questions...

2020-09-11 Thread Bo Berglund via fpc-pascal
I am not very informed about how make works when building fpc installations, I have just used commands I have gathered online and it has worked... Now I would like to know: 1) Does make clean inside the fpc source dir erase ALL of the binaries produced by an earlier build inside that source tree?

[fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread James Richters via fpc-pascal
I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP, but everything I find seems to want to send and receive strings. Can someone please point me in the right direction on how to do this? Basically I want to make a connection to an IP

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread Michael Van Canneyt via fpc-pascal
On Fri, 11 Sep 2020, James Richters via fpc-pascal wrote: I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP, but everything I find seems to want to send and receive strings. Can someone please point me in the right direction on how t

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread Tony Whyman via fpc-pascal
A TCP connection is no more than a pair of byte streams - one in each direction. You have to define your own structure for each byte stream and the procedures for use i.e. a protocol. lt will be easier if you can use a standard protocol such as http. An http POST is one way to send an array of b

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread Bo Berglund via fpc-pascal
On Fri, 11 Sep 2020 16:58:50 -0400, James Richters via fpc-pascal wrote: >I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a >buffer of hex codes over TCP/IP, but everything I find seems to want to send >and receive strings. Can someone please point me in the right

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread James Richters via fpc-pascal
What I'm trying to do is control some different ethernet relays. They use MODBUS TCP. I'm trying to keep it as simple as possible. I found a modbus library for Pascal but it was way over complicated for that I need to do, and while it looks like it would do some cool stuff, the one function I

Re: [fpc-pascal] Fpc make questions...

2020-09-11 Thread Tomas Hajny via fpc-pascal
On 2020-09-11 21:51, Bo Berglund via fpc-pascal wrote: I am not very informed about how make works when building fpc installations, I have just used commands I have gathered online and it has worked... Now I would like to know: 1) Does make clean inside the fpc source dir erase ALL of the binari

Re: [fpc-pascal] Fpc make questions...

2020-09-11 Thread Bo Berglund via fpc-pascal
On Sat, 12 Sep 2020 01:54:20 +0200, Tomas Hajny via fpc-pascal wrote: >> 3) Does the following command overwrite existing files from an earlier >> attempt so the CPU target can be replaced? >> For ARMv7: >> make install OPT="-dFPC_ARMHF" PREFIX=/home/pi >> FPC="/home/pi/dev/ppcarm" >> For ARMv6: