Skip to content
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

No response when execute RequestUtils.readProperties #99

Open
yangshuyi opened this issue Jul 5, 2024 · 4 comments
Open

No response when execute RequestUtils.readProperties #99

yangshuyi opened this issue Jul 5, 2024 · 4 comments

Comments

@yangshuyi
Copy link

I'm now using Polling way to fetch the value from device. Sometime when executing RequestUtils.readProperties, it will not come back any response (more than 30 seconds no response). Normally, it will give back the value within 1second.

I have to wrap the invocation with a Future and set a timeout exception logic. But actually, I don't want to get any failure.

Can someone kindly show me what's the reason.

    <dependency>
        <groupId>com.infiniteautomation</groupId>
        <artifactId>bacnet4j</artifactId>
        <version>6.0.0</version>
    </dependency>
@yangshuyi
Copy link
Author

I attached the log screenshot

image

From it, you can see the normal request will have a matched NPDU, but the timeout request do not have. That means cannot receive the response from server.

Anyone knows what's the reason?

@kishorevenki
Copy link

Which is the device having address 192.168.30.255? This address looks like broadcast address. So any device that receives with the broadcast address would discard the packets, if the those mesages are not a valid broadcast message. RP, WP, requests are unicast message and Who-Is, I-Am, Who-Has, I-have etc. are broadcast messages.

@yangshuyi
Copy link
Author

yangshuyi commented Jul 11, 2024

Which is the device having address 192.168.30.255? This address looks like broadcast address. So any device that receives with the broadcast address would discard the packets, if the those mesages are not a valid broadcast message. RP, WP, requests are unicast message and Who-Is, I-Am, Who-Has, I-have etc. are broadcast messages.

Thank you for answering the question.

The 192.168.30.255 is a boardcast address. I can get devices list by sending WhoIs Request. After that I can get a list of devices.

The question is that why sometimes can get the packets, sometimes cannot? Does the bad network issue?

I try to read only one PropertyIdentifier, sometimes also get timeout. So I guess it is not related with the side of request.

@kishorevenki
Copy link

Can you please share the wireshark logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants