Implementing Algorithm

All questions related to the usage of Rifidi TagStreamer

Moderators: Matt, kyle, Moderators

kyle
Posts: 220
Joined: Tue Apr 22, 2008 10:12 pm
Name: Kyle
Organization: Pramari
Location: Hartford, CT
Contact:

Re: Implementing Algorithm

Post by kyle » Tue Oct 06, 2009 8:55 am

If the help menu is printed out when you type in loadscript, then the 'org.rifidi.emulator.scripting.groovy.console' bundle is not being loaded when you run the application. How are you launching the application? You should be able to right click on scripting.launch in the 'org.rifidi.emulator.scripting.groovy' project and select Run As->scripting. The results of the hello world script will be printed out on the console. If this does not solve your problem, please launch the application, type ss into the console, and post your results. This will let me know all the bundles that you have loaded, and perhaps I can try to figure out if there is one missing.

You do not need to do anything with tag streamer, as that is the old application. This groovy scripting is a more powerful and simpler way to simulate scenarios (it will be simpler to run once we release it ;)

mraman2006
Posts: 9
Joined: Sun Aug 23, 2009 9:42 am
Organization: AU

Re: Implementing Algorithm

Post by mraman2006 » Thu Oct 08, 2009 11:40 am

When i click on Run as -> Scripting,

It shows an error "Reference to undefined variable target.os" in a message box. I am not able to get the console.
When i choose a new configuration instead of scripting, i am able to get the console. This is the result of ss command:


Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.2.R34x_v20080826-1230
1 ACTIVE com.ibm.icu_3.8.1.v20080530
2 ACTIVE org.eclipse.core.commands_3.4.0.I20080509-2000
3 ACTIVE org.eclipse.core.contenttype_3.3.0.v20080604-1400
4 ACTIVE org.eclipse.core.databinding_1.1.1.M20080827-0800b
5 ACTIVE org.eclipse.core.expressions_3.4.0.v20080603-2000
6 ACTIVE org.eclipse.core.jobs_3.4.0.v20080512
7 ACTIVE org.eclipse.core.runtime_3.4.0.v20080512
8 ACTIVE org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502
9 ACTIVE org.eclipse.equinox.app_1.1.0.v20080421-2006
10 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006
11 ACTIVE org.eclipse.equinox.preferences_3.2.201.R34x_v20080709
12 ACTIVE org.eclipse.equinox.registry_3.4.0.v20080516-0950
13 ACTIVE org.eclipse.help_3.3.101.v20080702_34x
14 ACTIVE org.eclipse.jface_3.4.1.M20080827-2000
15 ACTIVE org.eclipse.jface.databinding_1.2.1.M20080827-0800a
16 ACTIVE org.eclipse.swt_3.4.1.v3449c
Fragments=37
18 ACTIVE org.eclipse.ui_3.4.1.M20080910-0800
19 ACTIVE org.eclipse.ui.views_3.3.0.I20080509-2000
20 ACTIVE org.eclipse.ui.workbench_3.4.1.M20080827-0800a
21 ACTIVE org.rifidi.common.utilities_2.1.0
22 ACTIVE org.rifidi.dependencies_2.1.0
23 INSTALLED org.rifidi.emulator_3.0.1
24 RESOLVED org.rifidi.emulator.console.log4j_1.0.0.qualifier
Master=29
25 INSTALLED org.rifidi.emulator.scripting_1.0.0.qualifier
26 INSTALLED org.rifidi.emulator.scripting.groovy_1.0.0.qualifier
27 INSTALLED org.rifidi.emulator.scripting.groovy.console_1.0.0.qualifier
28 RESOLVED org.rifidi.log4j.developer_1.0.2
Master=29
29 ACTIVE org.rifidi.logging_1.0.2
Fragments=24, 28
30 ACTIVE org.rifidi.services_2.1.0
31 INSTALLED org.rifidi.services.tags_3.0.2
32 INSTALLED org.rifidi.streamer_2.1.2
33 INSTALLED org.rifidi.streamer.xml_2.1.2
34 INSTALLED org.rifidi.ui.common_3.0.1
35 INSTALLED org.rifidi.ui.ide_2.4.1
36 INSTALLED org.rifidi.ui.streamer_2.1.4
37 RESOLVED org.eclipse.swt.win32.win32.x86_3.4.0.v3448f
Master=16
38 INSTALLED org.apache.commons.digester_1.0.2
39 INSTALLED org.rifidi.emulator.reader.alien_2.3.1
40 INSTALLED org.rifidi.emulator.reader.awid_2.3.0
41 INSTALLED org.rifidi.emulator.reader.epc_2.3.0
42 INSTALLED org.rifidi.emulator.reader.llrp_2.3.0
43 INSTALLED org.rifidi.emulator.reader.sirit_1.0.0
44 INSTALLED org.rifidi.emulator.reader.symbol_2.3.0
45 INSTALLED org.rifidi.emulator.reader.thingmagic_2.3.0
46 INSTALLED org.rifidi.emulator.readerview_1.0.0
47 RESOLVED org.rifidi.services.initializer_2.2.1
48 INSTALLED org.rifidi.views.tags_2.1.3


