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

socketcand not connecting to socketCAN #15

Open
bdegner3210 opened this issue Jan 12, 2017 · 6 comments
Open

socketcand not connecting to socketCAN #15

bdegner3210 opened this issue Jan 12, 2017 · 6 comments

Comments

@bdegner3210
Copy link

Compiled on Fedora using all current developmental headers.
Code:
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
socketcand -i vcan0

Output:
Error in beacon send()

must terminate with Ctrl+C.

@patilaabhishek
Copy link

Did you try this command - socketcand -i vcan0 with sudo.

I had same issue, this fixed it. Try it and let me know if you still face any issues.

@jianchangfeng
Copy link

i also ran into the issue, is it have been solved now?
root@localhost:~# socketcand -i can0
Error in beacon send()
Error in beacon send()
Error in beacon send()

@yegorich
Copy link
Contributor

yegorich commented Aug 6, 2019

@jianchangfeng as long as you don't have eth0 interface, you should specify the required network interface via -l parameter. Let me know if it fixes your issue.

@salmanfairoze
Copy link

When I run sudo socketcand -i can0 -d I get this verbode output

Verbose output activated

Using network interface 'eth0'
Listen adress is 136.165.152.0
Broadcast adress is 99.0.0.0
creating broadcast thread...
binding socket to 136.165.152.0:29536
bind: Cannot assign requested address

@ikuyas
Copy link

ikuyas commented Jun 24, 2022

I had the same error as the above.
How did you resolve the issue?

@ikuyas
Copy link

ikuyas commented Jun 27, 2022

$ sudo socketcand -i vcan0 -v
Verbose output activated

Using network interface 'eth0'
Listen adress is 252.127.0.0
Broadcast adress is 0.0.0.0
creating broadcast thread...
binding socket to 252.127.0.0:29536
bind: Cannot assign requested address

But I don't have the 'eht0', so I run 'sudo socketcand -i vcan0 -v -l lo'.
I got the following errors before executing Kayak, but after I use Kayak, the error disappears.

Error in beacon send()
Error in beacon send() 
client connected		# start Kayak 
connecting BCM socket... 
Closing client connection. 
client connected 
connecting BCM socket... 
client connected 
connecting BCM socket... 
state changed to 2 
Closing client connection.	# quit Kayak 
Closing client connection. 
Error in beacon send()

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

6 participants