Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master board doesn't send ack to PC #162

Open
RainJCloude opened this issue Jun 5, 2024 · 6 comments
Open

Master board doesn't send ack to PC #162

RainJCloude opened this issue Jun 5, 2024 · 6 comments

Comments

@RainJCloude
Copy link

Hello, I am having a problem very similar to that in #125 (comment), however I've no found any solution to my problem yet.

I've followed all the documentation to flash the master-board. So I was able to compile the code of the firmware and flash the masterboard. So far so good.

The problem start when I try to execute the demo.cpp in the sdk folder. In that case the 'Timeout while waiting for ack' appears.
I'm pretty sure that in that case, the master-board has received the init pack, but it's not able to send the ack package because the blue LED fades.

A similar error occurs if I run the ethernet package in the example folder of the esp-idf package.

I am quite sure that the problem is related to some kind of configuration that i mess. Maybe there is something that i should set with make menuconfig ??

Moreover, I've followed also the guide on the sdk README for the ethernet communication:

sudo ifconfig MY_INTERFACE -arp

Where MY_INTERFACE is enp3s0, and I've disabled the IPV6 traffic still following the guide in the README

Maybe there is some problem due to the fact that if I type ifconfig in the shell, it appears:

enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 04:7c:16:32:89:29  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Thanks a lot for taking your time to help me

@thomasfla
Copy link
Member

thomasfla commented Jun 5, 2024

Hi,

The default configuration (via make menuconfig) enable Ethernet, so your issue is probably related to something else.

Can you make sure that both the sdk and the firmware are in sync (latest commit)?

Best,
Thomas.

@RainJCloude
Copy link
Author

RainJCloude commented Jun 5, 2024

the sdk has not its latest commit, because the README in the master-board packages asked to bring it to a previous commit:

cd ~/esp/esp-idf
git checkout 8d1a9c0 # Need to checkout this old version for now
git submodule update --init --recursive

About the "make menuconfig" I am not sure how to enable Ethernet, because in the interface it allows to me to set only the size of the sending packages.

@thomasfla
Copy link
Member

I'm not talking about the ESD IDF SDK, but the sdk of masterboard (the library that will manage the communication with the masterboard. This needs to be the latest commit of this repo.
In the same time, the firmware flashed on the masterboard needs also to be compiled and flash from the latest commit of this repo.

master-board/sdk -> The lib
master-board/firmware -> The firmware (that needs to checkout an old commit of esp-idf to be compiled)

You don't have to change anything in the make menuconfig to have ethernet enabled.

@RainJCloude
Copy link
Author

Okay, sorry I get it. However bot the commit of the firmware and the sdk are at their last commit. The error that appears is still the same:

- Main --
if_name: enp5s0f1
Using Ethernet (enp5s0f1)
Shutting down connection (enp5s0f1)
Timeout while waiting for ack.
Masterboard timeout detected. Either the masterboard has been shut down or there has been a connection issue with the cable/wifi.

And I've got it starting the sdk :

root@cloude-N551JK:~/master-board/sdk/master_board_sdk/bin# ./example enp5s0f1
/example enp5s0f1

@thomasfla
Copy link
Member

Can you connect your programmer to the masterbord and give the output of "make monitor" while you start the program?

cd master-board/firmware
source setup_esp_idf.bash
make monitor

@RainJCloude
Copy link
Author

It outputs this:
Screenshot from 2024-06-11 10-52-58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants