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

Wirepas HAT not working on Raspberry Pi 4 (sink cannot communicate via serial port) #19

Open
alexdebiasio opened this issue Jan 11, 2022 · 0 comments

Comments

@alexdebiasio
Copy link

Hi,
I'm trying to setup a Wirepas gateway on a raspberry pi 4, (following this guide: guide.
I've bought a Wirepas HAT from the official promistel store but It looks like the sink service is not able to communicate with the Wirepas HAT.
If I try to launch the sinkService binary found inside the Docker image and copied outside, I get the following: (tried with all the three baudrate suggested combinations, same result)

./sinkService -p /dev/ttyAMA0 
2022-01-11 16:52:02,116 | [INFO] Main:Starting Sink service:
        -Port is /dev/ttyAMA0
        -Baudrate is 0
        -Dbus Service name is com.wirepas.sink.sink0
2022-01-11 16:52:02,116 | [INFO] Main:Auto baudrate: testing 125000 bps
2022-01-11 16:52:02,117 | [DEBUG] SERIAL:Custom bitrate set: 125000
2022-01-11 16:52:02,117 | [INFO] wpc_int:WPC initialized
2022-01-11 16:52:02,618 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:02,618 | [ERROR] wpc_int:Didn't receive answer to the request 0x04
2022-01-11 16:52:02,618 | [ERROR] wpc_int:Unable to poll for request
2022-01-11 16:52:03,119 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:03,119 | [ERROR] wpc_int:Didn't receive answer to the request 0x0e
2022-01-11 16:52:03,119 | [WARNING] linux_plat:Exiting dispatch thread
2022-01-11 16:52:03,619 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:03,619 | [ERROR] wpc_int:Didn't receive answer to the request 0x04
2022-01-11 16:52:03,619 | [ERROR] wpc_int:Unable to poll for request
2022-01-11 16:52:03,619 | [WARNING] linux_plat:Exiting polling thread
2022-01-11 16:52:03,619 | [INFO] Main:Auto baudrate: testing 115200 bps
2022-01-11 16:52:03,620 | [DEBUG] SERIAL:Custom bitrate set: 115200
2022-01-11 16:52:03,620 | [INFO] wpc_int:WPC initialized
2022-01-11 16:52:04,120 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:04,120 | [ERROR] wpc_int:Didn't receive answer to the request 0x0e
2022-01-11 16:52:04,121 | [WARNING] linux_plat:Exiting dispatch thread
2022-01-11 16:52:04,621 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:04,621 | [ERROR] wpc_int:Didn't receive answer to the request 0x04
2022-01-11 16:52:04,621 | [ERROR] wpc_int:Unable to poll for request
2022-01-11 16:52:04,621 | [WARNING] linux_plat:Exiting polling thread
2022-01-11 16:52:04,622 | [INFO] Main:Auto baudrate: testing 1000000 bps
2022-01-11 16:52:04,622 | [DEBUG] SERIAL:Custom bitrate set: 1000000
2022-01-11 16:52:04,622 | [INFO] wpc_int:WPC initialized
2022-01-11 16:52:05,123 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:05,123 | [ERROR] wpc_int:Didn't receive answer to the request 0x04
2022-01-11 16:52:05,123 | [ERROR] wpc_int:Unable to poll for request
2022-01-11 16:52:05,624 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:05,624 | [ERROR] wpc_int:Didn't receive answer to the request 0x0e
2022-01-11 16:52:05,624 | [WARNING] linux_plat:Exiting dispatch thread
2022-01-11 16:52:06,124 | [WARNING] SLIP:Timeout to receive frame (size=0)
2022-01-11 16:52:06,124 | [ERROR] wpc_int:Didn't receive answer to the request 0x04
2022-01-11 16:52:06,124 | [ERROR] wpc_int:Unable to poll for request
2022-01-11 16:52:06,124 | [WARNING] linux_plat:Exiting polling thread
2022-01-11 16:52:06,125 | [ERROR] Main:Cannot establish communication with sink with different tested baudrate

Here's the relevant gateway.env configuration I've used:

GATEWAY_TAG=latest
 
WM_GW_ID=wirepas_test

WM_GW_SINK_UART_PORT=/dev/ttyAMA0

WM_GW_SINK_BITRATE=125000

If I populate a sink.env file inside the boot partition, I noticed that the file is correctly renamed to sink.success

I followed the tutorial a couple of time (also the deprecated one, for version 1.2) but without success. I didn't found any further instructions on how to debug this situation, could someone help me?

Thank you
Alex

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

1 participant