Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Eliminating duplicate XML files

11 posts in General Discussion Last posting was on 2007-02-20 16:32:59.0Z
Deepak Kumar Posted on 2006-10-05 13:46:51.0Z
Sender: 406d.452501aa.1804289383@sybase.com
From: Deepak Kumar
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Eliminating duplicate XML files
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45250ccb.40c7.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Oct 2006 06:46:51 -0700
X-Trace: forums-1-dub 1160056011 10.22.241.41 (5 Oct 2006 06:46:51 -0700)
X-Original-Trace: 5 Oct 2006 06:46:51 -0700, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:167
Article PK: 9948

Hi Matt,

Your previous technical advice was useful to us. Thanks.

I am generating XML file output. Each XML file has unique
(non-repeated) tag data within. However I am having lot of
duplicate XML files in my output folder.

Could you tell me which settings are to be changed, if any,
to achieve unique XML files without any duplication?

Thanking you in advance...


Matt Posted on 2006-10-05 17:49:53.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <45250ccb.40c7.1681692777@sybase.com>
Subject: Re: Eliminating duplicate XML files
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: mteskey-pc2.sybase.com
X-Original-NNTP-Posting-Host: mteskey-pc2.sybase.com
Message-ID: <452545c1$1@forums-1-dub>
Date: 5 Oct 2006 10:49:53 -0700
X-Trace: forums-1-dub 1160070593 10.25.99.161 (5 Oct 2006 10:49:53 -0700)
X-Original-Trace: 5 Oct 2006 10:49:53 -0700, mteskey-pc2.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:168
Article PK: 9950

Deepak:

Can you provide some specific details on what you have set up in your
environment and what you are trying to accomplish?

- Are the XML files custom output from a business module? An ALE report?
- Are you using a simulation?
- etc.

Thanks..

Matt..

<Deepak Kumar> wrote in message news:45250ccb.40c7.1681692777@sybase.com...
> Hi Matt,
>
> Your previous technical advice was useful to us. Thanks.
>
> I am generating XML file output. Each XML file has unique
> (non-repeated) tag data within. However I am having lot of
> duplicate XML files in my output folder.
>
> Could you tell me which settings are to be changed, if any,
> to achieve unique XML files without any duplication?
>
> Thanking you in advance...


Deepak Kumar Posted on 2006-10-06 07:05:34.0Z
Sender: 418e.45251ad5.1804289383@sybase.com
From: Deepak Kumar
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Re: Eliminating duplicate XML files
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4526003e.4bcf.1681692777@sybase.com>
References: <452545c1$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Oct 2006 00:05:34 -0700
X-Trace: forums-1-dub 1160118334 10.22.241.41 (6 Oct 2006 00:05:34 -0700)
X-Original-Trace: 6 Oct 2006 00:05:34 -0700, 10.22.241.41
Lines: 40
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:170
Article PK: 9951

Hi Matt,

I am using SMT file and I created the following instances
with settings as follows:

1. ALE event cycle: (RamcoItemAleECConnector)
Duration : 1000 (Ms)
Logical reader : Source1
Report definition : 1
Report Spec(1) : urn:epc:pat:sgtin-96:3.*.*.*
Report Spec(1) : Report If empty : True
Report Spec(1) : Source1Filtered
Report Spec(1) : EPC to be reported : CURRENT
Report Spec(1) : Name : RamcoFilteredSource1ALE
Send reports on object : False
Subscribers : RamcoFileOutput
RamcoMSMQOutput
RamcoAleTCP

2. RFID MP Simulator: (RamcoTagSimulator)
Antenna1 : Smoothing : 100Ms for Lost, Glimpsed,
Threshold, Observed timeout.
Cycles per trigger : 1
Read cycle : Read On start : True
Name : RamcoTagSimulator
Browse : RFIDGR.SMT (Attached in the previous mail)

3. File Messaging Connector: (RamcoFileOutput)
Name : RamcoFileOutput
Directory : C:\RamcoRFIDGR

4. MSMQ Messaging : (MSMQOutput)
Computer name : localhost
Name : MSMQOutput
Private Queue Name : reader1Output

5. TCP Messaging : (RamcoAleTCP)
IP Address : localhost
Name : RamcoAleTCP
Port : 10002


Matt Posted on 2006-10-11 19:28:37.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <452545c1$1@forums-1-dub> <4526003e.4bcf.1681692777@sybase.com>
Subject: Re: Eliminating duplicate XML files
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 10.25.99.161
Message-ID: <452d451b@forums-2-dub>
X-Original-Trace: 11 Oct 2006 12:25:15 -0700, 10.25.99.161
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 11 Oct 2006 12:25:17 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 Oct 2006 12:28:37 -0700
X-Trace: forums-1-dub 1160594917 10.22.108.75 (11 Oct 2006 12:28:37 -0700)
X-Original-Trace: 11 Oct 2006 12:28:37 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:179
Article PK: 9954

Deepak:

Thanks for sending along the file and details.

With your ALE Event Cycle's Duration property set to 1000 (ms), you are
basically generating an XML report of all of the CURRENT tags 'seen' by the
simulator every second. Since your simulation has tag groups sticking
around for 10 seconds, you should be getting about 10 XML files that are the
same, followed by another 10 XML files that are the same, and so on.

Can you give me an overview of what you are trying to accomplish in your
business logic and what your application (that I am assuming is listening
for these reports on an MSMQ queue) is going to be doing with them?

Some better options to play with would be to set your EPC to be reported to
ADDITIONS (so you will only get reports when new tags are added (ie: every
10 seconds if you set Report if Empty to FALSE)), and you could also play
with the Duration property, and you culd also create a DELETIONS report to
report when tags are removed from the simulation (this is what we do in the
ALE section of the Inventory Tracker demo).

Depending on what you need your business logic to do, you might want to work
with custom business modules instead which generate EVENTS that you can
handle in code whenever tags appear or disappear, and then you have
flexibility in your output (lots more info in the RFID Anywhere Developer's
Guide).

Hope this helps, and please give some more insight into what you are looking
to do so we can make sure we get you pointed in the right direction.

Matt..

<Deepak Kumar> wrote in message news:4526003e.4bcf.1681692777@sybase.com...
> Hi Matt,
>
> I am using SMT file and I created the following instances
> with settings as follows:
>
> 1. ALE event cycle: (RamcoItemAleECConnector)
> Duration : 1000 (Ms)
> Logical reader : Source1
> Report definition : 1
> Report Spec(1) : urn:epc:pat:sgtin-96:3.*.*.*
> Report Spec(1) : Report If empty : True
> Report Spec(1) : Source1Filtered
> Report Spec(1) : EPC to be reported : CURRENT
> Report Spec(1) : Name : RamcoFilteredSource1ALE
> Send reports on object : False
> Subscribers : RamcoFileOutput
> RamcoMSMQOutput
> RamcoAleTCP
>
> 2. RFID MP Simulator: (RamcoTagSimulator)
> Antenna1 : Smoothing : 100Ms for Lost, Glimpsed,
> Threshold, Observed timeout.
> Cycles per trigger : 1
> Read cycle : Read On start : True
> Name : RamcoTagSimulator
> Browse : RFIDGR.SMT (Attached in the previous mail)
>
> 3. File Messaging Connector: (RamcoFileOutput)
> Name : RamcoFileOutput
> Directory : C:\RamcoRFIDGR
>
> 4. MSMQ Messaging : (MSMQOutput)
> Computer name : localhost
> Name : MSMQOutput
> Private Queue Name : reader1Output
>
> 5. TCP Messaging : (RamcoAleTCP)
> IP Address : localhost
> Name : RamcoAleTCP
> Port : 10002


Deepak Kumar Posted on 2006-10-12 08:57:37.0Z
Sender: 4353.452dffec.1804289383@sybase.com
From: Deepak Kumar
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Read tags support with actual devices
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <452e0381.436e.1681692777@sybase.com>
References: <452d451b@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 12 Oct 2006 01:57:37 -0700
X-Trace: forums-1-dub 1160643457 10.22.241.41 (12 Oct 2006 01:57:37 -0700)
X-Original-Trace: 12 Oct 2006 01:57:37 -0700, 10.22.241.41
Lines: 116
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:180
Article PK: 9957

Thank you for your repsonse Matt.

I wanted to know if the same version 2.5 can be used with
actual RFID readers in order to see if the results are
analogous to data fed in RFID simulator.

Also I am unable to perform import of an already created
zipped propertyexport file.

The error is as follows:

____________________
Details: To enable the details of this specific error
message to be viewable on remote machines, please create a
<customErrors> tag within a "web.config" configuration file
located in the root directory of the current web
application. This <customErrors> tag should then have its
"mode" attribute set to "Off".
_______________________

Does that mean if the change the mode setting, I would be
able to succeed.

> Deepak:
>
> Thanks for sending along the file and details.
>
> With your ALE Event Cycle's Duration property set to 1000
> (ms), you are basically generating an XML report of all of
> the CURRENT tags 'seen' by the simulator every second.
> Since your simulation has tag groups sticking around for
> 10 seconds, you should be getting about 10 XML files that
> are the same, followed by another 10 XML files that are
> the same, and so on.
>
> Can you give me an overview of what you are trying to
> accomplish in your business logic and what your
> application (that I am assuming is listening for these
> reports on an MSMQ queue) is going to be doing with them?
>
> Some better options to play with would be to set your EPC
> to be reported to ADDITIONS (so you will only get reports
> when new tags are added (ie: every 10 seconds if you set
> Report if Empty to FALSE)), and you could also play with
> the Duration property, and you culd also create a
> DELETIONS report to report when tags are removed from the
> simulation (this is what we do in the ALE section of the
> Inventory Tracker demo).
>
> Depending on what you need your business logic to do, you
> might want to work with custom business modules instead
> which generate EVENTS that you can handle in code whenever
> tags appear or disappear, and then you have flexibility in
> your output (lots more info in the RFID Anywhere
> Developer's Guide).
>
> Hope this helps, and please give some more insight into
> what you are looking to do so we can make sure we get you
> pointed in the right direction.
>
> Matt..
>
> <Deepak Kumar> wrote in message
> > news:4526003e.4bcf.1681692777@sybase.com... Hi Matt,
> >
> > I am using SMT file and I created the following
> > instances with settings as follows:
> >
> > 1. ALE event cycle: (RamcoItemAleECConnector)
> > Duration : 1000 (Ms)
> > Logical reader : Source1
> > Report definition : 1
> > Report Spec(1) : urn:epc:pat:sgtin-96:3.*.*.*
> > Report Spec(1) : Report If empty : True
> > Report Spec(1) : Source1Filtered
> > Report Spec(1) : EPC to be reported : CURRENT
> > Report Spec(1) : Name : RamcoFilteredSource1ALE
> > Send reports on object : False
> > Subscribers : RamcoFileOutput
> > RamcoMSMQOutput
> > RamcoAleTCP
> >
> > 2. RFID MP Simulator: (RamcoTagSimulator)
> > Antenna1 : Smoothing : 100Ms for Lost, Glimpsed,
> > Threshold, Observed timeout.
> > Cycles per trigger : 1
> > Read cycle : Read On start : True
> > Name : RamcoTagSimulator
> > Browse : RFIDGR.SMT (Attached in the previous mail)
> >
> > 3. File Messaging Connector: (RamcoFileOutput)
> > Name : RamcoFileOutput
> > Directory : C:\RamcoRFIDGR
> >
> > 4. MSMQ Messaging : (MSMQOutput)
> > Computer name : localhost
> > Name : MSMQOutput
> > Private Queue Name : reader1Output
> >
> > 5. TCP Messaging : (RamcoAleTCP)
> > IP Address : localhost
> > Name : RamcoAleTCP
> > Port : 10002
>
>


Matt Posted on 2006-10-12 15:23:54.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <452d451b@forums-2-dub> <452e0381.436e.1681692777@sybase.com>
Subject: Re: Read tags support with actual devices
Lines: 134
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 10.25.99.161
X-Original-NNTP-Posting-Host: 10.25.99.161
Message-ID: <452e5e0a$1@forums-1-dub>
Date: 12 Oct 2006 08:23:54 -0700
X-Trace: forums-1-dub 1160666634 10.25.99.161 (12 Oct 2006 08:23:54 -0700)
X-Original-Trace: 12 Oct 2006 08:23:54 -0700, 10.25.99.161
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:183
Article PK: 9956

Deepak:

Yes. The version of RFID Anywhere you have can be used with actual RFID
readers. You can download the connectors for a number of difgferent pieces
of hardware from the "Hardware Connector Download" link on the Insider site.

As for the import issue, I haven't seent that before. I'll try to reproduce
(can you send me the file you are having trouble with), and it might also be
good to upgrade to RFID Anywhere 2.5.1, which is on the Insider site as
well.

Thanks..

Matt..

<Deepak Kumar> wrote in message news:452e0381.436e.1681692777@sybase.com...
> Thank you for your repsonse Matt.
>
> I wanted to know if the same version 2.5 can be used with
> actual RFID readers in order to see if the results are
> analogous to data fed in RFID simulator.
>
> Also I am unable to perform import of an already created
> zipped propertyexport file.
>
> The error is as follows:
>
> ____________________
> Details: To enable the details of this specific error
> message to be viewable on remote machines, please create a
> <customErrors> tag within a "web.config" configuration file
> located in the root directory of the current web
> application. This <customErrors> tag should then have its
> "mode" attribute set to "Off".
> _______________________
>
> Does that mean if the change the mode setting, I would be
> able to succeed.
>
>
>
>
>
>
>
>
>
>
>
>
>> Deepak:
>>
>> Thanks for sending along the file and details.
>>
>> With your ALE Event Cycle's Duration property set to 1000
>> (ms), you are basically generating an XML report of all of
>> the CURRENT tags 'seen' by the simulator every second.
>> Since your simulation has tag groups sticking around for
>> 10 seconds, you should be getting about 10 XML files that
>> are the same, followed by another 10 XML files that are
>> the same, and so on.
>>
>> Can you give me an overview of what you are trying to
>> accomplish in your business logic and what your
>> application (that I am assuming is listening for these
>> reports on an MSMQ queue) is going to be doing with them?
>>
>> Some better options to play with would be to set your EPC
>> to be reported to ADDITIONS (so you will only get reports
>> when new tags are added (ie: every 10 seconds if you set
>> Report if Empty to FALSE)), and you could also play with
>> the Duration property, and you culd also create a
>> DELETIONS report to report when tags are removed from the
>> simulation (this is what we do in the ALE section of the
>> Inventory Tracker demo).
>>
>> Depending on what you need your business logic to do, you
>> might want to work with custom business modules instead
>> which generate EVENTS that you can handle in code whenever
>> tags appear or disappear, and then you have flexibility in
>> your output (lots more info in the RFID Anywhere
>> Developer's Guide).
>>
>> Hope this helps, and please give some more insight into
>> what you are looking to do so we can make sure we get you
>> pointed in the right direction.
>>
>> Matt..
>>
>> <Deepak Kumar> wrote in message
>> > news:4526003e.4bcf.1681692777@sybase.com... Hi Matt,
>> >
>> > I am using SMT file and I created the following
>> > instances with settings as follows:
>> >
>> > 1. ALE event cycle: (RamcoItemAleECConnector)
>> > Duration : 1000 (Ms)
>> > Logical reader : Source1
>> > Report definition : 1
>> > Report Spec(1) : urn:epc:pat:sgtin-96:3.*.*.*
>> > Report Spec(1) : Report If empty : True
>> > Report Spec(1) : Source1Filtered
>> > Report Spec(1) : EPC to be reported : CURRENT
>> > Report Spec(1) : Name : RamcoFilteredSource1ALE
>> > Send reports on object : False
>> > Subscribers : RamcoFileOutput
>> > RamcoMSMQOutput
>> > RamcoAleTCP
>> >
>> > 2. RFID MP Simulator: (RamcoTagSimulator)
>> > Antenna1 : Smoothing : 100Ms for Lost, Glimpsed,
>> > Threshold, Observed timeout.
>> > Cycles per trigger : 1
>> > Read cycle : Read On start : True
>> > Name : RamcoTagSimulator
>> > Browse : RFIDGR.SMT (Attached in the previous mail)
>> >
>> > 3. File Messaging Connector: (RamcoFileOutput)
>> > Name : RamcoFileOutput
>> > Directory : C:\RamcoRFIDGR
>> >
>> > 4. MSMQ Messaging : (MSMQOutput)
>> > Computer name : localhost
>> > Name : MSMQOutput
>> > Private Queue Name : reader1Output
>> >
>> > 5. TCP Messaging : (RamcoAleTCP)
>> > IP Address : localhost
>> > Name : RamcoAleTCP
>> > Port : 10002
>>
>>


Deepak Kumar Posted on 2007-02-19 13:44:00.0Z
Sender: 440a.45d9a56f.1804289383@sybase.com
From: Deepak Kumar
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Re: Read tags support with actual devices
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45d9a9a0.445f.1681692777@sybase.com>
References: <452e5e0a$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Feb 2007 05:44:00 -0800
X-Trace: forums-1-dub 1171892640 10.22.241.41 (19 Feb 2007 05:44:00 -0800)
X-Original-Trace: 19 Feb 2007 05:44:00 -0800, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:271
Article PK: 9996

Hi Matt,

I thank you for the previous replies.

We are working with user memory in RFID here. The objective
is to read/write the user area of SGTIN-96 4x6 inches tags
purchased from our vendor partner.

Could you let us know how to do that using RFID Anywhere?

There is very little or no information available on the user
memory aspect of the RFID tags. Any weblinks from you which
describe the same would be deeply appreciated.


David Posted on 2007-02-20 08:47:48.0Z
From: "David" <dNtOoSrPrAeMci@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <452e5e0a$1@forums-1-dub> <45d9a9a0.445f.1681692777@sybase.com>
Subject: Re: Read tags support with actual devices
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: dtorreci-laptop.sybase.com
X-Original-NNTP-Posting-Host: dtorreci-laptop.sybase.com
Message-ID: <45dab5b4@forums-1-dub>
Date: 20 Feb 2007 00:47:48 -0800
X-Trace: forums-1-dub 1171961268 10.49.112.135 (20 Feb 2007 00:47:48 -0800)
X-Original-Trace: 20 Feb 2007 00:47:48 -0800, dtorreci-laptop.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:276
Article PK: 9999

Hi,

If you need to work with User Data, the reader shuold support it, if not you
cannot work with. In addition you should configure properly the reader, for
ie by choosing what kind of info you want to retrieve when a tag is
discovered.

Regards,
D

<Deepak Kumar> wrote in message news:45d9a9a0.445f.1681692777@sybase.com...
> Hi Matt,
>
> I thank you for the previous replies.
>
> We are working with user memory in RFID here. The objective
> is to read/write the user area of SGTIN-96 4x6 inches tags
> purchased from our vendor partner.
>
> Could you let us know how to do that using RFID Anywhere?
>
> There is very little or no information available on the user
> memory aspect of the RFID tags. Any weblinks from you which
> describe the same would be deeply appreciated.


"Chris Keating(iAnywhere Solutions)" <NoSpamPlease_k_e_a_t_i_n_g Posted on 2007-02-20 16:32:59.0Z
From: "Chris Keating(iAnywhere Solutions)" <NoSpamPlease_k_e_a_t_i_n_g@i_A_n_y_w_h_e_r_e.com>
Organization: iAnywhere Solutions
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Re: Read tags support with actual devices
References: <452e5e0a$1@forums-1-dub> <45d9a9a0.445f.1681692777@sybase.com> <45dab5b4@forums-1-dub>
In-Reply-To: <45dab5b4@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: keating-dm20.sybase.com
X-Original-NNTP-Posting-Host: keating-dm20.sybase.com
Message-ID: <45db22bb@forums-1-dub>
Date: 20 Feb 2007 08:32:59 -0800
X-Trace: forums-1-dub 1171989179 10.25.98.170 (20 Feb 2007 08:32:59 -0800)
X-Original-Trace: 20 Feb 2007 08:32:59 -0800, keating-dm20.sybase.com
Lines: 120
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:277
Article PK: 18925

Here is a sample that illustrates the technique. You will need to ensure
that you have configured the device to allow writes.

The trick to working with UserData is that you need to encode stuff into
ByteArrays. This is done with the System.Text.Encoding API.

Look for the Tag Interaction region in the main class. You will find
both the WriteTag and WriteTagUserData Method.

bool WriteTagUserData(string reader, string TagID, string
UserData, int Pos)
{
bool Result = false;

try
{
RFIDTagEPC_Class1G2 tag = new
RFIDTagEPC_Class1G2(TagID);
IAPEPC1G2 _reader = (IAPEPC1G2)
mRfidMPController.GetProtocol(typeof(IAPEPC1G2));

// Encode data from string into Byte Array
ASCIIEncoding encoder = new ASCIIEncoding();
byte[] data = new byte[int.Parse(UserData)];
data = encoder.GetBytes(UserData);

// Add User Data Tag Block to tag
tag.Blocks = new TagDataBlockCollection();
TagDataBlock tagBlock = new TagDataBlock(Pos,
data);
tag.Blocks.Add(tagBlock);

try
{
// Stop tag reading, so RFID Reader is
ready for tag writing
mRfidMPController.StopReadTrigger(reader);
}

catch(Exception exc)
{
TraceLog.WriteInfo(exc.Message +
exc.StackTrace);
}

try
{
// Issue Write Command
_reader.WriteID(reader, tag );
mRfidMPController.IssueReadTrigger(reader);
}

catch(Exception exc)
{
TraceLog.WriteInfo(exc.Message +
exc.StackTrace);
}
Result = true;

}
catch(Exception exc)
{
TraceLog.WriteInfo(exc.Message + exc.StackTrace);
}
return Result;

}

David wrote:
> Hi,
>
> If you need to work with User Data, the reader shuold support it, if not you
> cannot work with. In addition you should configure properly the reader, for
> ie by choosing what kind of info you want to retrieve when a tag is
> discovered.
>
> Regards,
> D
>
> <Deepak Kumar> wrote in message news:45d9a9a0.445f.1681692777@sybase.com...
>> Hi Matt,
>>
>> I thank you for the previous replies.
>>
>> We are working with user memory in RFID here. The objective
>> is to read/write the user area of SGTIN-96 4x6 inches tags
>> purchased from our vendor partner.
>>
>> Could you let us know how to do that using RFID Anywhere?
>>
>> There is very little or no information available on the user
>> memory aspect of the RFID tags. Any weblinks from you which
>> describe the same would be deeply appreciated.
>
>

--

Chris Keating
Sybase Adaptive Server Anywhere Professional Version 8

*****************************************************************************

Sign up today for your copy of the SQL Anywhere Studio 9 Developer
Edition =and try out the market-leading database for mobile, embedded
and small to medium sized business environments for free!

http://www.ianywhere.com/promos/deved/index.html

*****************************************************************************

iAnywhere Solutions http://www.iAnywhere.com

** Please only post to the newsgroup

** Whitepapers can be found at http://www.iAnywhere.com/developer
** EBFs can be found at http://downloads.sybase.com/swx/sdmain.stm
** Use Case Express to report bugs http://case-express.sybase.com

*****************************************************************************


Matt Posted on 2006-10-11 13:13:29.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <452545c1$1@forums-1-dub> <4526003e.4bcf.1681692777@sybase.com>
Subject: Re: Eliminating duplicate XML files
Lines: 76
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 10.25.99.161
Message-ID: <452ced35$1@forums-2-dub>
X-Original-Trace: 11 Oct 2006 06:10:13 -0700, 10.25.99.161
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 11 Oct 2006 06:10:14 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 Oct 2006 06:13:29 -0700
X-Trace: forums-1-dub 1160572409 10.22.108.75 (11 Oct 2006 06:13:29 -0700)
X-Original-Trace: 11 Oct 2006 06:13:29 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:176
Article PK: 18887

Deepak:

Thanks for sending along the file and details.

With your ALE Event Cycle's Duration property set to 1000 (ms), you are
basically generating an XML report of all of the CURRENT tags 'seen' by the
simulator every second. Since your simulation has tag groups sticking
around for 10 seconds, you should be getting about 10 XML files that are the
same, followed by another 10 XML files that are the same, and so on.

Can you give me an overview of what you are trying to accomplish in your
business logic and what your application (that I am assuming is listening
for these reports on an MSMQ queue) is going to be doing with them?

Some better options to play with would be to set your EPC to be reported to
ADDITIONS (so you will only get reports when new tags are added (ie: every
10 seconds if you set Report if Empty to FALSE)), and you could also play
with the Duration property, and you culd also create a DELETIONS report to
report when tags are removed from the simulation (this is what we do in the
ALE section of the Inventory Tracker demo).

Depending on what you need your business logic to do, you might want to work
with custom business modules instead which generate EVENTS that you can
handle in code whenever tags appear or disappear, and then you have
flexibility in your output (lots more info in the RFID Anywhere Developer's
Guide).

Hope this helps, and please give some more insight into what you are looking
to do so we can make sure we get you pointed in the right direction.

Matt..

<Deepak Kumar> wrote in message news:4526003e.4bcf.1681692777@sybase.com...
> Hi Matt,
>
> I am using SMT file and I created the following instances
> with settings as follows:
>
> 1. ALE event cycle: (RamcoItemAleECConnector)
> Duration : 1000 (Ms)
> Logical reader : Source1
> Report definition : 1
> Report Spec(1) : urn:epc:pat:sgtin-96:3.*.*.*
> Report Spec(1) : Report If empty : True
> Report Spec(1) : Source1Filtered
> Report Spec(1) : EPC to be reported : CURRENT
> Report Spec(1) : Name : RamcoFilteredSource1ALE
> Send reports on object : False
> Subscribers : RamcoFileOutput
> RamcoMSMQOutput
> RamcoAleTCP
>
> 2. RFID MP Simulator: (RamcoTagSimulator)
> Antenna1 : Smoothing : 100Ms for Lost, Glimpsed,
> Threshold, Observed timeout.
> Cycles per trigger : 1
> Read cycle : Read On start : True
> Name : RamcoTagSimulator
> Browse : RFIDGR.SMT (Attached in the previous mail)
>
> 3. File Messaging Connector: (RamcoFileOutput)
> Name : RamcoFileOutput
> Directory : C:\RamcoRFIDGR
>
> 4. MSMQ Messaging : (MSMQOutput)
> Computer name : localhost
> Name : MSMQOutput
> Private Queue Name : reader1Output
>
> 5. TCP Messaging : (RamcoAleTCP)
> IP Address : localhost
> Name : RamcoAleTCP
> Port : 10002


Deepak Kumar Posted on 2006-10-06 05:58:22.0Z
Sender: 418e.45251ad5.1804289383@sybase.com
From: Deepak Kumar
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Re: Eliminating duplicate XML files
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4525f07e.4b37.1681692777@sybase.com>
References: <452545c1$1@forums-1-dub>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-=_forums-1-dub4525f07e"
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Oct 2006 22:58:22 -0700
X-Trace: forums-1-dub 1160114302 10.22.241.41 (5 Oct 2006 22:58:22 -0700)
X-Original-Trace: 5 Oct 2006 22:58:22 -0700, 10.22.241.41
Lines: 1151
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:169
Article PK: 18888

Hi Matt,

Please find attached the exported ZIP file from RFID
Anywhere and the SMT file. It may help you import and see
the settings.

Probably it could give you a better idea.

However, I am also going to send you another mail with
manually typed entries.....