update CslCS203 Adapter

Questions about developing the edge server core as well as applications

Moderators: Matt, kyle

Post Reply
rfts
Posts: 3
Joined: Mon Jun 20, 2016 7:38 am
Organization: RFID Tags and Services

update CslCS203 Adapter

Post by rfts » Mon Jun 20, 2016 10:45 am

Hi,

I am using CSL CS203 adapter for an application. The Tag values appear properly when seen on the Eclipse console while running the SDK but when used with DBApp, the EPC ID appears to have strange characters. I am not sure what to do but I remember modifying
epc = new String(Hex.decodeHex(val.toCharArray()));
to
epc = new String(val.toCharArray());
in file CslSocketSensorSessionTagHandler.java in method TagReadEvent seems to resolve the problem.

The Challenge is how to modify the code and how to put is back so that I can test the same in Eclipse and what do I need to do to add the CSL adapter into the release?

A quick help will be appreciated as I plan to do a demo on Thu.

Thank you for your help
Ketan

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: update CslCS203 Adapter

Post by bppause » Mon Jun 20, 2016 6:14 pm

There is a fixed being worked on

I believe its

in the classes org.rifidi.edge.adapter.csl.CslSocketSensorSession.java, in the method public List<TagReadEvent> parseTag(String message), from the line 80 to 85 :
« String epc = null;
try {
epc = new String(Hex.decodeHex(val.toCharArray()));
} catch (DecoderException e) {
throw new RuntimeException("Cannot decode tag: " + val);
} »
The epc was sent to the tagEvent with incorrect format but it’s now fixed by modifying the line 82 :
« epc = new String(Hex.decodeHex(val.toCharArray())); »
By :
« epc = new String(val); »

rfts
Posts: 3
Joined: Mon Jun 20, 2016 7:38 am
Organization: RFID Tags and Services

Re: update CslCS203 Adapter

Post by rfts » Tue Jun 21, 2016 4:34 am

Hi,

Thank you for the update.

How can I build the same at my end and add it to the plugins folder?
If you have already build, please let me know how I can get the copy?

It will be very helpful if you can let us know how to make these changes and make the jar as we also need to add other features including GPIO to the reader.
Additionally we plan to support other readers as well.

Thank you

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: update CslCS203 Adapter

Post by bppause » Tue Jun 21, 2016 7:28 am

I believe the steps are - (Note: yes we are planning this fix for CSL in a future release)

1) you need to setup the sdk if you havent already - http://wiki.rifidi.net/index.php?title= ... nvironment

1b) in eclsipse connect to svn repository - https://transcends.svn.cloudforge.com/r ... idi/trunk/

2) export the bundle you changed - http://wiki.rifidi.net/index.php?title= ... pplication (Note: step 1 only)

3) add bundle to plugins - http://wiki.rifidi.net/index.php?title= ... GI_Bundles

as far as updating and creating new adapters here is teh wiki reference -http://wiki.rifidi.net/index.php?title= ... sor_plugin


Note: please leverage teh wiki and forms while researching hot to perform similar topics as many times you can find teh answer via these resources

rfts
Posts: 3
Joined: Mon Jun 20, 2016 7:38 am
Organization: RFID Tags and Services

Re: update CslCS203 Adapter

Post by rfts » Tue Jun 21, 2016 9:15 am

Thank you for quick response

ibrahim.boukhenna
Posts: 1
Joined: Tue Jun 21, 2016 11:25 am
Organization: ICOSNET

Re: update CslCS203 Adapter

Post by ibrahim.boukhenna » Wed Jun 22, 2016 5:56 am

Hi,

This is a quick fix for the adapter csl CS203.

https://www.dropbox.com/sh/97pvceij850l ... OY5qa?dl=0

To use this adapter, please add the jar in "plugins" folder under "/server/plugins/".

@bppause please post this adapter in the suitable forum.

Ibrahim

bppause
Posts: 434
Joined: Sat Oct 03, 2009 12:30 am
Organization: Pramari

Re: update CslCS203 Adapter

Post by bppause » Tue Jun 28, 2016 2:48 pm

FYI -This fixed was added as part of the Rifidi 3.5.1 release. https://sourceforge.net/projects/rifidi/files/

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests