c-mesh-api icon indicating copy to clipboard operation
c-mesh-api copied to clipboard

[ERROR] wpc_int:Didn't receive answer to the request 0x0c

Open domingguss opened this issue 2 years ago • 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

domingguss avatar Oct 10 '22 09:10 domingguss