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
How to replace the original tag name #19
Comments
Hello, what do you mean by replacing the original tag name? Can you give some more information? The reader decodes the EPC and prints part of it. See line 349 of tag_decoder_impl.cc. |
Thank you for your response. I love your code and appreciate your effort
and I have made your paper a base paper.
Firstly, your code so far reads two tags even though I have placed three
tags and increased the number of slot values to 2^5 =32.
Secondly, after detecting it shows Tag ID e1 or Tag ID 0. I want to replace
it with the tag's name like if I write a tag with the name of XYZ, it
should show me XYZ instead of e1, or 0, etc.
Thirdly, the most important is how to extract the CSI, RSSI, and phase from
the tag?
Thank you so much for your precious time.
…On Tue, Mar 1, 2022 at 2:25 PM Nikos Kargas ***@***.***> wrote:
Hello, what do you mean by replacing the original tag name? Can you give
some more information? The reader decodes the EPC and prints part of it.
Line 349 of tag_decoder_impl.cc.
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX4QXO5ZBWECCZMUYWZE23LU5YSG3ANCNFSM5PUFYBNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Best Regards:
M. Zakir Afridi
|
Regarding the first question: Is the reader able to read each tag individually? e.g., what happens if the num slots is 1 and you try to read a single tag (each one of them)? For the tag id, the decoder reads bits EPC_bits[104:111] and computes an integer (result) in tag_decoder_impl.cc. Then this value is printed in hex: You can alter any of these parts depending on what you want to do and recompile. I cannot provide any help with CSI, RSSI and phase other than what is already mentioned here: #9. |
Thank you so much for the ample reply.
// Fixed number of slots (2^(FIXED_Q))
const int FIXED_Q = 1;
the number of slots becomes 2 by formula. 2^1 = 2
After 10 to 20 runs the code detects two tags but I have placed four tags
by increasing the FIXED_Q = 4 only two tags are readable.
Can you tell me the loop goes to i< 8; mean total slots are 8?
I have written the tag name by giving the name for example tag1Room1 and i
want to alter the code by replacing the actual tag1Room1 instead of their
hex code
…On Tue, Mar 1, 2022 at 4:20 PM Nikos Kargas ***@***.***> wrote:
Regarding the first question: Is the reader able to read each tag
individually? e.g., what happens if the num slots is 1 and you try to read
a single tag (each one of them)?
For the tag id, the decoder reads bits EPC_bits[104:111] and computes an
integer (result) in tag_decoder_impl.cc.
int result = 0;
for(int i = 0 ; i < 8 ; ++i)
{
result += std::pow(2,7-i) * EPC_bits[104+i] ;
}
Then this value is printed in hex:
std::cout << std::hex << "| Tag ID : " << it->first << " "; in
reader_impl.cc
You can alter any of these parts depending on what you want to do and
recompile.
I cannot provide any help with CSI, RSSI and phase other than what is
already mentioned here: #9
<#9>.
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX4QXO6CDWJLOC2ARU7QFLTU5Y7VPANCNFSM5PUFYBNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Best Regards:
M. Zakir Afridi
|
result += std::pow(2,7-i) * EPC_bits[104+i] ;
Can you please explain this sentence ?
Thanks
…On Tue, Mar 1, 2022 at 5:10 PM zakir khan ***@***.***> wrote:
Thank you so much for the ample reply.
// Fixed number of slots (2^(FIXED_Q))
const int FIXED_Q = 1;
the number of slots becomes 2 by formula. 2^1 = 2
After 10 to 20 runs the code detects two tags but I have placed four tags
by increasing the FIXED_Q = 4 only two tags are readable.
Can you tell me the loop goes to i< 8; mean total slots are 8?
I have written the tag name by giving the name for example tag1Room1 and
i want to alter the code by replacing the actual tag1Room1 instead of their
hex code
On Tue, Mar 1, 2022 at 4:20 PM Nikos Kargas ***@***.***>
wrote:
> Regarding the first question: Is the reader able to read each tag
> individually? e.g., what happens if the num slots is 1 and you try to read
> a single tag (each one of them)?
>
> For the tag id, the decoder reads bits EPC_bits[104:111] and computes an
> integer (result) in tag_decoder_impl.cc.
> int result = 0;
> for(int i = 0 ; i < 8 ; ++i)
> {
> result += std::pow(2,7-i) * EPC_bits[104+i] ;
> }
>
> Then this value is printed in hex:
> std::cout << std::hex << "| Tag ID : " << it->first << " "; in
> reader_impl.cc
>
> You can alter any of these parts depending on what you want to do and
> recompile.
>
> I cannot provide any help with CSI, RSSI and phase other than what is
> already mentioned here: #9
> <#9>.
>
> —
> Reply to this email directly, view it on GitHub
> <#19 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AX4QXO6CDWJLOC2ARU7QFLTU5Y7VPANCNFSM5PUFYBNQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
Best Regards:
M. Zakir Afridi
--
Best Regards:
M. Zakir Afridi
|
This get 8 bits from the EPC and converts it to decimal. It is the part of the EPC that I used to identify each tag. |
I solved the problem but taking the help of Adam, for extracting the 96 bits EPC code instead of 2 bits.
|
Hello, can you make it clearer? Thank you very much! |
@MuhammadZakirKhan Hi, do you solve the problem of CSI, RSSI and phase? I want to know how to extract them too. Thank you very much! |
Dear @ht0102, initially it was 8 bit EPC code extraction and then passing to the main file for counting the number of unique tags and now i added a loop to help me extracting of 96 bits of EPC code and then i converted into ASCII code. |
Dear @enhenf, I have not extracted CSI only the amplitude and phase so far. |
Thank you very much for your reply! |
Exactly I have followed #9 but the problem is same then |
Thank you @nkargas for the awesome code and a starter for me. I face an issue with multiple tags with their own EPC name instead of Tag ID such as e1 etc 0, 1. How we are able to replace the original tag name?
Originally posted by @MuhammadZakirKhan in #4 (comment)
The text was updated successfully, but these errors were encountered: