- Posts: 19306
- Thank you received: 0
7i73 LCD shows rubisch
8 years 8 months ago #105604
by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Can you show a picture of the problem?
I just pulled 2.7, got an LCD working, then pulled the latest 2.8 and tried again, and it worked just the same?
What 7i73 firmware version are you using? (Mine might be rather older than yours)
I just pulled 2.7, got an LCD working, then pulled the latest 2.8 and tried again, and it worked just the same?
What 7i73 firmware version are you using? (Mine might be rather older than yours)
Please Log in to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1018
- Thank you received: 0
8 years 8 months ago #105605
by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
Can not reach my machine tonight anymore, but I use master ca 1.5 weeks ago.
The 7i73 firmware? No idea. Same for 7i76e, but it worked flawless when i tested in the beginning.
The 7i73 firmware? No idea. Same for 7i76e, but it worked flawless when i tested in the beginning.
Please Log in to join the conversation.
8 years 8 months ago #105606
by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Can you try this code
(save to a text file, test.hal, for example, then use the command
What I get, with the latest 2.8, is this: (Slightly dodgy LCD, but seems to work)
Code:
loadrt hostmot2
loadrt hm2_pci config="sserial_port_0=0x20000000"
loadrt lcd fmt_strings="LinuxCNC - Tool %2i\n%b* X Pos = %11.4f%b* Y Pos = %11.4f%b* Z Pos = %10.3f|Long Number\n%015.2f\n"
loadrt threads
loadrt siggen
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
addf lcd thread1
addf siggen.0.update thread1
net chars lcd.00.out hm2_5i25.0.7i73.0.0.display
start
setp lcd.00.contrast 0.7
net stuff lcd.00.page.00.arg.02 siggen.0.sine
net stuff1 lcd.00.page.00.arg.04 siggen.0.cosine
net stuff2 lcd.00.page.00.arg.06 siggen.0.triangle
setp lcd.00.page.00.arg.03 1
setp siggen.0.amplitude 1000
setp siggen.0.frequency 0.000005
Code:
halrun -I test.hal
Attachment not found
Please Log in to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1018
- Thank you received: 0
8 years 8 months ago #105607
by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
Picture makes no sense. Better i describe.
For test i just use ABC, in the first position of first line. It i writen there.
But these three letters are immediately positioned additionally everywhere on the screen. I guess it is at least 10 times per second.
I know lcd from my earlier AVR programming times. Could have a similar problem when errors in position commands.
For test i just use ABC, in the first position of first line. It i writen there.
But these three letters are immediately positioned additionally everywhere on the screen. I guess it is at least 10 times per second.
I know lcd from my earlier AVR programming times. Could have a similar problem when errors in position commands.
Please Log in to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1018
- Thank you received: 0
8 years 8 months ago #105609
by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
HI My wife will kill me 
could not resist and honor your effort... THX
I have 7i76e so had to modify your code to:
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config="sserial_port_0=21xxxx"
loadrt lcd fmt_strings="LinuxCNC - Tool %2i\n%b* X Pos = %11.4f%b* Y Pos = %11.4f%b* Z Pos = %10.3f|Long Number\n%015.2f\n"
loadrt threads
loadrt siggen
addf hm2_7i76e.0.read thread1
addf hm2_7i76e.0.write thread1
addf lcd thread1
addf siggen.0.update thread1
net chars lcd.00.out hm2_7i76e.0.7i73.0.1.display
start
setp lcd.00.contrast 0.7
net stuff lcd.00.page.00.arg.02 siggen.0.sine
net stuff1 lcd.00.page.00.arg.04 siggen.0.cosine
net stuff2 lcd.00.page.00.arg.06 siggen.0.triangle
setp lcd.00.page.00.arg.03 1
setp siggen.0.amplitude 1000
setp siggen.0.frequency 0.000005
Result is the same
Can see your text on the screen, but it is overwritten very fast, much more then the guessed 10 times per second
on various positions. The basic image is more or less "reconstructed" on the same place.
Mike
P.S.
I have to move in my bed now, when I intend to survive...
Big THX
Mike
could not resist and honor your effort... THX
I have 7i76e so had to modify your code to:
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config="sserial_port_0=21xxxx"
loadrt lcd fmt_strings="LinuxCNC - Tool %2i\n%b* X Pos = %11.4f%b* Y Pos = %11.4f%b* Z Pos = %10.3f|Long Number\n%015.2f\n"
loadrt threads
loadrt siggen
addf hm2_7i76e.0.read thread1
addf hm2_7i76e.0.write thread1
addf lcd thread1
addf siggen.0.update thread1
net chars lcd.00.out hm2_7i76e.0.7i73.0.1.display
start
setp lcd.00.contrast 0.7
net stuff lcd.00.page.00.arg.02 siggen.0.sine
net stuff1 lcd.00.page.00.arg.04 siggen.0.cosine
net stuff2 lcd.00.page.00.arg.06 siggen.0.triangle
setp lcd.00.page.00.arg.03 1
setp siggen.0.amplitude 1000
setp siggen.0.frequency 0.000005
Result is the same
Can see your text on the screen, but it is overwritten very fast, much more then the guessed 10 times per second
on various positions. The basic image is more or less "reconstructed" on the same place.
Mike
P.S.
I have to move in my bed now, when I intend to survive...
Big THX
Mike
Please Log in to join the conversation.
8 years 8 months ago #105610
by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Using your example "ABC" string I get random letters all over the screen. But I get exactly the same thing if I pull 2.7 and recompile.
"ABC\n" works better, on both versions.
I think that there is definitely some room for improvement in the lcd component. But I am not seeing any difference at all between 2.7 and 2.8 versions of LinuxCNC on identical hardware.
"ABC\n" works better, on both versions.
I think that there is definitely some room for improvement in the lcd component. But I am not seeing any difference at all between 2.7 and 2.8 versions of LinuxCNC on identical hardware.
Please Log in to join the conversation.
8 years 8 months ago #105612
by Grotius
Replied by Grotius on topic 7i73 LCD shows rubisch
@Mr.kuzminsky
How do you solve this? is this pure looking to the code difference on git?
I like to look at difference also. Sometimes it's boring, but if it work's after compiling it can be great !
I like to learn more about linux.
The 2018 January 14 update went from 1:2.8.0~pre1.3405.ge10c52ea6 to 1:2.8.0~pre1.3520.g0a096c965, which is a pretty large jump that includes the commit Rene pointed out. So that's valuable debugging, thanks.
How do you solve this? is this pure looking to the code difference on git?
I like to look at difference also. Sometimes it's boring, but if it work's after compiling it can be great !
I like to learn more about linux.
Please Log in to join the conversation.
8 years 8 months ago #105613
by andypugh
Replied by andypugh on topic 7i73 LCD shows rubisch
Well, to solve it first I need to find a way to detect the problem, then try to work out what changed in the code to cause it.
So far I am failing to detect the problem. So have no way to test possible fixes.
So far I am failing to detect the problem. So have no way to test possible fixes.
Please Log in to join the conversation.
8 years 8 months ago #105615
by Grotius
Replied by Grotius on topic 7i73 LCD shows rubisch
@Andy,
I will try to look in the code difference on git between :
1:2.8.0~pre1.3405.ge10c52ea6 to 1:2.8.0~pre1.3520.g0a096c965
And then look carefully for changes in touchscreen. It can be a one letter mistake.
I will try to look in the code difference on git between :
1:2.8.0~pre1.3405.ge10c52ea6 to 1:2.8.0~pre1.3520.g0a096c965
And then look carefully for changes in touchscreen. It can be a one letter mistake.
Please Log in to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1018
- Thank you received: 0
8 years 8 months ago #105619
by Mike_Eitel
Replied by Mike_Eitel on topic 7i73 LCD shows rubisch
I was never good in programming c, but i would look for a slightly changed size in an array, or a loop counter that does not fit anymore. I'm only guessing that the "real" positioning commands come from the 7i73 firmware.
Mike
Mike
Please Log in to join the conversation.
Time to create page: 0.137 seconds
