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

RSSI parse example #361

Open
UmmonKRS opened this issue Dec 10, 2021 · 3 comments
Open

RSSI parse example #361

UmmonKRS opened this issue Dec 10, 2021 · 3 comments

Comments

@UmmonKRS
Copy link

Hi!
On codeproject page there mentions of supporting of IEEE 802, can't find an example how to get rssi information from PacketCapture.
Is this feature supported by library?

@chmorgan
Copy link
Collaborator

Hi @UmmonKRS, you'll want to look at https://github.com/dotpcap/packetnet, and it looks like 802 is supported:

grep -ri RSSI

...
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiCombined = 0x3,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna0Control = 0x4,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna1Control = 0x5,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna2Control = 0x6,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna3Control = 0x7,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna0Ext = 0x8,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna1Ext = 0x9,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna2Ext = 0xA,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                RssiAntenna3Ext = 0xB,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x3, recreatedField.RssiCombined);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x4, recreatedField.RssiAntenna0Control);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x5, recreatedField.RssiAntenna1Control);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x6, recreatedField.RssiAntenna2Control);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x7, recreatedField.RssiAntenna3Control);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x8, recreatedField.RssiAntenna0Ext);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0x9, recreatedField.RssiAntenna1Ext);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0xA, recreatedField.RssiAntenna2Ext);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0xB, recreatedField.RssiAntenna3Ext);
Test/PacketType/Ieee80211/PpiFieldsTests.cs:                MaximumRssi = 0xAABB,
Test/PacketType/Ieee80211/PpiFieldsTests.cs:            Assert.AreEqual(0xAABB, recreatedField.MaximumRssi);
...

@UmmonKRS
Copy link
Author

Hi Chris!
Got it, parse works fine for me, thank you!

But I've stucked in capture packages in monitor mode.
Have 2 different AP, Win10, npcap 1.55; using Wireshark and AP in monitor mode - I can see there is packages.
I've tried Example03.BasicCap, VS2019 admin mode - there is no events device_OnPacketArrival.
Have tried to play with mode/timeout on device.Open(...) with no success.
Changing mode to "monitor" via WlanHelper also didn't help.

Could you help, please?

@UmmonKRS
Copy link
Author

Hi @chmorgan
Have you any ideas how to solve this issue?

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