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

Serial UART not working #10

Closed
ouranos6 opened this issue Oct 25, 2020 · 10 comments
Closed

Serial UART not working #10

ouranos6 opened this issue Oct 25, 2020 · 10 comments

Comments

@ouranos6
Copy link

Hi,

Hardware:
Rpi 3
USB to m-bus
TTL to m-bus
TSS721 Module M-BUS To TTL with RX TX Indicator STM32 Development Board Free Shipping
https://a.aliexpress.com/_A7ii0r

I have two setups, the first one with an USB m-bus who is working very well.

The second one is an ttl m-bus and I have an issue when I set ‘/dev/ttyAMA0’, the server loose connection

If I use the serial IN I have no problem to connect.

What I’am doing wrong?

@ouranos6
Copy link
Author

Ok now I have someting else, after disabling the console to serial and enabling the serial port I have another strange behaviour.

each 10 sec. it try to reconnect and say "one device loaded from file" I guess it's before I've tried with the USB to m-bus

image

image

Any clue?

@robertsLando
Copy link
Owner

Try to delete the file

@ouranos6
Copy link
Author

ok but where is the file?
return RED.settings.userDir + '/' + DEVICES_FILE + (node.name ? '_' + node.name : '') + '.json';
but in .node-red/ I can't see anyting with devices... .json

@robertsLando
Copy link
Owner

You should check what's your settings userDir. You find it in settings.json. By default it should be: ~/.node-red

@ouranos6
Copy link
Author

ok found it and remove it, reboot the RPI and now it says error: no device to update

@ouranos6
Copy link
Author

after a new reboot and a new scan I have scan complete 0 devices found but it's wired on the same way that I was using the USB

@robertsLando
Copy link
Owner

I cannot see anything wrong here, unfortunally sometimes the problems could be caused by wrong connections or usb adapters that are not working properly

@ouranos6
Copy link
Author

ok, I will try again tonight, and let you know if it's working right

@tsr8
Copy link

tsr8 commented Mar 9, 2021

Similar issue. scan complete 0 devices found. I have M-BUS to RS485 converter, if I connect it to PC and using MBus scan software (M-Bus sheet) then all connected heat meters founded (11) but in node-red it is zero. Can't get device data from getDevice: Error while reading device 67102948 : Error: Failed to send/receive M-Bus request frame[67102948], where 67102948 is the secondary address.
What could be wrong?
Is libmbus necessary to node-red-contrib-m-bus work?

@tsr8
Copy link

tsr8 commented Mar 12, 2021

I have solved my issue. It was caused by too small timeouts in libmbus library. Created an libmbus issue: rscada/libmbus#186
And node-mbus issue: Apollon77/node-mbus#70

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

3 participants