Code Monkey home page Code Monkey logo

Comments (4)

JoelBender avatar JoelBender commented on August 19, 2024

Please follow this up with a picture of the Complex-ACK that was returned, like number 457. There may be something more in the BVLL or NPDU layers that is preventing the request and response from lining up. The [1] being repeated is due to the number of APDU retries and the delay between request attempts is due to the APDU timeout.

from bacpypes.

ind-georghuber avatar ind-georghuber commented on August 19, 2024

Yes of course, here it is. Hope it helps.

Wireshark_Capture_RequestingVM_457

from bacpypes.

JoelBender avatar JoelBender commented on August 19, 2024

In the bacpypes-pcap project there is a hexdecode.py. Here is the request:

$ python hexdecode.py 00505601b9e20050.5691796008004500.002d64ed00008011.00000a0000210a00.0022bac0bac00019.146d810a00110104.0244010c0c008000.011955
    pduSource = <Address 10.0.0.33>
    pduDestination = <Address 10.0.0.34>
    pduExpectingReply = True
    pduNetworkPriority = 0
    apduType = 0
    apduSeg = False
    apduMor = False
    apduSA = True
    apduMaxSegs = 4
    apduMaxResp = 4
    apduService = 12
    apduInvokeID = 1
    objectIdentifier = ('analogValue', 1)
    propertyIdentifier = 'presentValue'
    pduData = x''

And here is the response:

$ python hexdecode.py 00505691796000505691b9e208004500.003377fc00008011.ae7b010000220a00.0021c9f6bac0001f.cfc4810a00170100.30010c0c00800001.19553e4441a80000.3f
    pduSource = <Address 0x01000022c9f6>
    pduDestination = <Address 10.0.0.33>
    pduExpectingReply = False
    pduNetworkPriority = 0
    apduType = 3
    apduSeg = False
    apduMor = False
    apduService = 12
    apduInvokeID = 1
    objectIdentifier = ('analogValue', 1)
    propertyIdentifier = 'presentValue'
    propertyValue
            <bacpypes.primitivedata.Tag(real) instance at 0x7f43a06bd7b0>
                tagClass = 0 application
                tagNumber = 4 real
                tagLVT = 4
                tagData = '41.a8.00.00'
    pduData = x''

The clue for me that they don't line up is that the ba c0 ba c0 isn't in the UDP header of the response. I think that if you expand the IP and UDP headers you should see they aren't a matched pair.

from bacpypes.

ind-georghuber avatar ind-georghuber commented on August 19, 2024

Yeah thats true. Thank you, udp destination was the standard port 47808. But the Server listens on 51702. When i change the Address to 10.0.0.34:51702, it works and i get the value. ;D

from bacpypes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.