What has to be done?

Regards,
Ramanathan M

kyle
Posts: 220
Joined: Tue Apr 22, 2008 10:12 pm
Name: Kyle
Organization: Pramari
Location: Hartford, CT
Contact:

Re: Implementing Algorithm

Post by kyle » Thu Oct 08, 2009 12:03 pm

It looks like your run configuration is messed up. The run configuration controls the set of plugins that get installed and run whenever you launch the application.

The line that indicates to me that your run config is messed up is
27 INSTALLED org.rifidi.emulator.scripting.groovy.console_1.0.0.qualifier
This means that groovy plugin is being loaded, but is not being started. Once this plugin is ACTIVE, you will be able to type 'loadscript' and things will work.

Two ways to fix this:
1)Try to redownload the default run configuration.
Is there a little star by the scripting.launch file? If so this indicates that it has been changed since you last checked out the file from svn. If there is, right-click on it, go to replace with, and select latest from repository. Then try running it again.

2) Try to fix the run configuration yourself.
If this does not work, then you need to make sure of a couple things in the run configuration (go to run->run configurations). Then select the osgi run config that is called scripting.
1) In the bundles tab, make sure that Default Auto-Start is set to true.
2) Make sure that all the org.springframework bundles are checked.
3) Click the validate bundles tab. Clicking this will tell you if there are any unsatisfied dependencies. If there are any, you need to select the bundles that it indicates.

mraman2006
Posts: 9
Joined: Sun Aug 23, 2009 9:42 am
Organization: AU

Re: Implementing Algorithm

Post by mraman2006 » Sun Oct 11, 2009 2:31 pm

kyle,

I performed the sequence of actions to configure it on my own as you mentioned. While validating the plugin set,

it showed:


org.rifidi.emulator.scripting.grovy.console will be disabled, since 3.5.0 version req is not met by the existing org.eclipse.osgi plugin.


Do i have to download the new version of osgi plugin?


Regards,
Ramanathan M

kyle
Posts: 220
Joined: Tue Apr 22, 2008 10:12 pm
Name: Kyle
Organization: Pramari
Location: Hartford, CT
Contact:

Re: Implementing Algorithm

Post by kyle » Mon Oct 12, 2009 9:46 am

Ramanathan,
Are you sure you checked out 'org.rifidi.emulator.target3.5' and not 'org.rifidi.emulator.target? The target3.5 should have the newer version of osgi in it.
-Kyle

mraman2006
Posts: 9
Joined: Sun Aug 23, 2009 9:42 am
Organization: AU

Re: Implementing Algorithm

Post by mraman2006 » Mon Oct 12, 2009 2:08 pm

I again checked out the org.rifidi.target3.5 plugin.

Now i got a new error. org.eclipse.osgi plugin is missing from this configuration.

what to do?


Regards,
Ramanathan M

kyle
Posts: 220
Joined: Tue Apr 22, 2008 10:12 pm
Name: Kyle
Organization: Pramari
Location: Hartford, CT
Contact:

Re: Implementing Algorithm

Post by kyle » Tue Oct 13, 2009 9:13 am

Now that you checked out target3.5, try the original steps again:
1) Open up the target file
2) Set as target platform
3) Right-click on scripting.launch and replace with latest from repository
4) Right-click on scripting.launch and run-as osgi.

Perdigao
Posts: 1
Joined: Wed Feb 24, 2010 11:30 am
Organization: IST-LINK

Re: Implementing Algorithm

Post by Perdigao » Thu Feb 25, 2010 12:18 pm

Hey!

Probably i'm not posting this on the right place.

Is there a way to send or set a readers ROSpec by the script? I want to create readers, and manage them to comunicate with fosstrak ale server, but as far as i got, i need to send an ADD_ROSPEC and then ENABLE_ROSPEC messages...

I tried to do this, by developing my own plug in... but after i connected for the first time on the reader, no other aplication could connect to it, even if i disconnected... any ideas?

Matt
Posts: 362
Joined: Fri May 02, 2008 11:56 am
Organization: Pramari

Re: Implementing Algorithm

Post by Matt » Tue Jun 22, 2010 5:25 pm

Hi Perdigao,

Unfortunately we do not support this functionality with TagStreamer at the moment, however you can do something like this with a tool called "LLRPCommander" in eclipse:

http://www.fosstrak.org/llrp/

Since you aren't communicating with tagstreamer, and are instead pushing tag information to another program, this is a bit outside the scope of what TagStreamer was designed for. However, LLRPCommander should work nicely for what you want to do.

-Matt

Nérine
Posts: 27
Joined: Wed Apr 29, 2015 6:44 am
Organization: UMMTO

Re: Implementing Algorithm

Post by Nérine » Thu Apr 30, 2015 4:41 am

I can't run your code from source, because when I got access on this page: http://wiki.rifidi.org/index.php/Rifidi:Source_Code. I have this message " Not Found The requested URL /index.php/Rifidi:Source_Code was not found on this server". !!!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests