Remora - ethernet NVEM cnc board

More
18 Apr 2022 21:31 #240592 by scotta
Hi Roy,

I think this has something to do with your network / firewall settings as what you are seeing is the watch dog resetting the board as the code is stuck in the TFTP code waiting for something.

It looks like your outgoing port 69 is ok as the NVEM board has received the TFTP request packet. Subsequent packets are sent and received on port 0. Is this open on the PC side?

Using Wireshark would be another help to see the traffic on the network to see where the upload process is stalling.

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

More
18 Apr 2022 22:10 #240595 by royka
Yes I've tried a lot today without succes. Tried it on 2 different pc's on linuxcnc, also tried in windows with the python script (that everytime breaks the format of the json) and with tftpd64 which I allowed in the firewall. Tried a crossover cable instead of straight. Tomorrow I will try if I could find something with Wireshark

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

More
18 Apr 2022 22:29 #240601 by royka
Here is the Wireshark log, could you see something wrong with it? 
Attachments:

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

More
18 Apr 2022 23:18 #240605 by royka
Disabling ipv6 didn't (probably to be expected) make a change.

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

More
19 Apr 2022 00:01 #240612 by scotta
Hmm, not what I was expecting. There is no response from the NVEM board from the write request and you can see that the board has gone off the network with the ARP broadcasts.

Which version of the NVEM board do you have?

I'll add some debug printf's so that we can see where the code is stopping.
The following user(s) said Thank You: royka

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

More
19 Apr 2022 00:16 #240613 by royka
No response indeed, but it's resetting after an attempt to upload. With tftp on command line I could connect but, but when I try to "put" the file it also gives a time-out. It's an NVEM V2, I could send tomorrow the memory layout. I saw that the json will be written in the middle of one of latest 128k blocks, is that how it supposed to be?
Attachments:

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

More
19 Apr 2022 00:34 #240616 by scotta
Yes, blocks 10 and 11 are used as temporary and final storage locations of the config file.

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

More
19 Apr 2022 00:45 #240617 by scotta
Hi Roy, can you please try this bin file (remove the txt extension) and share the serial output?
Attachments:

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

More
19 Apr 2022 00:48 #240618 by royka
Sure! But that will be tomorrow, need a few hours of sleep, here it's 2.45am

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

More
19 Apr 2022 08:10 #240633 by royka
The moment it tries to write it restarts it seems.
In stm32cubeprogrammer you could save the memory from the device, maybe I could upload yours with the config included?
tftp receive call back reached

tftp write process reached

Remora-NVEM starting

## Entering SETUP state


1. Loading JSON configuration file from Flash memory
Flash storage location is empty - no config file


2. Parsing JSON configuration file
Config deserialisation - Deserialization failed
Creating thread 40000
Creating thread 1000

4. Loading modules

Creating a std module
Creating an Ethernet communication monitoring module

## Entering START state

Starting the BASE thread
Registering interrupt for interrupt number = 25
        power on Timer 1

        timer started

Starting the SERVO thread
Registering interrupt for interrupt number = 28
        power on Timer 2

        timer started

## Entering IDLE state
 
Attachments:

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

Time to create page: 0.163 seconds
Powered by Kunena Forum