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.

Inventory Tracker

6 posts in General Discussion Last posting was on 2006-08-28 17:55:29.0Z
Sérgio Silva Posted on 2006-08-23 19:51:01.0Z
Sender: 4e53.44ecaea7.1804289383@sybase.com
From: Sérgio Silva
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Inventory Tracker
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44ecaf2f.4e62.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 23 Aug 2006 12:40:31 -0700, 10.22.241.42
Lines: 5
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Aug 2006 12:40:33 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Aug 2006 12:51:01 -0700
X-Trace: forums-1-dub 1156362661 10.22.108.75 (23 Aug 2006 12:51:01 -0700)
X-Original-Trace: 23 Aug 2006 12:51:01 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:119
Article PK: 9927

Could anyone tell me if Inventory Tracker only works with 2
logical readers. I was trying to expande the readers to 6
but it only detects the first 2.

Could anyone help me with this, thanks.


Matt Posted on 2006-08-24 13:13:10.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <44ecaf2f.4e62.1681692777@sybase.com>
Subject: Re: Inventory Tracker
Lines: 27
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-d600.sybase.com
X-Original-NNTP-Posting-Host: mteskey-d600.sybase.com
Message-ID: <44eda5e6$1@forums-1-dub>
Date: 24 Aug 2006 06:13:10 -0700
X-Trace: forums-1-dub 1156425190 10.25.99.161 (24 Aug 2006 06:13:10 -0700)
X-Original-Trace: 24 Aug 2006 06:13:10 -0700, mteskey-d600.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:122
Article PK: 9926

Sergio:

If you want to have multiple readers, since there are only two "rooms" in
this scenario wiuth the sample apps, you will have to group them using the
Logical Readers property in the ALEServiceModule and MPRServiceModule for
the ALE App and Report Engine MP reports respectively.

We kept the business module simple so that the first time it sees a tag read
from any source, that becomes room 1, and the next unique one becomes room
2. You could add some simple logic to the business module to do some
groupings if you want, of you could update the Enterprise App to support
more than 2 rooms.

Hope this helps,

Matt..

"S érgio Silva" <S =?ISO-8859-1?B?6XJnaW8=?= Silva> wrote in message
news:44ecaf2f.4e62.1681692777@sybase.com...
> Could anyone tell me if Inventory Tracker only works with 2
> logical readers. I was trying to expande the readers to 6
> but it only detects the first 2.
>
> Could anyone help me with this, thanks.


Sérgio Silva Posted on 2006-08-24 16:51:34.0Z
Sender: 5ce3.44ed9c29.1804289383@sybase.com
From: Sérgio Silva
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Re: Inventory Tracker
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44edd69c.5fa9.1681692777@sybase.com>
References: <44eda5e6$1@forums-1-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 24 Aug 2006 09:41:00 -0700, 10.22.241.42
Lines: 9
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 24 Aug 2006 09:41:02 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 24 Aug 2006 09:51:34 -0700
X-Trace: forums-1-dub 1156438294 10.22.108.75 (24 Aug 2006 09:51:34 -0700)
X-Original-Trace: 24 Aug 2006 09:51:34 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:127
Article PK: 18871

Thanks for the help Matt.

I already have done that (update the Enterprise Aplication
to suport more then 2 logical readers), but the problem is
that in the aplication I can't recive the reader.Value from
the others readers, but I can recive it from the first 2
readers.

Thanks for the help.


Matt Posted on 2006-08-24 17:49:14.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <44eda5e6$1@forums-1-dub> <44edd69c.5fa9.1681692777@sybase.com>
Subject: Re: Inventory Tracker
Lines: 30
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-d600.sybase.com
X-Original-NNTP-Posting-Host: mteskey-d600.sybase.com
Message-ID: <44ede69a$1@forums-1-dub>
Date: 24 Aug 2006 10:49:14 -0700
X-Trace: forums-1-dub 1156441754 10.25.99.161 (24 Aug 2006 10:49:14 -0700)
X-Original-Trace: 24 Aug 2006 10:49:14 -0700, mteskey-d600.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:128
Article PK: 9930

