It's clear where the Transaction and Protocol ID are, Unit ID, function code, etc. Here I'm noticing that my data that I'm sending the device is in Modbus TCP format. My Python Script's Wireshark Data and Script: ![]() I can't tell just by looking at the Data section where the unit ID is, or the function code. And the arrangement doesn't really make much sense to me. What I'm noticing here, that may be irrelevant, is that it's always sending 8 bytes of data. My thoughts were that maybe I could see how the packets/frames were arranged and then compare them to my python script's frames that it sends out. First thing I did was listen to the manufacturer's software talking to the device. Ok so lets look at some wireshark data (today was the first time I've ever used it, so go easy on me). So it must be that I'm doing something wrong. I'm able to get live data from the device. The manufacturer gave me some of their own software to talk to said device, probably written by their engineers, and it works. I'm able to make a connection to the device through python, but I can't get any data out of it as it doesn't seem to like my requests. I've been alternating between pymodbus and pymodbusTCP libraries. I have a device that supposedly uses Modbus TCP to communicate and I'm trying to write a python script to talk with it. Rule #6: Homework / Educational Questions must display effort. Rule #3: No BlogSpam / Traffic re-direction. Rule #2: No Certification Brain Dumps / Cheating. r/NetworkingJobs /r/sysadmin /r/ITCareerQuestions /r/CSCareerQuestions /r/ccna /r/juniper /r/jncia /r/ccnp /r/jncis /r/ccdp /r/jncip /r/ccie /r/ccde /r/cisco /r/jncie /r/HomeNetworking /r/TechSupport /r/Network /r/ipv6 /r/networkautomation /r/outages Related IRC Channels Discussions about ChatGPT and its impact to networking may be allowed. ![]() ChatGPT is not a source of truth rather it is a word-projection model.Content produced by ChatGPT/LLM is not permitted here.Topics that may affect one locale does not contribute enterprise networking discussions.Political posts tend to attract the wrong crowd and overly aggressive vocalization.This subreddit invites redditors from all around the globe to discuss enterprise networking.Show us how you think you should solve those issues, and we will validate or offer enhancement to your initial attempt.Don't ask us what we would buy for a given project./r/itcareerquestions /r/ccna and /r/ccent are all available for early-career discussions.This sub-reddit is dedicated to higher-level, more senior networking topics.Please review How to ask intelligent questions to avoid this issue.Professionals research & troubleshoot before they ask others for help. We expect our members to treat each other as fellow professionals.Any post that fails to display a minimal level of effort prior to asking for help is at risk of being Locked or Deleted.Surveys may be approved with the moderators' permission.But harassing members to check out your content will not be tolerated. You may share a URL to a blog that answers questions already in discussion. Directing our members to resources elsewhere is closely monitored. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |