question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can’t start the client example.

Python 3.7.0 (default, Sep 15 2018, 19:13:07) [GCC 8.2.1 20180831] on linux

[dev@dev-vm modbus]$ python modbus_client.py 
Traceback (most recent call last):
  File "modbus_client.py", line 18, in <module>
    response = tcp.send_message(message, sock)
  File "/usr/lib/python3.7/site-packages/umodbus/client/tcp.py", line 262, in send_message
    raise_for_exception_adu(response_error_adu)
  File "/usr/lib/python3.7/site-packages/umodbus/client/tcp.py", line 247, in raise_for_exception_adu
    pdu_to_function_code_or_raise_error(resp_pdu)
  File "/usr/lib/python3.7/site-packages/umodbus/functions.py", line 111, in pdu_to_function_code_or_raise_error
    raise error_code_to_exception_map[error_code]
umodbus.exceptions.IllegalDataAddressError:  The data address received in de request is not an allowable address for
    the server.

How can I fix it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
albcpcommented, Jun 25, 2020

Hi @codevak, the code for the server included in the Readme is wrong, you need to modify function_codes=[3, 4] to function_codes=[1, 2] and function_codes=[6, 16] to function_codes=[5, 15].

0reactions
codevakcommented, Jun 26, 2020

Hi, This works now. Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Smart Start Client Portal - Apps on Google Play
Smart Start now offers a convenient, easy-to-use app that allows you to create or manage your alcohol monitoring account directly from your phone!...
Read more >
Smart Start Client Portal 4+ - App Store
Smart Start now offers a convenient, easy-to-use app that allows you to create or manage your alcohol monitoring account directly from your phone!...
Read more >
Manage Your Account Easily With Client Portal - Smart Start
Whether you're a new or existing client, Smart Start Client Portal is an easy way to manage your account online or from your...
Read more >
5.12.2.3 Introduction to Java Web Start Interface - WebNMS
Java Web Start is the latest client side technology introduced by Sun ... The Web Start Interface is built over the Web NMS...
Read more >
Web Start client - IBM
Take the following steps to configure the Web Start client. ... Edit the install_dir/Config/tep.jnlpt file and locate the line beginning with codebase= ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found