Are your other "readers" just additional simulator connectors and
simulations that you have created?

I will have to look at the code in the business module more closely to see
if that is where the issue is. Can you send me instructions and any
application updates so I can get my system set up the same as yours?

For torubleshooting, you might also want to send your business module output
to a File Messaging connector (ie: FileOutput if you followed through the
other tutorials) and then add that connector to the Subscribers property of
the Inventory Tracker business module. That way, you can see exactly what
the business module is generating and sending in to your application.

Thanks..

Matt..

"S érgio Silva" <S =?ISO-8859-1?B?6XJnaW8=?= Silva> wrote in message
news:44edd69c.5fa9.1681692777@sybase.com...
> Thanks for the help Matt.
>
> I already have done that (update the Enterprise Aplication
> to suport more then 2 logical readers), but the problem is
> that in the aplication I can't recive the reader.Value from
> the others readers, but I can recive it from the first 2
> readers.
>
> Thanks for the help.


Sérgio Silva Posted on 2006-08-24 23:21:04.0Z
Sender: 3b8.44ee2f8b.1804289383@sybase.com
From: Sérgio Silva
Newsgroups: ianywhere.public.rfidanywhere.general
Subject: Re: Inventory Tracker
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44ee3460.3e6.1681692777@sybase.com>
References: <44ede69a$1@forums-1-dub>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-=_forums-1-dub44ee3460"
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 24 Aug 2006 16:21:04 -0700
X-Trace: forums-1-dub 1156461664 10.22.241.41 (24 Aug 2006 16:21:04 -0700)
X-Original-Trace: 24 Aug 2006 16:21:04 -0700, 10.22.241.41
Lines: 485
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:129
Article PK: 18873

Hello Matt,

Yes, the others readers that i created are just like the
first two from the Enterprise Aplication (InvTracSim1 and
InvTracSim2), the only diference is the session data, for
each conector there is a diferent file .smt. They all make
part of logical readers of the Inventory Tracker 1.0 deploy
in RFID Anywhere Administrator Console.
I´m using the business module Inventory Tracker deploy in
RFID Anywhere Administrator Console, i´m just doing some
changes in the entreprise aplication. I´m going to attach
the source code, so you can have a look.

Thanks a lot Matt for the help that you are given me.

> Are your other "readers" just additional simulator
> connectors and simulations that you have created?
>
> I will have to look at the code in the business module
> more closely to see if that is where the issue is. Can
> you send me instructions and any application updates so I
> can get my system set up the same as yours?
>
> For torubleshooting, you might also want to send your
> business module output to a File Messaging connector (ie:
> FileOutput if you followed through the other tutorials)
> and then add that connector to the Subscribers property of
> the Inventory Tracker business module. That way, you can
> see exactly what the business module is generating and
> sending in to your application.
>
> Thanks..
>
> Matt..
>
> "S érgio Silva" <S =?ISO-8859-1?B?6XJnaW8=?=
Silva> wrote
> in message news:44edd69c.5fa9.1681692777@sybase.com...
> > Thanks for the help Matt.
> >
> > I already have done that (update the Enterprise
> > Aplication to suport more then 2 logical readers), but
> > the problem is that in the aplication I can't recive the
> > reader.Value from the others readers, but I can recive
> > it from the first 2 readers.
> >
> > Thanks for the help.
>
>

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Xml;
using System.IO;

namespace newbm
{
public class NewBM : System.Windows.Forms.Form
{
/// <summary>
/// Classe interna para os atributos de uma Tag
/// </summary>
protected class Asset
{
public string ID, Company, SKU;

public Asset()
{
ID = "";
Company = "";
SKU = "";
}
}

// Auto-generated objects
private System.ComponentModel.Container components = null;

// Objectos TCP
private Thread TCPThreadReference;
private int port = 8883;
private bool isListening;

// GUI-related objects
private System.Windows.Forms.ListBox Box1;
private System.Windows.Forms.ListBox Box2;
private System.Windows.Forms.ListBox Box3;
private System.Windows.Forms.ListBox Box4;
private System.Windows.Forms.ListBox Box5;
private System.Windows.Forms.ListBox Box6;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label Label3;
private System.Windows.Forms.Label Label2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.PictureBox pictureBox1;

// Objectos RFID
//private string source1Name = "", source2Name = "", source3Name = "", source4Name = "", source5Name = "", source6Name = "";



/// <summary>
/// Construtor da aplicação: inicia a leitura TCP
/// </summary>
public NewBM()
{
isListening = false;
try
{
InitializeComponent();

// Read INI file
// Leitura do ficheiro INI
StreamReader reader = new StreamReader("config.ini");
string line;

line = reader.ReadLine();

if(line.Substring(0, line.IndexOf("=")) == "port")
{
port = Int32.Parse(line.Substring(line.IndexOf("=") + 1));
}


// Loop through each parameter value
/* while(true)
{
line = reader.ReadLine();

// When we hit the end of the file, break from the loop
if(line == null) break;

// Remember the parameter values we read
if(line.Substring(0, line.IndexOf("=")) == "logo")
{
logo = line.Substring(line.IndexOf("=") + 1);
}
else if(line.Substring(0, line.IndexOf("=")) == "left")
{
left = line.Substring(line.IndexOf("=") + 1);
}
else if(line.Substring(0, line.IndexOf("=")) == "right")
{
right = line.Substring(line.IndexOf("=") + 1);
}
else if(line.Substring(0, line.IndexOf("=")) == "port")
{
port = Int32.Parse(line.Substring(line.IndexOf("=") + 1));
}
}*/


// Inicio da thread TCP
TCPThreadReference = new Thread(new ThreadStart(TCPThread));
TCPThreadReference.IsBackground = true;
TCPThreadReference.Start();
}
catch(Exception ex)
{
MessageBox.Show("Ocorreu o seguinte erro: " + ex.Message);
}
}

/// <summary>
/// Adiciona a tag à listbox especifica
/// </summary>

private void AddAssetToList(ListBox box, Asset asset)
{
bool ItemInList = false;

// Verifica se a tag já está na listbox
foreach(string item in box.Items)
{
if(asset.ID == item.Substring(0, item.IndexOf(",")))
{
ItemInList = true;
}
}

// Se ainda não se encontra na listbox, adiciona-a
if(!ItemInList)
{
box.Items.Add(asset.ID + ", " + asset.Company + ", " + asset.SKU);
}
}

/// <summary>
/// Remove uma tag de uma listbox especifica
/// </summary>
private void RemoveAssetFromList(ListBox box, Asset asset)
{
int count = 0;

// Procura na lista até encontrar a tag pretendida
// A variavel count devolve o indice que deve ser eliminado
foreach(string item in box.Items)
{
if(asset.ID == item.Substring(0, item.IndexOf(",")))
{
box.Items.RemoveAt(count);
break;
}

count ++;
}
}

/// <summary>
/// Separate thread for looping on TCP requests and delegating XML processing.
/// separa a thread para delegar o processamento do ficheiro XML
/// </summary>

private TcpListener tcpListener = null;

private void TCPThread()
{
TcpClient tcpClient;
// Declare appropriate TCP objects
tcpListener = new TcpListener(IPAddress.Any, port);
//TcpClient tcpClient;
NetworkStream netStream;

// Start the TCP listener
tcpListener.Start();

// Supporting variables
int i;
byte[] bytes = new byte[256];
string XML;
isListening = true;

try
{
// Continually listen for a connection request
while(isListening)
{
// Wait for a connection. (This is a blocking method call; this thread
// will stop execution until a request arrives.)
tcpClient = tcpListener.AcceptTcpClient();

// Connection received; now get a network stream to read.
netStream = tcpClient.GetStream();

// Initialize the XML to nothing
XML = "";

// Read all data in the stream
while((i = netStream.Read(bytes, 0, bytes.Length)) != 0)
{
// Translate data bytes to a string.
XML += Encoding.Unicode.GetString(bytes, 0, i);
}

// Process the XML (which will eventually update the GUI display)
ProcessXML(XML);

// Close the stream
netStream.Close();
}
}
catch(SocketException se)
{
// this would be normal to happen during program shutdown.
}
catch(Exception e)
{
// something serious we weren't expecting happened
MessageBox.Show(e.Message+System.Environment.NewLine+e.StackTrace, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
isListening = false;
tcpListener.Stop();
}

/// <summary>
/// Occasionally, multiple XML documents will build up into a single TCP stream. To avoid
/// confusing the XmlTextReader, this method picks out individual XML documents.
/// </summary>
/// <param name="XML"></param>
protected void ProcessXML(string XML)
{
// Check if the XML stream contains more than one XML document
while(XML.IndexOf("<?xml") != XML.LastIndexOf("<?xml"))
{
// Chop off the first XML document from the string
ProcessXMLDocument(XML.Substring(0, XML.IndexOf("<?xml", 5) - 1));

// Gather the remaining n-1 documents into a new string
XML = XML.Substring(XML.IndexOf("<?xml", 5) - 1);
}

// Deal with the final document
ProcessXMLDocument(XML);
}

/// <summary>
/// Processes a single XML document (with a single <?xml /> tag)
/// </summary>
/// <param name="XML"></param>
protected void ProcessXMLDocument(string XML)
{
// Declare an XML reader and give it a MemoryStream tied to the XML string
XmlReader reader = new XmlTextReader(new StreamReader(new MemoryStream(Encoding.Unicode.GetBytes(XML))));

// A simple asset class used to story information for the GUI display
Asset asset = new Asset();

// A variable to indicate what to do with the asset: (add or remove from a list)
// true means add, false means remove
bool AddToList = true;

// Scan through the XML stream
while(reader.Read())
{
// Start at <TagObserved>
if((reader.Name == "TagObserved" || reader.Name == "TagLost") && reader.NodeType == XmlNodeType.Element)
{
// Check if we should actually delete this asset if it is no longer being
// detected
if(reader.Name == "TagLost") AddToList = false;

// Read in <ID>, <Company>, <SKU>, and <Source>
while(reader.Read())
{
if(reader.Name == "ID" && reader.NodeType == XmlNodeType.Element)
{
reader.Read();
asset.ID = reader.Value;
}
else if(reader.Name == "Company" && reader.NodeType == XmlNodeType.Element)
{
reader.Read();
asset.Company = reader.Value;
}
else if(reader.Name == "SKU" && reader.NodeType == XmlNodeType.Element)
{
reader.Read();
asset.SKU = reader.Value;
}
else if(reader.Name == "Source" && reader.NodeType == XmlNodeType.Element)
{
reader.Read();
System.Console.WriteLine(reader.Value); /////////////////////////TESTE

//adicionar a tag à lista apropriada dependendo da fonte que a detectou
if(reader.Value == "InvTracSim1\\Default")
{
//A antena do balcão detectou a tag, então deve ser adicionada à lista da box1 (Balcão)
if(AddToList) AddAssetToList(Box1, asset);
else RemoveAssetFromList(Box1, asset);
}
else if(reader.Value == "InvTracSim2\\Default")
{
//A antena do gabinete 1 detectou a tag, então deve ser adicionada à lista da box2 (Gab.1)
if(AddToList) AddAssetToList(Box2, asset);
else RemoveAssetFromList(Box2, asset);
}
else if(reader.Value == "InvTracSim3\\Default")
{
//A antena do arquivo detectou a tag, então deve ser adicionada à lista da box (Arquivo)
if(AddToList) AddAssetToList(Box3, asset);
else RemoveAssetFromList(Box3, asset);
}
else if(reader.Value == "InvTracSim4\\Default")
{
//A antena do gabinete 2 detectou a tag, então deve ser adicionada à lista da box4 (Gab.2)
if(AddToList) AddAssetToList(Box4, asset);
else RemoveAssetFromList(Box4, asset);
}
else if(reader.Value == "InvTracSim5\\Default")
{
//A antena do gabinete 3 detectou a tag, então deve ser adicionada à lista da box5 (Gab.3)
if(AddToList) AddAssetToList(Box5, asset);
else RemoveAssetFromList(Box5, asset);
}
else if(reader.Value == "InvTracSim6\\Default")
{
//A antena do gabinete 4 detectou a tag, então deve ser adicionada à lista da box6 (Gab.4)
if(AddToList) AddAssetToList(Box6, asset);
else RemoveAssetFromList(Box6, asset);
}

break;
}
}

break;
}
}
}

protected override void Dispose( bool disposing )
{
isListening = false;
try
{
tcpListener.Stop();
}
catch(Exception e)
{
// the program is shutting down, so error handling would not accomplish much
}
Application.Exit();

if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NewBM));
this.Box1 = new System.Windows.Forms.ListBox();
this.Box2 = new System.Windows.Forms.ListBox();
this.Box3 = new System.Windows.Forms.ListBox();
this.Box4 = new System.Windows.Forms.ListBox();
this.Box5 = new System.Windows.Forms.ListBox();
this.Box6 = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label();
this.Label2 = new System.Windows.Forms.Label();
this.Label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.SuspendLayout();
//
// Box1
//
this.Box1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Box1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Box1.Location = new System.Drawing.Point(16, 104);
this.Box1.Name = "Box1";
this.Box1.Size = new System.Drawing.Size(440, 106);
this.Box1.TabIndex = 3;
//
// Box2
//
this.Box2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Box2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Box2.Location = new System.Drawing.Point(464, 104);
this.Box2.Name = "Box2";
this.Box2.Size = new System.Drawing.Size(216, 106);
this.Box2.TabIndex = 4;
//
// Box3
//
this.Box3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Box3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Box3.Location = new System.Drawing.Point(16, 216);
this.Box3.Name = "Box3";
this.Box3.Size = new System.Drawing.Size(160, 106);
this.Box3.TabIndex = 7;
//
// Box4
//
this.Box4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Box4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Box4.Location = new System.Drawing.Point(16, 328);
this.Box4.Name = "Box4";
this.Box4.Size = new System.Drawing.Size(216, 106);
this.Box4.TabIndex = 8;
//
// Box5
//
this.Box5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Box5.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Box5.Location = new System.Drawing.Point(240, 328);
this.Box5.Name = "Box5";
this.Box5.Size = new System.Drawing.Size(216, 106);
this.Box5.TabIndex = 9;
//
// Box6
//
this.Box6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Box6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Box6.Location = new System.Drawing.Point(464, 328);
this.Box6.Name = "Box6";
this.Box6.Size = new System.Drawing.Size(216, 106);
this.Box6.TabIndex = 10;
//
// label1
//
this.label1.Font = new System.Drawing.Font("Tahoma", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label1.Location = new System.Drawing.Point(176, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(344, 32);
this.label1.TabIndex = 11;
this.label1.Text = "Ambiente de Simulação";
//
// Label2
//
this.Label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Label2.Location = new System.Drawing.Point(16, 88);
this.Label2.Name = "Label2";
this.Label2.Size = new System.Drawing.Size(48, 16);
this.Label2.TabIndex = 6;
this.Label2.Text = "Balcão";
//
// Label3
//
this.Label3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Label3.Location = new System.Drawing.Point(464, 88);
this.Label3.Name = "Label3";
this.Label3.Size = new System.Drawing.Size(72, 16);
this.Label3.TabIndex = 5;
this.Label3.Text = "Gabinete 1";
//
// label4
//
this.label4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label4.Location = new System.Drawing.Point(184, 264);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 16);
this.label4.TabIndex = 12;
this.label4.Text = "Arquivo";
//
// label5
//
this.label5.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label5.Location = new System.Drawing.Point(16, 440);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(72, 16);
this.label5.TabIndex = 13;
this.label5.Text = "Gabinete 2";
//
// label6
//
this.label6.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label6.Location = new System.Drawing.Point(240, 440);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(72, 16);
this.label6.TabIndex = 14;
this.label6.Text = "Gabinete 3";
//
// label7
//
this.label7.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label7.Location = new System.Drawing.Point(464, 440);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(72, 16);
this.label7.TabIndex = 15;
this.label7.Text = "Gabinete 4";
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(16, 104);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(664, 331);
this.pictureBox1.TabIndex = 16;
this.pictureBox1.TabStop = false;
//
// NewBM
//
this.AutoScaleBaseSize = new System.Drawing.Size(8, 19);
this.BackColor = System.Drawing.SystemColors.ControlLight;
this.ClientSize = new System.Drawing.Size(704, 461);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label1);
this.Controls.Add(this.Box6);
this.Controls.Add(this.Box5);
this.Controls.Add(this.Box4);
this.Controls.Add(this.Box3);
this.Controls.Add(this.Label2);
this.Controls.Add(this.Label3);
this.Controls.Add(this.Box2);
this.Controls.Add(this.Box1);
this.Controls.Add(this.pictureBox1);
this.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "NewBM";
this.Text = "Folder Tracking v.1.0";
this.Load += new System.EventHandler(this.NewBM_Load);
this.ResumeLayout(false);

}
#endregion

[STAThread]
static void Main()
{
Application.Run(new NewBM());
}

private void NewBM_Load(object sender, System.EventArgs e)
{

}

}
}


