LinuxCNC + Orange Pi (allwincnc)

More
28 Jul 2021 05:30 #216108 by Cncninja
I received the ALL-H3-CC today!!

Please Log in or Create an account to join the conversation.

More
28 Jul 2021 14:13 - 28 Jul 2021 15:45 #216122 by tjtr33
Hello, has port 6 been tried with pwm stepgen?
I am having no luck with PG7 as step and PG6 as dir.
I am using 3.3/5v converters between OPi 2e and Lichuan servostepper drives.
I made a config with PG7 ( port 6 pin 7 ) for step and PG6 ( port 6 pin 6 ) for dir,  but I get no pulses.
( no voltage change on STEP or DIR, i expect 0 or 5v on DIR and between 0 and 5 for the step stream)

Is port 6 correct for port G ?

So I made a test hal file with arisc.gpio.PG7-outand arisc.gpio.PG6-out and named the nets xs and xd resp.
Then,  via halrun. was able to step in either direction

I'm thinking that the 'pwm stepgen' doesnt like PG6 PG7 ( or me ;)

the testgpio.hal is for use with halru
'the config.hal is for use with 3Aconfig

thx tomp
Attachments:
Last edit: 28 Jul 2021 15:45 by tjtr33. Reason: typo misscount register number

Please Log in or Create an account to join the conversation.

More
28 Jul 2021 22:27 #216156 by Dolence
Hey! This is how everything is going util now: 

When I try to run a file it stops somewhere with joint following error on one of the axis. Usually it is the axis 1, but not aways. Also, I got this "unexpected realtime delay" message almost everytime I open AXIS. I'm using the default values for PERIOD on my HAL file. I have my files set to reflect my actual machine configuration, like the real travelling size for the axis, home position, and scale according to my screws (25 mm X and Y axis and 20 mm for Z) and 1/32  microsteps. I'm attaching those files.
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 200000
SERVO_PERIOD = 1000000

 
 
Attachments:

Please Log in or Create an account to join the conversation.

More
28 Jul 2021 22:49 - 28 Jul 2021 22:52 #216158 by Bari
What does uname -r give for output?

Which board is this on? Which CPU #, core speed and number of cores? How much RAM?

Run the latency test for at least 5-10 minutes and post the scores.

 
Last edit: 28 Jul 2021 22:52 by Bari. Reason: more info

Please Log in or Create an account to join the conversation.

More
28 Jul 2021 23:14 - 28 Jul 2021 23:53 #216160 by Dolence
orangepipc:~:% uname -r 5.10.21-rt34-sunxi

It's an Orange Pi PC 1GB RAM H3 Quad Core. I think it's running at 1.37 GHz.
Something very strange hapenned when taking the screenshot. Before the capture the values are as in the first pic, but when saving the file it jumped to a higher value.



orangepipc:~:% cpufreq-info cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0:   driver: cpufreq-dt   CPUs which run at the same hardware frequency: 0 1 2 3   CPUs which need to have their frequency coordinated by software: 0 1 2 3   maximum transition latency: 2.04 ms.   hardware limits: 480 MHz - 1.37 GHz   available frequency steps: 480 MHz, 648 MHz, 816 MHz, 960 MHz, 1.01 GHz, 1.10                                      GHz, 1.20 GHz, 1.30 GHz, 1.37 GHz   available cpufreq governors: conservative, ondemand, userspace, powersave, per                                     formance, schedutil   current policy: frequency should be within 480 MHz and 1.37 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 1.37 GHz (asserted by call to hardware).   cpufreq stats: 480 MHz:0.23%, 648 MHz:0.03%, 816 MHz:0.03%, 960 MHz:0.14%, 1.0                                     1 GHz:0.09%, 1.10 GHz:0.18%, 1.20 GHz:0.14%, 1.30 GHz:0.25%, 1.37 GHz:98.90%  (7                                     22) analyzing CPU 1:   driver: cpufreq-dt   CPUs which run at the same hardware frequency: 0 1 2 3   CPUs which need to have their frequency coordinated by software: 0 1 2 3   maximum transition latency: 2.04 ms.   hardware limits: 480 MHz - 1.37 GHz   available frequency steps: 480 MHz, 648 MHz, 816 MHz, 960 MHz, 1.01 GHz, 1.10                                      GHz, 1.20 GHz, 1.30 GHz, 1.37 GHz   available cpufreq governors: conservative, ondemand, userspace, powersave, per                                     formance, schedutil   current policy: frequency should be within 480 MHz and 1.37 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 1.37 GHz (asserted by call to hardware).   cpufreq stats: 480 MHz:0.23%, 648 MHz:0.03%, 816 MHz:0.03%, 960 MHz:0.14%, 1.0                                     1 GHz:0.09%, 1.10 GHz:0.18%, 1.20 GHz:0.14%, 1.30 GHz:0.25%, 1.37 GHz:98.90%  (7                                     22) analyzing CPU 2:   driver: cpufreq-dt   CPUs which run at the same hardware frequency: 0 1 2 3   CPUs which need to have their frequency coordinated by software: 0 1 2 3   maximum transition latency: 2.04 ms.   hardware limits: 480 MHz - 1.37 GHz   available frequency steps: 480 MHz, 648 MHz, 816 MHz, 960 MHz, 1.01 GHz, 1.10                                      GH[code][code][code]z, 1.20 GHz, 1.30 GHz, 1.37 GHz   available cpufreq governors: conservative, ondemand, userspace, powersave, per                                     formance, schedutil   current policy: frequency should be within 480 MHz and 1.37 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 1.37 GHz (asserted by call to hardware).   cpufreq stats: 480 MHz:0.23%, 648 MHz:0.03%, 816 MHz:0.03%, 960 MHz:0.14%, 1.0                                     1 GHz:0.09%, 1.10 GHz:0.18%, 1.20 GHz:0.14%, 1.30 GHz:0.25%, 1.37 GHz:98.90%  (7                                     22) analyzing CPU 3:   driver: cpufreq-dt   CPUs which run at the same hardware frequency: 0 1 2 3   CPUs which need to have their frequency coordinated by software: 0 1 2 3   maximum transition latency: 2.04 ms.   hardware limits: 480 MHz - 1.37 GHz   available frequency steps: 480 MHz, 648 MHz, 816 MHz, 960 MHz, 1.01 GHz, 1.10                                      GHz, 1.20 GHz, 1.30 GHz, 1.37 GHz   available cpufreq governors: conservative, ondemand, userspace, powersave, per                                     formance, schedutil   current policy: frequency should be within 480 MHz and 1.37 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 1.37 GHz (asserted by call to hardware).   cpufreq stats: 480 MHz:0.23%, 648 MHz:0.03%, 816 MHz:0.03%, 960 MHz:0.14%, 1.0                                     1 GHz:0.09%, 1.10 GHz:0.18%, 1.20 GHz:0.14%, 1.30 GHz:0.25%, 1.37 GHz:98.90%  (7                                     22)
Attachments:
Last edit: 28 Jul 2021 23:53 by Dolence.

Please Log in or Create an account to join the conversation.

More
28 Jul 2021 23:36 #216162 by Bari
forum.linuxcnc.org/18-computer/39037-lin...cnc?start=140#207790

`isolcpus ...` can be added to the armbianEnv.txt or directly to the boot.cmd inside setenv bootargs "... here ..."isolcpus=1,2,3 idle=poll
The following user(s) said Thank You: Dolence

Please Log in or Create an account to join the conversation.

More
29 Jul 2021 00:21 #216166 by Dolence
I have tried the isolcpu trick in both ways and even compiling boot.cmd with the end of the file instructions. Still the same. Could it be related to the SD card itself? I purchased it today. Should be working fine.

Please Log in or Create an account to join the conversation.

More
29 Jul 2021 00:46 #216169 by Bari
This project still needs a good u-boot and rt kernel build.

Please Log in or Create an account to join the conversation.

More
29 Jul 2021 00:53 #216170 by Dolence
Hmm... Nothing else to be done? I presume none is really using this... Right?

Please Log in or Create an account to join the conversation.

More
29 Jul 2021 01:09 #216173 by Bari
People are, but the configs as left by the dev are what they are. It's in Beta. It needs some work.

TomP is working on it as well as a few others. I hope to have some time later this summer.

Please Log in or Create an account to join the conversation.

Time to create page: 0.194 seconds
Powered by Kunena Forum