update CslCS203 Adapter
update CslCS203 Adapter
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
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
Re: update CslCS203 Adapter
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); »
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); »
Re: update CslCS203 Adapter
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
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
Re: update CslCS203 Adapter
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
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
Re: update CslCS203 Adapter
Thank you for quick response
-
- Posts: 1
- Joined: Tue Jun 21, 2016 11:25 am
- Organization: ICOSNET
Re: update CslCS203 Adapter
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
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
Re: update CslCS203 Adapter
FYI -This fixed was added as part of the Rifidi 3.5.1 release. https://sourceforge.net/projects/rifidi/files/
Who is online
Users browsing this forum: No registered users and 10 guests