--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "libmodbus".
Pour vous désabonner de ce groupe et ne plus en recevoir les messages, envoyez un e-mail à l'adresse libmodbus+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.
--
Vous recevez ce message car vous êtes abonné à un sujet dans le groupe Google Groupes "libmodbus".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/libmodbus/XcPNp5Qa4g0/unsubscribe.Pour plus d'options, visitez le site https://groups.google.com/d/optout .
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse libmodbus+unsubscribe@googlegroups.com.
--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "libmodbus".
Pour vous désabonner de ce sujet, consultez la page https://groups.google.com/d/topic/libmodbus/XcPNp5Qa4g0/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse libmodbus+...@googlegroups.com.
Hi Marcin,
I did some work on this last year.
I just wrote a simple C program based on the excellent examples and compiled it on the Pi and it worked a treat.
I don't have access to the code at present but could send it to you at the weekend if you wish.
It's very rough and ready as I ran out of time...
Cheers
Phil
--
--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "libmodbus".
Pour vous désabonner de ce sujet, consultez la page https://groups.google.com/d/topic/libmodbus/XcPNp5Qa4g0/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse libmodbus+...@googlegroups.com.
Have you tried setting timeouts? Some operations work so the code must be correct in some ways but there may be a possible race condition so some operations fail on timeouts.
What about putting a delay between operations? Are you overloading the slave devices? This may be related to the issue above.
Are you using the same USB RS485 cabling on both the X86 and Pi? Is it a cabling issue?
Chuck Watson BS, CEM,
CMVP
Direct USA
724-799-1529
www.EnergyChaser.com
Chuck raised a good point here! I used both an USB to rs485 converter and the built in UART via a max Chip and both worked fine. I had to add biasing resistors to the max to get it to work with all slaves. My guess is that you're using the same wiring and 485 convertor though?
I'll take a look at the weekend and see if I can see anything.
Sounds like a good start.
I was reading and writing to some automation gear and was at around 5ms for 20 registers so the 10s is very slow. What Baudrate etc are you using?
You probably only need 1 second or less but I don’t know anything about arduinos.
I normally just send the request (read or write), evaluate the response then carry on with the next request. Anything in the range of 1s is very slow.
I am running libmodbus( libmodbus-3.1.2) modbus rtu slave code in my Raspberrypi and modbus master simulator running in my windows pc. I have connected two pc via usb to rs232 converter cable.When i send request from the master simulator(running on windows) the slave code receives it wrongly.
i.e.
i am sending 01 03 00 00 00 0A C5 CD
but i am receiving it as 01 03 00 00 00 0A 05 1E
I also tried changing the values at the sender side and verify, what i found is that if i give value below 1F it is received properly at the slave side and any value above 1F is coming wrongly. Please help