How to access both EPC , Tagid and USER memory banks in RFID tag (Chainway C72) - rfid

We are developing an application using chainway C72 device (Android 11). We have to read multiple tags simultaneously and for each tag, we have to get EPC, Tag ID and one particular word from EPC (64 to 1 word - DataWord). We managed to get all data but tagID, EPC and the data word are not getting properly when multiple tags are in range. It is giving epc of one tag, tag id of another one and Data word of another one tag. Is there any method to read all three parameters together for a particular tag?
We are using the UHFReadData function to get the result.

Related

Can we edit the EPC of UHF tag to a URL ?

Can we set EPC of the UHF tag from E282XXXX..., to some URL link? Like https://www.google.com??
Is this possible??
I know that we can edit NFC tag by giving url in the NDEF data with NXP tag writer app.
I wanted to do the same with UHF tags as well.
UHF tag details: International Standards
 EPC Class 1 Gen 2
ISO 18000-6CTg EPC Class 1 Gen 2
ISO 18000-6C
Operating Frequency
860 - 960 MHz
Integrated Circuit (IC)
NXP UCODE G2iL
Since NXP UCODE G2iL you want to use does not have the area (User Memory) necessary to describe the URL.
2.1.1 Memory
- 128-bit of EPC memory
- 64-bit Tag IDentifier (TID) including 32-bit factory locked unique serial number
- 32-bit kill password to permanently disable the tag
- 32-bit access password to allow a transition into the secured state
If you want to include URL in RFID tag data, please use tag with user memory area.
Since "GS1 EPC Tag Data Standard 1.9", the format of the user memory area is specified, and if you use the AI 8200 you can describe the URL of up to 70 characters.
However, this URL is related to the corresponding product, and should not describe any URL not related to the product.
Let's use AI 91 to AI 99 etc. if you write any URL not related to product.
For example, you can check URL data encoding/decoding on this EPC User Memory Encoder/Decoder.
If you select "AI 8200 - PRODUCT URL" in "Add a data element" of "Input Data" and enter the URL in the field, the encoded data in hexadecimal is displayed below it.
AI is an acronym for Application Identifier and is specified here GS1 General Specifications.

How to convert Notes document link to HTML link

