7i73 LCD shows rubisch
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
If I understood correctly the lcd hal-sw is writing to something like a "terminal".
Is there a way that this can be done slower? Maybe only 5 times per second?
Or give some pause before writing the next "terminal-screen".
Is by the way always the complete "screen" written or only the difference?
Mike
Please Log in or Create an account to join the conversation.
That push did not have any effect on the lcd display for me. And as it did not touch the process data part of the driver code, I am at a loss to explain the apparent correlation.I mentioned in an ealier post, the push that destroid the display communication.
I also found that the display worked just as well for me before and after the push, so I have no way at all to debug the problem.
I _did_ find that for very short display strings ("A|B|C|D") the display was jumpy and bad with _both_ 2.7 and the latest 2.8, so I fixed that hoping to fix the underlying issue.
We have also found a long-standing race condition in the sserial driver (also present since at least 2.6. That has been fixed and _also_ has no affect on the LCD on my test system.Can you please explain, why you do change lcd.comp? It might not be clean coded, but the communication problem must be related to something else.
Which working branch?I have just reseted the computer from my machine to the working branch and since that step, my displayworks fine!
Please Log in or Create an account to join the conversation.
thanks for explaining the relations.
I just reseted hard to
reseted master hard to be 6f0f2cafb89a914ea392c65d2e3dcbe754b1638d
(control.c: honor fractional accels for wheel jogging)
working correct!
reseted hard to d92f69438023d62a66171a785a50d33f8cea32c6
(Smart Serial: Start to enable parameter setting via HAL)
broken!
Since the reset the display shows all pages correct, if i update to smart serial parameter enable branch, the display shows the broken / jumping letters.
Norbert
Please Log in or Create an account to join the conversation.
Hallo Andi,
reseted master hard to be 6f0f2cafb89a914ea392c65d2e3dcbe754b1638d
(control.c: honor fractional accels for wheel jogging)
working correct!
The diff is hard to make sense of as I moved a lot of code to different places, and also accidentally introduced a lot of white-space changes.
github.com/LinuxCNC/linuxcnc/compare/6f0...1656abb536fd4c550fcd
But the critical code is hm2_prepare_tram_write:
github.com/LinuxCNC/linuxcnc/blob/2.7/sr...mot2/sserial.c#L1173
And specifically the part where it writes the stream data in line 1307
The above is as it was in 2.7.
This is the same code in master:
github.com/LinuxCNC/linuxcnc/blob/master...mot2/sserial.c#L1771
Which is, admittedly, now factored out into a function.
The parameter setting code should not even run unless there are changes to parameters in the HAL file. (and even then only if the HAL values are different to those stored in the remote)
Maybe we need to compare ethernet traffic logs to see if there are differences?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
(sserial_port_0=22xxxxxx)
That is "fast display" mode. It makes no difference here (it works perfectly in either mode), but it's an easy experiment.
Please Log in or Create an account to join the conversation.
Try commenting out TWOPASS = true
I finally managed to make a config misbehave, and turning off twopass fixes it.
The problem seems to be that TWOPASS strips \n characters from argument strings.
Try Dewey's new branch, I think it might fix the problem (fixes it here).
github.com/LinuxCNC/linuxcnc/commit/185f...6757e77d9bc983b8fef7
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
Mike
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
It's nice as it was before !
Working fine, with only one letter or with filled screen.
Also, Andy, correct till the last letter in the fourth line,
Perfect.
Congrats
THX to ALL.
Please Log in or Create an account to join the conversation.