I will do some more testing, it could have been that my testing methodology was flawed. I will play around some more with your example.
yes indeed, it is getting truncated. The FT8 encoding found in Jason's NT7S JTEncode Arduino library will encode free text but nothing else. and since my call is six characters the grid gets truncated hence the reason for my journey of discovery down the path of digging into the WSJT-X source to understand how the standard message with non-standard call logic works. If I had a five character call I could have just stayed blissfully ignorant, However, nothing ventured, nothing gained. If nothing else I have developed a feel for the internal workings of WSJT-X and it's various modes. cheers, Graham ve3gtc On Thu, Jan 2, 2020 at 9:39 PM Pete <[email protected]> wrote: > Hi Graham, > > > I tried long long and uint64_t, and ULL. They all compile but in the > > end are still only 4 bytes. There are some online posts to the > > contrary but I couldn't get more than 4 bytes. > > I don't have any Arduinos any more but I tested some simple code on a > Teensy2 which is still a 328 processor and the Arduino IDE. > > It prints the sizeof a uint32_t variable as 8. The problem you can run > into with uint64_t is when you try to print it because the serial class > only handles 32-bit integers. You have to print the variable in two > pieces as shown in this simple sketch: > > volatile uint64_t testing_i; > void setup(void) > { > Serial.begin(9600); > while(!Serial); > delay(1000); > > Serial.print("Sizeof uint64_t = "); > Serial.println(sizeof(testing_i)); > > testing_i ^= 0xffffffff12345678ULL; > Serial.print((uint32_t)(testing_i >> 32)&0xffffffff,HEX); > Serial.println((uint32_t)testing_i&0xffffffff,HEX); > } > > void loop(void) > { > } > > > > BUT CQ VE3GHM FN25 gets truncated and drops the 5 > > That string is 14 characters long, which suggests that it is being > truncated to 13 characters as if it was free text. > > 73 de Pete VE5VA > > > _______________________________________________ > wsjt-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wsjt-devel >
_______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
