Remora - ethernet NVEM / EC300 / EC500 cnc board
- schnellmued
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
29 Nov 2024 16:43 - 29 Nov 2024 19:03 #315561
by schnellmued
Replied by schnellmued on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
edit: problem solved
outpins works like a switch, but had my probe connected with the wrong polarity ..
outpins works like a switch, but had my probe connected with the wrong polarity ..
Last edit: 29 Nov 2024 19:03 by schnellmued.
Please Log in or Create an account to join the conversation.
- scotta
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 891
- Thank you received: 464
30 Nov 2024 20:40 #315684
by scotta
github.com/scottalford75/Remora-NVEM/blo.../MPG%20protocol.xlsx
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Hi, there is no cpp source code for the NVMPG. I decompiled the extracted firmware and managed to find the serial transmission section. The communication protocol was derived from that. The attached spreadsheet simulates the protocol. You should be able to use that for your purpose or alternatively look at the code of the NVMPG LinuxCNC component.Could you leave a copy of the nvmpg cpp on your github? I'm thinking about creating my own mpg but only with buttons and I would like to study the programming that was used in it to be the starting point.
github.com/scottalford75/Remora-NVEM/blo.../MPG%20protocol.xlsx
Please Log in or Create an account to join the conversation.
- cncmiljc
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
02 Dec 2024 11:34 #315780
by cncmiljc
Replied by cncmiljc on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
ok but wouldn't it be possible for you to leave a copy of the extracted firmware so that I can study something and implement it in the project I'm doing? I'm thinking about creating something but not using the original handwhee, I want to do something just using buttons, etc.
Please Log in or Create an account to join the conversation.
- schnellmued
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
06 Dec 2024 18:43 #316125
by schnellmued
Replied by schnellmued on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Hi all
I have big latency issues, using the nvem rt1052 cpp/dma with Linuxcnc 2.9.3.
My laptop is a Lenovo L540 (i5), 12gb, ssd. Latency test shows jitter of about 30-40k with glxgears.
As soon as i turn on the machine the servo-thread goes up to 1.5m average and even up to >5m. Is the Cpu really that much to slow ? It runs perfectly with a mesa 7i96s.
I tried playing around with PRU_base_freq= parameters, nothing changed. Also i noticed in the sample config BASE_PERIOD is set to 0 ? Is this some error or not used at all ?
Also i noticed when the axis is moved fast, the DRO still counts for 1-2 seconds even DTG is 0 ?
-
schnellmued
I have big latency issues, using the nvem rt1052 cpp/dma with Linuxcnc 2.9.3.
My laptop is a Lenovo L540 (i5), 12gb, ssd. Latency test shows jitter of about 30-40k with glxgears.
As soon as i turn on the machine the servo-thread goes up to 1.5m average and even up to >5m. Is the Cpu really that much to slow ? It runs perfectly with a mesa 7i96s.
I tried playing around with PRU_base_freq= parameters, nothing changed. Also i noticed in the sample config BASE_PERIOD is set to 0 ? Is this some error or not used at all ?
Also i noticed when the axis is moved fast, the DRO still counts for 1-2 seconds even DTG is 0 ?
-
schnellmued
Please Log in or Create an account to join the conversation.
- scotta
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 891
- Thank you received: 464
07 Dec 2024 03:47 #316153
by scotta
Replied by scotta on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
When LinuxCNC is in eStop there is no communication happening to the controller board, which is why the servo thread executes quickly. Come out of eStop and then you have a full SPI communication time to read and write to the board.
The PRU_base_freq only informs the LinuxCNC Remora component what base frequency the controller board is running. It does not change any timings in LinuxCNC.
Remora does not use the Base Thread.
Whether you run Remora or MESA the latency will be the same.
The PRU_base_freq only informs the LinuxCNC Remora component what base frequency the controller board is running. It does not change any timings in LinuxCNC.
Remora does not use the Base Thread.
Whether you run Remora or MESA the latency will be the same.
The following user(s) said Thank You: tommylight, schnellmued
Please Log in or Create an account to join the conversation.
- schnellmued
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
11 Dec 2024 19:51 #316478
by schnellmued
Ok, then i have maybe some weird misconfiguration on my side. Today i switched the mill to a 7i96S today and the servo thread on the same laptop with same kernel params and network card is about 700k-750k instead 1,5m-6,0m with the remora config. Any idea what iam doing wrong ? Shall i upload my remora config ?
-
schnellmued
Replied by schnellmued on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Hi ScottRemora does not use the Base Thread.
Whether you run Remora or MESA the latency will be the same.
Ok, then i have maybe some weird misconfiguration on my side. Today i switched the mill to a 7i96S today and the servo thread on the same laptop with same kernel params and network card is about 700k-750k instead 1,5m-6,0m with the remora config. Any idea what iam doing wrong ? Shall i upload my remora config ?
-
schnellmued
Please Log in or Create an account to join the conversation.
- Masterdrive
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
11 Dec 2024 21:41 #316483
by Masterdrive
thanks for your time and dedication.
I've owned a NVEM 2 since 2018, but buried it long time ago since I was not able to make it work reliably.
www.cnczone.com/forums/controller-cards/...084.html#post2154084
At that point in time, and till now, I've been using Mach3 (yeah... no LinuxCNC... i know...)
2019, after migrating to an UC300ETH controller, I tried to make the MPG work with Mach3 without using the NVEM.
I didn't want to waste such a nice MPG.
At that time, I did some reverse engineering... not as professional as you did... mine was mostly trial and error and listening to the serial communication between the MPG and the NVEM after opening it and finding a MAX232. I captured hundreds of packages, and tried to find the similarities on what was displayed on the MPG and what was within the payload. I almost got the payload down to your level.
I was too dumb to know about headers and such -_-
I also tried to create an Arduino program for having the MPG communicate with a PC using MODBUS.
But again, I was too dumb to find a smart solution, like having the Button-presses being reflected as Output-Pin changes on the Arduino, and hook those up to my motion-controller. Or using the Arduino Pro-Micro as a HID. Instead I tried to make the communication work with MODBUS and Mach3 "Brain", which resulted in a complex, and unreliable solution.
So I buried that solution almost 4 years ago as well.
That being said... I'm surprised about the NVEM still being a topic after stumbling about this thread by accident.
Would you mind if I would revive my idea of a NVMPG to PC connection, utilizing some of the "wisdom" you've gathered throughout the years?
Don't get me wrong... I'm an "enthusiast", far away from being an "achiever", my programming days are more than 20 years in the past now... but it's been bugging me a lot looking at this "unfinished project" (a lot of them exist though -_-)
Kind regards,
David
Replied by Masterdrive on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Hi Scott,Hi, there is no cpp source code for the NVMPG. I decompiled the extracted firmware and managed to find the serial transmission section. The communication protocol was derived from that. The attached spreadsheet simulates the protocol. You should be able to use that for your purpose or alternatively look at the code of the NVMPG LinuxCNC component.
github.com/scottalford75/Remora-NVEM/blo.../MPG%20protocol.xlsx
thanks for your time and dedication.
I've owned a NVEM 2 since 2018, but buried it long time ago since I was not able to make it work reliably.
www.cnczone.com/forums/controller-cards/...084.html#post2154084
At that point in time, and till now, I've been using Mach3 (yeah... no LinuxCNC... i know...)
2019, after migrating to an UC300ETH controller, I tried to make the MPG work with Mach3 without using the NVEM.
I didn't want to waste such a nice MPG.
At that time, I did some reverse engineering... not as professional as you did... mine was mostly trial and error and listening to the serial communication between the MPG and the NVEM after opening it and finding a MAX232. I captured hundreds of packages, and tried to find the similarities on what was displayed on the MPG and what was within the payload. I almost got the payload down to your level.
I was too dumb to know about headers and such -_-
I also tried to create an Arduino program for having the MPG communicate with a PC using MODBUS.
But again, I was too dumb to find a smart solution, like having the Button-presses being reflected as Output-Pin changes on the Arduino, and hook those up to my motion-controller. Or using the Arduino Pro-Micro as a HID. Instead I tried to make the communication work with MODBUS and Mach3 "Brain", which resulted in a complex, and unreliable solution.
So I buried that solution almost 4 years ago as well.
That being said... I'm surprised about the NVEM still being a topic after stumbling about this thread by accident.
Would you mind if I would revive my idea of a NVMPG to PC connection, utilizing some of the "wisdom" you've gathered throughout the years?
Don't get me wrong... I'm an "enthusiast", far away from being an "achiever", my programming days are more than 20 years in the past now... but it's been bugging me a lot looking at this "unfinished project" (a lot of them exist though -_-)
Kind regards,
David
Please Log in or Create an account to join the conversation.
- Lisov_R
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 Dec 2024 14:25 #316515
by Lisov_R
Replied by Lisov_R on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Attachments:
Please Log in or Create an account to join the conversation.
- aDm1N
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
12 Dec 2024 19:00 - 12 Dec 2024 19:01 #316536
by aDm1N
Last edit: 12 Dec 2024 19:01 by aDm1N.
Please Log in or Create an account to join the conversation.
- Lisov_R
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 Dec 2024 19:55 #316543
by Lisov_R
Replied by Lisov_R on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
If it is not clear in my question, then I will say again that I have tried it. Not one of the programs is connected to the STM32, not via SWD, not via UART, not via ST-Link, not via RS232. The board itself is working and works with Mach3. Perhaps all ports are closed in the firmware. Perhaps someone has come across such a thing?
Please Log in or Create an account to join the conversation.
Time to create page: 0.291 seconds