[ERROR] wpc_int:Didn't receive answer to the request 0x0c
Opened this issue · 2 comments
Hi, managed to compile the example but it seems it can't connect to the sink...
Setup:
- wirepas (dual mcu) usb dongle connected to a computer which is acting as a sink.
- wirepas (dual mcu) connected to usb this computer acting als non-routing node
I have tested this setup using wirepas commander and was able to send/receive data using this tool, so i now try to use the c-mesh-api example app to act as non-routing node to connect to the sink but I can't find any info on what the example is doing (trying to do).
I used these settings:
// Default serial port
char * port_name = "/dev/ttyUSB0";
// Node configuration
#define NODE_ADDRESS 0x02
#define NODE_ROLE APP_ROLE_SUBNODE
#define NETWORK_CHANNEL 0x17
#define NETWORK_ADDRESS 0x0C3B05
After compiling, i get these logs:
pi@raspberrypi:~/projects/wirepas-sink/src/c-mesh-api-master/example/build $ ./meshAPIExample
2022-10-08 07:27:29,440 | [DEBUG] SERIAL:Custom bitrate set: 115200
2022-10-08 07:27:29,442 | [INFO] wpc_int:WPC initialized
2022-10-08 07:27:29,961 | [ERROR] wpc_int:Didn't receive answer to the request 0x04
2022-10-08 07:27:29,962 | [ERROR] wpc_int:No poll answer
2022-10-08 07:27:30,481 | [ERROR] wpc_int:Didn't receive answer to the request 0x06
2022-10-08 07:27:31,502 | [ERROR] wpc_int:Didn't receive answer to the request 0x0c
2022-10-08 07:27:32,026 | [ERROR] wpc_int:Didn't receive answer to the request 0x0c
[..]
2022-10-08 07:28:29,237 | [ERROR] wpc_int:Didn't receive answer to the request 0x0c
2022-10-08 07:28:29,757 | [ERROR] wpc_int:Didn't receive answer to the request 0x0c
2022-10-08 07:28:29,758 | [WARNING] linux_plat:Exiting dispatch thread
Can someone explain what is going wrong here? I just want to send some data from the non-routing-node to the sink
Hello !
What is the baudrate configured in the dulamcu node? By default on some hardware, it is 125000.
Please try the example with this baudrate:
./meshAPIExample /dev/ttyUSB0 125000
Thanks,
Gwendal
i have defined configured it on 115200 on both, ill try the other one too... but can someone explain why the example is polling, and what, and where is this described?
EDIT:
Please try the example with this baudrate:
I tried it without any luck, also couldn't change the baudrate of the COM port in Wirepas Commander.