After a complete day of being occupied by the same problem, i’m taking my chances on the forum.
Like the title says: The serial connection between my Domino and my PC, has consistent corrupted data.
Loopbacks. From domino to domino works perfect. I even succeeded in letting COM1 communicate with COM2. The loopback at the PC-side also works perfect. Terminal tools indicate the same data coming in, as what goes out.
What doesn’t work:
Connecting A serial port from the Domino to my PC.
Sending data from the domino to the PC, e.g. byte 0x10, is received by the PC as byte 0x67.(for example)
The same happens the other way around. When i send 0x10 with my PC to the Domino, the domino receives it as byte 0x67.
But when i re-wire the system, to be loopbacks again, they both receive 0x10 again!
So, the hardware works. I must conclude.
Thats why i checked(an awefull lot of times), the settings on both the Domino and my PC. They both are set to a baudrate of 9600, and have the same parity, stopbit and databit settings. I also tried raising the baudrate on both ends, but this also had no effect. I even printed out the ‘current’ values of the SerialPort, when it was reading.
Another thing i tried was going back to example code. But this didn’t had any effect whatsoever. I checked the values by debugging, using visual studio, to inspect the values of the inputbuffers, but they appear to be the same as what got printed.
Out of desperation, i even compared the bitpatterns of what i was sending on one hand, and what i received on the other hand. But this also didn’t have the answer.
Weird thing is, i got it to work in my first or second project! So i even went back to using that code, but that also didn’t have any effect.
I’m now checking if my GPS module still works or not. Thats also connected to a serial port. (the UEXT connector)
Does someone have another idea, i havent tried yet? I’m willing to try (almost) everything!