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

Does not execute any commands #5

Open
DioneLago opened this issue Nov 30, 2023 · 8 comments
Open

Does not execute any commands #5

DioneLago opened this issue Nov 30, 2023 · 8 comments

Comments

@DioneLago
Copy link

Hey guys! I'm having the following TIMEOUT problem, return "No response in 3s". I can open the door without problems but any command I try to send returns TIMEOUT, can you help me?

@kybarg
Copy link
Owner

kybarg commented Dec 1, 2023

@DioneLago what device are you uisng it with?

@DioneLago
Copy link
Author

DioneLago commented Dec 1, 2023 via email

@kybarg
Copy link
Owner

kybarg commented Dec 2, 2023

@DioneLago Have you tried refactor branch?

@DioneLago DioneLago reopened this Dec 4, 2023
@DioneLago
Copy link
Author

Hi @kybarg ,
I tried with the refactor branch but it doesn't work, it doesn't receive anything in the sendToDevice function with the try catch.

@DioneLago
Copy link
Author

DioneLago commented Dec 4, 2023

Captura de Tela 2023-12-04 às 13 18 14

This is logs by try with function sendToDevice, is a buffer in hex, command, ACK and time
after 20 retries this return a error of timeout.

@DioneLago
Copy link
Author

I believe the problem occurs here https://github.com/kybarg/ebds/blob/refactor/lib/index.js#L135 because after this line the console log does not print, but I don't know why, I already checked the port and in this case /dev/ttyUSB0 is correct

@kybarg
Copy link
Owner

kybarg commented Dec 14, 2023

@DioneLago if you try to prpint out buffer here https://github.com/kybarg/ebds/blob/refactor/lib/index.js#L66
is there any output?
Also not sure about device path on Linux. I suppouse uare using Ubuntu

@DioneLago
Copy link
Author

Hi @kybarg, no any output in this line.
Yeah, this is run on Linux Ubuntu 22.04 and i run command dmesg to list a devices and /dev/ttyUSB0 listed and appoint to MEI Cashflow SC, i try with another port /dev/ttyS0 for example but not return data.

A model of MEI Cashflow is SCNR3828.

I verified to drivers for USB-serial virtual for Linux, and discover this is native on kernel of Linux. Not necessary to install anything.

I have have try commands to permitions:
$ chmod 777 /dev/ttyUSB0
$ chmod -R 777 /sys/bus/usb/devices
$ usermod -a -G dialout $USER
$ usermod -a -G plugdev $USER
$ usermod -a -G tty $USER

I observed green light is blinking every 3 seconds, in docs of MEI this is a problem with interface comunication. Maybe necessary to update of firmware.
https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads

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