-
Notifications
You must be signed in to change notification settings - Fork 949
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
AttributeError: 'NoneType' object has no attribute 'interCharTimeout' #373
Comments
what version of pyserial are you using ? Please use the template to report the issue (OS , Pymodbus etc) |
Name: pymodbus OS: |
Could you please paste the output of |
alembic (1.0.5) |
I see you are using
|
Yes it has attributes
only |
A PR already is in place #354 for the same. |
Fixed and available as part of v2.2.0rc1. |
@dhoomakethu I've installed 2.2.0rc1 and getting the same error as the OP. I looked at the file in my site packages and line 488 does not check
and my client code is
|
As a temp workaround , you can create your client s with kwarg |
@programatt did you got solution. I'm struggling with same. So please help me in communicating with RS-485. I'm able to get value in modscan32 but not in Rpi. |
@bhtakti-aatma Please refer #377 for a fix. |
@dhoomakethu thanks for quick response. Now I'm getting result: |
@bhtakti-aatma Could you be more specific with what you mean by |
@dhoomakethu here's my python script, I have done some correction now it's giving output. but the register which i am able to read from modscan are not able to read fro code :
|
@dhoomakethu now it's coming : ========================== RESTART: /home/pi/rs3.py ========================== True |
You are passing the wrong data address ( |
@dhoomakethu Your help is too much appreciable, I'm making progress step by step. Now it's coming like this: I'm using a Conzerv EM6400 voltage meter to measure voltage. In it's manual there's mention that |
@dhoomakethu if you need some more information for this, then please let me know ? I'm still unable solve it. |
@dhoomakethu thanks for letting me solve this at my own after guiding me. You are a good instructor. Keep doing your good work. |
@py2pi can you summarize how this issue was resolved for you? I'm having a similar issue. Was it as simple as |
@willcharlton Sorry for late reply. It can work on strict=False. You just have to read the correct registers. |
@willcharlton I used this code to read the holding registers. Hope it'll help out you. import pymodbus def conn(): def read():
read() |
https://github.com/riptideio/pymodbus/blob/f0edef3071d500b7e3a987ee196c38bb79f59518/pymodbus/client/sync.py#L476
Following error is coming when i am trying to make a serial modbus connection through
rtu
Please put a check None check here
The text was updated successfully, but these errors were encountered: