This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

M-bus problem
#1
Hi, 
I am having problems reading data from m-bus meter. I have Caleffi Conteca Easy with M-Bus (750705) a Techbase M-Bus to rs485 Converter (MBus10) and a LM, i am trying with this script:
Code:
require('mbus')

mbus.init('/dev/ttyUSB0', 9600 ,"half")


res, err = mbus.scan(1 , 10, 1)
log(res)
log(err)
log(mbus.getdata(7))
 to scan for the Caleffi meter (address:7) and to read some data from it. As a result i get this:
Code:
m-bus 17.05.2023 12:07:52
* table:
[1]
  * bool: false
[2]
  * bool: false
[3]
  * bool: false
[4]
  * bool: false
[5]
  * bool: false
[6]
  * bool: false
[7]
  * bool: false
[8]
  * bool: false
[9]
  * bool: false
[10]
  * bool: false
m-bus 17.05.2023 12:07:52
* nil
m-bus 17.05.2023 12:07:54
* arg: 1
  * nil
* arg: 2
  * string: failed to send/receive frame
I have tried changing polarity of the m-bus and of the rs485 connection with no result though. Could you help me? Huh
Reply


Messages In This Thread
M-bus problem - by Andrea Becagli - 17.05.2023, 10:10
RE: M-bus problem - by Daniel - 17.05.2023, 10:20
RE: M-bus problem - by Andrea Becagli - 17.05.2023, 10:26
RE: M-bus problem - by admin - 17.05.2023, 10:27
RE: M-bus problem - by Andrea Becagli - 17.05.2023, 10:39
RE: M-bus problem - by Daniel - 17.05.2023, 10:43
RE: M-bus problem - by admin - 17.05.2023, 10:58

Forum Jump: