Asrock Q1900B-ITX
17 Oct 2022 09:02 #254316
by tarasko
Replied by tarasko on topic Asrock Q1900B-ITX
With these params "isolcpus=2,3 acpi_irq_nobalance noirqbalance" my setup became pretty stable. I put 27000 for BASE_PERIOD and after that no unexpected delay errors during startup of linuxcnc.Today I decided to test if he uspace version is suitable for paraller port usage too because of the good looking latency.
Installed using linuxcnc-stretch-uspace-amd64-r13.iso image.
Latency is quite good, ~4000 servo, ~13000 base (2x 8G samsung M471B1G73QH0-YK0 memory modules) with kernel command line "isolcpus=2,3 acpi_irq_nobalance noirqbalance"
Using irq affinity (all to cpu0) discussed elsewhere in forum the latency is a bit better but not significantly (only a few hundred after overnight test).
Latency stays at max ~5000 servo, ~15000 base when running overnight with 6 glxgears and youtube. Additional load with samba & file transfer does not make a difference.
But when starting linuxcnc I always get "Unexpected real time delay on task 0".
uname -a:
Linux sorvi 4.9.0-8-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.9.0-8-rt-amd64 root=UUID=a07de53a-6564-44d7-b7c6-86c7ea742140 ro quiet isolcpus=2,3 acpi_irq_nobalance noirqbalance
Linuxcnc output on terminal:
Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Shutting down and cleaning up LinuxCNC...
task: 2050 cycles, min=0.000022, max=0.011068, avg=0.009994, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Note: Using POSIX realtime
Linuxcnc 2.7.14 seems not to print anything to view with dmesg. No _print.txt or _debug.txt on home directory.
Any ideas why unexpected delay happens on startup with those latency numbers ?
Or something else that can cause unexpected delay ?
Maybe I should still stay with the old rtai version if this cannot be solved... odd because of the latency should not be an issue by looking at the numbers.
Please Log in or Create an account to join the conversation.
17 Oct 2022 09:52 #254321
by ississ
All of my 3 boards worked really well with the old rtai version but not with the uspace.
The unexpected delay happened only with uspace version, there were no base period then.
If the uspace version is working on your board, can you share your bios settings and which memory modules you are using ?
Replied by ississ on topic Asrock Q1900B-ITX
Did you use the same (or newer) uspace version ?
Today I decided to test if he uspace version is suitable for paraller port usage too because of the good looking latency.
Installed using linuxcnc-stretch-uspace-amd64-r13.iso image.
...
With these params "isolcpus=2,3 acpi_irq_nobalance noirqbalance" my setup became pretty stable. I put 27000 for BASE_PERIOD and after that no unexpected delay errors during startup of linuxcnc.
All of my 3 boards worked really well with the old rtai version but not with the uspace.
The unexpected delay happened only with uspace version, there were no base period then.
If the uspace version is working on your board, can you share your bios settings and which memory modules you are using ?
Please Log in or Create an account to join the conversation.
18 Oct 2022 12:06 - 18 Oct 2022 13:03 #254394
by tarasko
RAM is KTA-MB1333/8G x 2
BIOS setup settings all necessary options mentioned in this thread. Screenshots of BIOS settings will provide later.
Also I turned off rendering of trajectory with (AXIS,stop) command and used GMOCCAPPY as UI. I think it's unnecessary options because I'm working with pretty large files (800 MB)
Replied by tarasko on topic Asrock Q1900B-ITX
I'm using www.linuxcnc.org/iso/linuxcnc-2.8.4-buster.iso
Today I decided to test if he uspace version is suitable for paraller port usage too because of the good looking latency.
Installed using linuxcnc-stretch-uspace-amd64-r13.iso image.
...
With these params "isolcpus=2,3 acpi_irq_nobalance noirqbalance" my setup became pretty stable. I put 27000 for BASE_PERIOD and after that no unexpected delay errors during startup of linuxcnc.
Did you use the same (or newer) uspace version ?
All of my 3 boards worked really well with the old rtai version but not with the uspace.
The unexpected delay happened only with uspace version, there were no base period then.
If the uspace version is working on your board, can you share your bios settings and which memory modules you are using ?
RAM is KTA-MB1333/8G x 2
BIOS setup settings all necessary options mentioned in this thread. Screenshots of BIOS settings will provide later.
Also I turned off rendering of trajectory with (AXIS,stop) command and used GMOCCAPPY as UI. I think it's unnecessary options because I'm working with pretty large files (800 MB)
Last edit: 18 Oct 2022 13:03 by tarasko.
Please Log in or Create an account to join the conversation.
21 Oct 2022 10:40 #254659
by tarasko
Replied by tarasko on topic Asrock Q1900B-ITX
Could you please advise where to get any info how to setup this mesa 6i25 (except basic linuxcnc documentation)On an ASRock J3355B-ITX (celeron 2 cores) , I just add a MESA 6i25 to the config to solve latency problems and to remove stepping generation form the motherboard cpu. I have keep the same pinout as the parport.
the 6i25 was available form eusurplus fiew weeks ago. A little expensive with vat and shiping.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19190
- Thank you received: 6433
21 Oct 2022 12:52 #254675
by tommylight
Replied by tommylight on topic Asrock Q1900B-ITX
To setup Mesa 6i25, start PncConf from the CNC menu, choose Mesa 5i25, add other values, save.
Mesa 6i25 is the same as Mesa 5i25, but for PCI-E bus.
Mesa 6i25 is the same as Mesa 5i25, but for PCI-E bus.
The following user(s) said Thank You: tarasko
Please Log in or Create an account to join the conversation.
- macsddau@linuxcnc
- Offline
- Premium Member
Less
More
- Posts: 142
- Thank you received: 28
24 Oct 2022 08:27 #254884
by macsddau@linuxcnc
Flashed 5i25_prob_rfx1.bit into the 6i25 card.
copy 5i25_prob_rfx2 files to some places (don't know if it is necessay but that's work) :
Replied by macsddau@linuxcnc on topic Asrock Q1900B-ITX
I use 5i25_prob_rfx2 conf.
On an ASRock J3355B-ITX (celeron 2 cores) , I just add a MESA 6i25 to the config to solve latency problems and to remove stepping generation form the motherboard cpu. I have keep the same pinout as the parport.
the 6i25 was available form eusurplus fiew weeks ago. A little expensive with vat and shiping.
Could you please advise where to get any info how to setup this mesa 6i25 (except basic linuxcnc documentation)
Flashed 5i25_prob_rfx1.bit into the 6i25 card.
copy 5i25_prob_rfx2 files to some places (don't know if it is necessay but that's work) :
- 5i25_prob_rfx2.bit => /lib/firmware/hm2/5i25/
- 5i25_prob_rfx2.xml => /lib/firmware/hm2/5i25/
- 5i25_prob_rfx2.pin => /usr/share/doc/hostmot2-rimware-5i25/
Attachments:
The following user(s) said Thank You: tommylight, tarasko
Please Log in or Create an account to join the conversation.
24 Oct 2022 17:50 #254926
by tarasko
Replied by tarasko on topic Asrock Q1900B-ITX
Also please tell me if there a way to control a 24VDC relay with this board?
On an ASRock J3355B-ITX (celeron 2 cores) , I just add a MESA 6i25 to the config to solve latency problems and to remove stepping generation form the motherboard cpu. I have keep the same pinout as the parport.
the 6i25 was available form eusurplus fiew weeks ago. A little expensive with vat and shiping.
Could you please advise where to get any info how to setup this mesa 6i25 (except basic linuxcnc documentation)
I use 5i25_prob_rfx2 conf.
Flashed 5i25_prob_rfx1.bit into the 6i25 card.
copy 5i25_prob_rfx2 files to some places (don't know if it is necessay but that's work) :
- 5i25_prob_rfx2.bit => /lib/firmware/hm2/5i25/
- 5i25_prob_rfx2.xml => /lib/firmware/hm2/5i25/
- 5i25_prob_rfx2.pin => /usr/share/doc/hostmot2-rimware-5i25/
used pncconf
AlA
Please Log in or Create an account to join the conversation.
24 Oct 2022 17:53 #254927
by tarasko
Replied by tarasko on topic Asrock Q1900B-ITX
Is there any other profit from switching to Mesa board except the profit to not rely on software step generation? Is quality of microstepping better than software step generation?
Please Log in or Create an account to join the conversation.
24 Oct 2022 18:27 #254936
by andypugh
If you have a 20,000ns base thread then you can step at 50kHz. Or 25kHz,16kHz, 12.5kHz etc. But you can't do anything in-between.
An FPGA board with a 10MHz base clock can do 50kHz, 49.990kHz, 49.980kHz etc.
It doesn't always matter, especially with a machine that runs a long way from peak step rate.
Replied by andypugh on topic Asrock Q1900B-ITX
Hardware step generation is smoother, and also has far finer granularity at high speed.Is there any other profit from switching to Mesa board except the profit to not rely on software step generation? Is quality of microstepping better than software step generation?
If you have a 20,000ns base thread then you can step at 50kHz. Or 25kHz,16kHz, 12.5kHz etc. But you can't do anything in-between.
An FPGA board with a 10MHz base clock can do 50kHz, 49.990kHz, 49.980kHz etc.
It doesn't always matter, especially with a machine that runs a long way from peak step rate.
The following user(s) said Thank You: tarasko
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19190
- Thank you received: 6433
24 Oct 2022 19:37 #254946
by tommylight
Yes there is if you are good with electronics, ir requires adding a resistor and a transistor, but must be very careful with wiring.
It would be simpler and safer to use a small SSR.
Wire the SSR input to Mesa output, the SSR output to 24V on one side and relay on the other side.
You would need a DC SSR, AC ones do not work with DC power.
Replied by tommylight on topic Asrock Q1900B-ITX
Also please tell me if there a way to control a 24VDC relay with this board?
Yes there is if you are good with electronics, ir requires adding a resistor and a transistor, but must be very careful with wiring.
It would be simpler and safer to use a small SSR.
Wire the SSR input to Mesa output, the SSR output to 24V on one side and relay on the other side.
You would need a DC SSR, AC ones do not work with DC power.
The following user(s) said Thank You: tarasko
Please Log in or Create an account to join the conversation.
Time to create page: 0.355 seconds