Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/02/09 10:40
Read: times


 
#171383 - modbus
Responding to: ???'s previous message

As per my earlier post, download the utilities I noted. These can send/receive modbus and give you hex dumps ofthe data they receive.

If you receive a packet with a bad CRC - it gets rejected silently.
If you send a packet to a slave ID that is not present you will also get no response.
If you send a packet with the wrong parity, it too will get silently rejected. A slave device can't respond to a corrupt packet since how does it know it is to be addressed? You only get an error response when a correctly formed packet is received but there is an error in the request - bad command, illegal register etc.


You've given us little hard evidence to diagnose your problem - just a lot of assumptions. Most likely one or many of your assumptions are incorrect and conspire to the problem you're experiencing.

With Modscan you can have it act as a master so you can set up a request the same as your micro and look at the data it sends to confirm the CRC etc. This feature alone has saved me an enormous amount of debugging time.

List of 27 messages in thread
TopicAuthorDate
Modbus            01/01/70 00:00      
   What testing have you done?            01/01/70 00:00      
   Don't use hyperterminal            01/01/70 00:00      
   modbus            01/01/70 00:00      
      modbus            01/01/70 00:00      
         Still lots of debugging left            01/01/70 00:00      
            Modbus            01/01/70 00:00      
               Not very helpful            01/01/70 00:00      
                  Modbus            01/01/70 00:00      
                     Still need to break the problem down into smaller steps            01/01/70 00:00      
                        Modbus            01/01/70 00:00      
                           modbus            01/01/70 00:00      
                              modbus            01/01/70 00:00      
                                 Parity            01/01/70 00:00      
                                 Oscilloscope results?            01/01/70 00:00      
                                 open source            01/01/70 00:00      
                        Also RTU Framing            01/01/70 00:00      
                           Framing, addressing etc has been discussed            01/01/70 00:00      
                              modbus            01/01/70 00:00      
                                 Bad CRC order!!            01/01/70 00:00      
                                    modbus            01/01/70 00:00      
                                       modbus            01/01/70 00:00      
                                       Don't know why,            01/01/70 00:00      
                                       Comparison with something known working            01/01/70 00:00      
                     what device address            01/01/70 00:00      
                        modbus            01/01/70 00:00      
   I would do this...            01/01/70 00:00      

Back to Subject List