I am charged with maintaining some old code, in which we are extracting a Notes link from a message, and turning it into a link that can be called from HTML on a local machine (on which Notes is installed). We have a situation where one link works, and another one does not.
I am struggling to understand what exactly this code is doing, and why it even works in the first place. Basically, we are looking at the property "$Links" in an email message. The value of this property, for example, when viewed in Notes, is something like:
RFC2257F23:004852B9
VFA5208C4C:6552DA01-VN422569FB:003AAC2D
NF6D24A297:6579B8E3-NNC225805D:004D8678
What our code does is get the binary value of this property, using NSFItemInfo and OSLockBlock. It then starts at offset 11, and works backwards 8 bytes, converting each byte to a 2 digit hex value. Then it does the same thing 3 more times, but moving the offset 8 bytes forward from the original 11. A '/' character is inserted after the 1st and 3rd of these 8 byte segments. Then the whole thing is appended to "notes:///". At the end, the link generated looks like this:
Notes:///C2257F23004852B9/A5208C4C6552DA01422569FB003AAC2D/6D24A2976579B8E3C225805D004D8678
I'm guessing that this value represents the Notes UNID of the document link, and that when clicked on, Notes
starts up, and goes directly to the document. So does anyone have an idea as to why one link would work, and
the other fail? Our customer claims that the Notes links database is intact, and can be viewed successfully
from within Notes itself.
Notes- Links consist of the protocol, a server part, a database part and the element within the database.
A normal example would be:
notes://server/path/database.nsf/view/keytodocumentinview
Every part (except the server) can be replaced by an internal ID.
path/database.nsf --> Replica ID (C2257F23004852B9 in your example)
view --> Universal ID of the design element of the view (A5208C4C6552DA01422569FB003AAC2D)
keytodocumentinview --> Universal ID of the document (6D24A2976579B8E3C225805D004D8678)
If there is no server in the link, then the notes client tries to "guess" the right server. It checks:
Is there an icon in the desktop for the Replica- ID requested. If yes: take the server of the last used replica (on the top if replicas are stacked)
Can I find a catalog.nsf (either on catalog- server from location document or on mail- home- server. If yes: Is the replica- id in there? If yes: Take the server from there...
Ask user for server (not sure about that part, as it not always seems to happen)
So the answer to your question is:
If the client can not find any reference to the server the link will not work.
So it is always better to add the right server to the link (if you know it).
Just to explain, how to get from one form to the other, here is some more explanation:
Some times these IDs are represented differently as found in the $Links- Item:
The first letter stands for the "Type" of ID:
R = Replica ID
V = View Universal ID
N = Note Universal ID
All 32Bit values are separated in 2 halfs of 16 bit, prepended by another Character telling "First" (F) or "Second" (=Next, N) value.
The rest is divided in chunks of 8 letters, the first and third octet separated with colons, and the first half and second half split by a minus sign.
Like that you can easily see:
RFC2257F23:004852B9 translates into FC2257F23004852B9
VFA5208C4C:6552DA01-VN422569FB:003AAC2D translates into A5208C4C 6552DA01 422569FB 003AAC2D
and
NF6D24A297:6579B8E3-NNC225805D:004D8678 translates into 6D24A297 6579B8E3 C225805D 004D8678

MODX - Access TV's of resource fetched from a ResourceList and display with getImageList

I'm trying to output template variables from resources input into a MIGX template variable, which references a template variable with an input type of 'Resource List'. Is this possible?
I've got a template variable(TV) in MODX which has an input type of "Resource List", this TV is called 'product_offer'. This resource list has a where clause which states that it can only contain products with a certain template ID.
I then have another TV which has an input type of MIGX. I use this TV to allow one of my resources to select a list of Resources in a template variable. The MIGX TV's form tab JSON is below. This TV is called 'offersList'.
[
{"caption":"Product", "fields": [
{"field":"Product","caption":"Product","inputTV":"product_offer"}
]}
]
In one of my chunks i'm using getImageList (snippet that comes with migx) to display the list of resources that I've input into the 'offers_list'. Code snippet below:
[[getImageList?
&tvname=`offersList`
&tpl=`StoreCategoryTpl-New`
]]
The chunk "StoreCategoryTpl-New" accesses the resources with this specific ID's template variables and displays a number of them. A cut-down snippet of the chunk is below.
<div class="product-container">
<img src="[[+tv.productImage:phpthumbof=`w=150&h=150&zc=1`]]" alt="Thumb of ([[!getResourceField? &id=`[[+product]]` &field=`pagetitle`]])" />
<h3>[[+pagetitle]]</h3>
</div>
Everywhere else in the site I have used this chunk to output the result of a getResources call, getResources of course can output Template Variables.
Can I access the template variables from the resources I've selected in my 'offersList' MIGX TV and output them in the chunk? I can't find any material for this on the forum or through Google searching.
If not, is the only solution to do this with getResources, and perhaps make a new TV which allows the user to enter in multiple Resource ID's as the value, then feed that into the getResources call (to only get those resources)?
I can only guess, but did you try and set the input TV Type like mentioned here?
https://docs.modx.com/extras/revo/migx/migx.backend-usage
I'd try and set the TV type.
Anyway, in the output chunk, you are trying to access the TVs like you would do with pdoTools or getResources before. As you would have to set "includeTVs", I guess it is not the default behaviour to read the TVs values from the database.
Yout Attempt to read them with getResourceField instead should work, also with the tv.productImage.
One last thing: you're using phpthumbof. Try pthumb instead, it is the new version and you can use it just like phpthumbof before.

One tag two different codes

Is anyone familiar with RFID readers? I have two different RFID reader. If I scan same tag one gives me a code:
0023151773[CR] and second gives : [02]MM2C010161449D30[08][03]
Tag ID is same in both outputs but however I need that longer code to my app. I need few more readers so how can I find a correct reader?
Converting the decimal number 0023151773 to hexadecimal gives you 0161449D. Looking at the output from the second reader, this seems to be part of that output: MM2C010161449D30. Thus, both readers do provide the same tag ID value (0161449D).

sequence diagram for android application that uses NFC

The below diagram is based on an android application. When the application loads the user is given 3 button to select add, update and Search. On click on add button the user is given an option to add a new user or add a new item. When the user selects the add item option he enters the required data. Once the data is entered the system check if all the values are entered is correct. if it is correct it is saved if not the user is asked to re-enter the values.One the data is saved the user is asked to write the asset id to an NFC tag.
The same process is applied for update section.
In the search the user is given 2 option to either search the asset through text or by tapping the NFC device onto the NFC tag to search the desired item from the database.
I wanted to know if the sequence diagram I have done is correct.
I would remove the Choose an Option messages. The machine does not trigger anything at the actor. It's the actor who decides. So the initial message always comes from the actor.
The Return Result is implicit with the dotted line. Instead describe what is being returned.
Finally (and most important) you do not use objects but classes in your SD. Always (!) use objects since its an object which communicates, not a class.

Resources