Matt Posted on 2006-08-28 17:55:29.0Z
From: "Matt" <matt.teskey0nospam@sybase.com>
Newsgroups: ianywhere.public.rfidanywhere.general
References: <44ede69a$1@forums-1-dub> <44ee3460.3e6.1681692777@sybase.com>
Subject: Re: Inventory Tracker
Lines: 2923
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-d600.sybase.com
X-Original-NNTP-Posting-Host: mteskey-d600.sybase.com
Message-ID: <44f32e11@forums-1-dub>
Date: 28 Aug 2006 10:55:29 -0700
X-Trace: forums-1-dub 1156787729 10.25.99.161 (28 Aug 2006 10:55:29 -0700)
X-Original-Trace: 28 Aug 2006 10:55:29 -0700, mteskey-d600.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.rfidanywhere.general:130
Article PK: 9932

Sergio..

Looks like your code is correct, and I was able to ge this working on my
machine without issue. The step that I think you may have missed is to add
your new simulator connectors to the Inventory Tracker Business Module's
list of "Logical Readers". This property lists all of the
hardware/simulator connectors that your business module should receive
events from.

I have attached a screenshot of the working app and the updated settings
that I used for the business module.

Other than that, I didn't have to change a thing..

Let me know if this was the issue..

Matt..


