xieyaxiongfly / Atheros_CSI_tool_OpenWRT_src

GNU General Public License v2.0
114 stars 53 forks source link

Not working at the injector mode on Openwrt system #11

Open ClarenceZSK opened 6 years ago

ClarenceZSK commented 6 years ago

Dear Dr. Xie,

I have built your CSI tool and installed it on my router Netgear WNDR3700v4. It shows that the CSI works well as your tutorial suggests. But I do not know what is the problem of the injector mode.

I have set all devices (one router and one Atheros 9580 card equipped on my Ubuntu machine) to work on monitor mode, following your tutorial to modify all devices' MAC addresses until the command "$ iw dev mon0 set freq 2437".

I would like to use the router to inject packets to my machine. So I ran the recvCSI app on the machine first to wait for the injecting packets from the router. Then I tried to run the command "$ injector -i mon0 -c 6HT20 -m 0 -n 100 -d 1000" on the OpenWRT but failed. It printed a usage message "injector -i mon0 -c 6HT20 -n 100 -s 1000", where -s mean the sleep time between packets. I had to run the command in this way. Nothing happened. There was no command delay, no log, and no packet received by my machine.

Is there something wrong for my setting? Looking forward to your reply. Thank you very much.

I bought a new router TP-Link WDR4310 to use the firmware you provide. The usage of injector command is also different to your tutorial. The code "injector.c" is not the version in your git https://github.com/xieyaxiongfly/lorcon.

ClarenceZSK commented 6 years ago

I have fixed the issue. The Makefile of lorcon package has a bug that "PKG_SOURCE_VERSION:=80be82a9bee088dc9ebd42fd61366b7abe182331" should be "PKG_SOURCE_VERSION:=3c2c1d398f6caaca0f524d397003212932b55ec3".

But I have another issue that I cannot receive the CSI when transmitting 40MHz packets by setting the option -b of injector to be 1. It works well when transmitting 20MHz packets. Could you please shed some light on that? @xieyaxiongfly Thank you very much.

purohitank commented 6 years ago

HI Yaxiong,

Thank you for developing this tool and making it available for us.

@ClarenceZSK thanks for the correction. I am able to get the CSI via injector mode as well. Even I am seeing the same issue. When I analyse on WireShark, I see that when we set -b to 1 (40MHz), there are no packets detected on WireShark. So maybe they are not being injected from router side.

xieyaxiongfly commented 6 years ago

For some unknown reasons, the Lorcon software cannot inject MIMO packets. I can fix that problem and provide some interfaces for you to select the antennas.

I am back on coding these days, I expect this to be done within 1 or 2 months.

On Fri, Jun 8, 2018 at 10:39 PM, ClarenceZSK notifications@github.com wrote:

@xieyaxiongfly https://github.com/xieyaxiongfly Is there any method to do antenna selection for the injector? The injector only chooses one antenna to get the send packet so that I receive a 3156 CSI matrix. I would like to get a 3356 CSI matrix in the injection-monitor mode.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xieyaxiongfly/Atheros_CSI_tool_OpenWRT_src/issues/11#issuecomment-395781626, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-RQ2oC9-HD-6L1N9TLpu_krmwUP24Xks5t6oyzgaJpZM4UU61n .

--

*-- Yaxiong Xie / *谢亚雄

School of Computer Engineering

Nanyang Technological University, Singapore

xieyaxiongfly commented 6 years ago

The bandwidth problem is not that easy to solve. I didn't figure out how to inject packet with 40MHz. But you can transmit 40MHz packet in AP-Client mode.

On Fri, Jun 8, 2018 at 2:24 PM, purohitank notifications@github.com wrote:

HI Yaxiong,

Thank you for developing this tool and making it available for us.

@ClarenceZSK https://github.com/ClarenceZSK thanks for the correction. I am able to get the CSI via injector mode as well. Even I am seeing the same issue. When I analyse on WireShark, I see that when we set -b to 1 (40MHz), there are no packets detected on WireShark. So maybe they are not being injected from router side.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xieyaxiongfly/Atheros_CSI_tool_OpenWRT_src/issues/11#issuecomment-395660517, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-RQ9pHXcsokgA469XEHJvqORB-ghohks5t6hiSgaJpZM4UU61n .

--

*-- Yaxiong Xie / *谢亚雄

School of Computer Engineering

Nanyang Technological University, Singapore

Alpha2Cool commented 4 years ago

I have fixed the issue. The Makefile of lorcon package has a bug that "PKG_SOURCE_VERSION:=80be82a9bee088dc9ebd42fd61366b7abe182331" should be "PKG_SOURCE_VERSION:=3c2c1d398f6caaca0f524d397003212932b55ec3".

But I have another issue that I cannot receive the CSI when transmitting 40MHz packets by setting the option -b of injector to be 1. It works well when transmitting 20MHz packets. Could you please shed some light on that? @xieyaxiongfly Thank you very much.

I can't finish compiling firmware when I fix as you say, I can't inject packets, help....