Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

How to set SISO? #34

Closed
KOBETRACY opened this issue Apr 12, 2015 · 11 comments
Closed

How to set SISO? #34

KOBETRACY opened this issue Apr 12, 2015 · 11 comments

Comments

@KOBETRACY
Copy link

Dear Daniel,I have make the injection script work correctly.And I can set the transmitter number ,got a one-tx & three-rx system .Now I want to know how to set the receiver,and make an SISO system?Looking for your favorite reply.Thank you!

@dhalperi
Copy link
Owner

There is a debugfs parameter called rx_chains_msk – I believe you should be able to set it before card initialization in order to disable in software some of the RX antennas. (For some reason, the name of this parameter has always been rx_chains_msk even though IIRC it's actually an antenna mask. It's been a long time.)

I can't find any scripts that use it, so I'm not sure exactly how it works any more – probably why this parameter is not documented in the FAQ.

You will almost certainly want to set the parameter while the interface is disabled (e.g., before running ifconfig wlan0 up or however you enable the interface).

You set it similarly to how you set other debugfs parameters including monitor_tx_rate.

@KOBETRACY
Copy link
Author

Thank you !I will try that.And it is really nice when you say IIRC.I think it sounds really cool!I will remember that abbreviation. :)

@dhalperi
Copy link
Owner

Please let me know whether it works

@KOBETRACY
Copy link
Author

Hi Daniel,sorry for replying late.I tried it.I found the parameter 'rx_chains_msk' ,but I cannot configure it like monitor_tx_rate .
I set it as followed:
echo rx_chains: 1 antennas, mask 0x7 | sudo tee /sys/kernel/debug/ieee80211/ phy0/iwlwifi/debug/rx_chains_msk

Then,it shows that:
tee: /sys/kernel/debug/ieee80211/phy0/iwlwifi/debug/rx_chains_msk: Invalid argument

I also used "1 antenna" & "2 antennas" to set it, but failed either.

I want to set the parameter as you said,but I can't.Could you tell me some details about that?Thank you!

@dhalperi
Copy link
Owner

I believe the argument is a number 0x1–0x7 corresponding to antenna A (0x1), B (0x2), C (0x4), or any combination of them by addition. So for example,

echo 0x4 | sudo tee /sys/kernel/debug/ieee80211/phy0/iwlwifi/debug/rx_chains_msk

@KOBETRACY
Copy link
Author

Ok I will try it 5 hours later & I will tell you how it works.Thank you! In my opinion, the mask is fixed so I didn't try it yesterday.

@KOBETRACY
Copy link
Author

It worked well.I followed as you said,and figure it out.The SISO system has been done!Thank you very much!By the way,I want to ask you another question, as follow text shows:
received 93 bytes: id: 254 val: 1 seq: 0 clen: 93
received 93 bytes: id: 254 val: 1 seq: 0 clen: 93
...............................
Does the "id" mean the transmitter "address"? If I want to use multiple transmitters to send packets simultaneously. Can I change the id number to identify the packets from different transmitters?This is my opinion,I don't know whether it will work correctly.Could you tell me something about that?Thank you!

@KOBETRACY
Copy link
Author

Dear Daniel, I also come up with an idea that if only one transmitter and multiple receivers in the system.Different receiver will get all the packets from the transmitter .What do you think this method could solve my problem which I mention in the last responding?Thank you!

@dhalperi
Copy link
Owner

That id is not something you can use, no. Please look at the code to see how its value is set, rather than asking me – you need to learn how to find these answers for yourself!

For other questions, please start new issues – it sounds like you got receive antenna selection to work, so I'm closing this one!

@dhalperi dhalperi changed the title Injection succeed!I can set transmitting antenna. How to set SISO? How to set SISO? Apr 14, 2015
@dhalperi
Copy link
Owner

You will want to read #27, by the way.

@KOBETRACY
Copy link
Author

Thank you very much!

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

No branches or pull requests

2 participants