"S érgio Silva" <S =?ISO-8859-1?B?6XJnaW8=?= Silva> wrote in message
news:44ee3460.3e6.1681692777@sybase.com...
Hello Matt,

Yes, the others readers that i created are just like the
first two from the Enterprise Aplication (InvTracSim1 and
InvTracSim2), the only diference is the session data, for
each conector there is a diferent file .smt. They all make
part of logical readers of the Inventory Tracker 1.0 deploy
in RFID Anywhere Administrator Console.
I´m using the business module Inventory Tracker deploy in
RFID Anywhere Administrator Console, i´m just doing some
changes in the entreprise aplication. I´m going to attach
the source code, so you can have a look.

Thanks a lot Matt for the help that you are given me.

> Are your other "readers" just additional simulator
> connectors and simulations that you have created?
>
> I will have to look at the code in the business module
> more closely to see if that is where the issue is. Can
> you send me instructions and any application updates so I
> can get my system set up the same as yours?
>
> For torubleshooting, you might also want to send your
> business module output to a File Messaging connector (ie:
> FileOutput if you followed through the other tutorials)
> and then add that connector to the Subscribers property of
> the Inventory Tracker business module. That way, you can
> see exactly what the business module is generating and
> sending in to your application.
>
> Thanks..
>
> Matt..
>
> "S érgio Silva" <S =?ISO-8859-1?B?6XJnaW8=?=
Silva> wrote
> in message news:44edd69c.5fa9.1681692777@sybase.com...
> > Thanks for the help Matt.
> >
> > I already have done that (update the Enterprise
> > Aplication to suport more then 2 logical readers), but
> > the problem is that in the aplication I can't recive the
> > reader.Value from the others readers, but I can recive
> > it from the first 2 readers.
> >
> > Thanks for the help.
>
>

screenshot.jpg