Remora - ethernet NVEM / EC300 / EC500 cnc board

More
3 years 1 month ago - 3 years 1 month ago #281090 by Murphy
Last edit: 3 years 1 month ago by Murphy.

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

More
3 years 1 month ago - 3 years 1 month ago #281287 by aaamil13
 Hi, i have some troubles with EC500 - remora-rt1052-1.1.0.bin.
1. Flashed - ok
2. Ping 10.10.10.10 - ok
3. import tftpy - okThe problem is when i execute "python3 upload_config.py ec500-rt1052.txt" - > config.txt is generated, but no transfer to EC500. Same is with TFTP.UDP port 69 is opened. 

 
 
Last edit: 3 years 1 month ago by aaamil13.

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

More
3 years 1 month ago #281335 by scotta
No need to use tftp command line to upload the config file. Just use the python script. It will check that it is proper JSON and add the required header meta data before doing the tftp upload.

If your config file is called config.txt, then your command would be

python3 upload_config.py config.txt

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

More
3 years 1 month ago - 3 years 1 month ago #281349 by cnc-phil
@ aaamil13
I don't know if it should work. But why port 69? Passive FTP is on 21, AFAIK.
Last edit: 3 years 1 month ago by cnc-phil.

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

More
3 years 1 month ago - 3 years 1 month ago #281385 by aaamil13
open("/tmp/config.txt", "wb").write(config)

# Upload using TFTP, set large timeout
client = tftpy.TftpClient("10.10.10.10", 69)
client.upload("config", "/tmp/config.txt", timeout=30)

It's a TFTP which differs from FTP and TFTP is configured on port 69.

I have no steps forward, PyOCD communication is timed out, and even no debug info on ComPort. Flashed with remora-rt1052-1.1.0.bin and remora-rt1052-1.0.0.bin. Flash is OK, have ping to 10.10.10.10, but not able to upload configuration file and no ComPort. LinuxCNC communicates with EC500v5, I am able to Enable and start the board from LinuxCNC, but if i try to move Axis then popup "joint 0 following error". BOOT led sets on when i press enable on LinuxCNC.
I am not sure if debug ComPort is DB9 port on EC500 or have to use some other pins. 
Do I have to enable TFTP by a special procedure ( short pin, some command or etc.) and is there a procedure to enable debug on ComPort

Thanks in advance
Last edit: 3 years 1 month ago by aaamil13.

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

More
3 years 1 month ago - 3 years 1 month ago #281388 by cnc-phil
@aaamil13
You are right wtih the 69 port. I do not have a ec500 controller. But on the nvem controller the file is uploaded with the command scotta posted above and then it gets automatically restarted, I think this should be the same for your controller, otherwise scotta would have mentioned it in the post.
With the nvem controller the config upload uses the same pins as the firmware upload. Have you tried scotta`s command to upload, maybe the ftp server on the ec500 does not support the put command? (The python script does more, it adds some kind of checksum and padding and so on). For the joint0 following error, there was info same pages ago. (I got rid of it with the motor setup/config menu in the axis menu (can not check right now, I had to raise the second value), but maybe the last info is complete nonsense (using cheap nema23 steppers)).
Last edit: 3 years 1 month ago by cnc-phil.

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

Time to create page: 0.163 seconds
Powered by Kunena Forum