Comments (3)
Hi @nculijun,
I will try to explain you the approach I used: if something is unclear, please let me know.
Inside the module eu.dariolucia.ccsds.sle.utl you have a folder containing all the ASN.1 SLE files. If you compare these files with the ones you find on CCSDS website, you will see that they are slightly different: the reason is due to the support to the different versions of the standard (from version 1 to version 5). When you compile the module with Maven, as part of the build process the ASN.1 files are parsed by the fantastic jASN1 compiler and Java classes are generated out of them (check inside the target folder, you will see those). These classes are then used by my library.
If you want to implement the provider side, you have three options:
- Implement the Java class generation in your own module and use the generated classes to implement the provider side. In fact, the ASN.1 files that I use already define all the PDU and the structure to allow the implementation of the provider role. This is the most complex option, because it means that you have to implement everything almost from scratch.
- Use the generated classes in module eu.dariolucia.ccsds.sle.utl, and implement the provider side with them: it is enough to have the eu.dariolucia.ccsds.sle.utl as dependency in your module, but still you have to implement the SLE provider classes yourself.
- Use the already available provider classes in the eu.dariolucia.ccsds.sle.utl module. There are several unit tests that show how to instantiate, configure and use such classes.
Let me know what you want to do, and I can try to give you some hints.
Best regards,
Dario
from ccsds.
Hi Dario,
Thank you very much. I used the C++ API of SLE to implement the client side a few years ago, but now I need cross-platform support(windows and centos), so I am trying to use Java language to implement the client side and provider side of SLE, and I want to compare and test the program performance.
from ccsds.
I would recommend to start from the classes already defined in the eu.dariolucia.ccsds.sle.utl. You can have a look at the Readme.MD here: https://github.com/dariol83/ccsds/tree/master/eu.dariolucia.ccsds.sle.utl , the file explains how to create a provider role. If the supplied classes do not work OK for you, you can implement your own provider by using the generated ASN.1 classes, which are also part of the module.
from ccsds.
Related Issues (12)
- SLE_E_CONFIG error in RCF configuration HOT 3
- COP-1 Frame Acking Question HOT 4
- Compilation failure HOT 4
- Help for example TMProcessor HOT 9
- Convolutional coding support HOT 1
- AOS Bitstream extraction bug HOT 2
- Space packet frames to SLE HOT 10
- Protocol abort at high rate HOT 4
- Many objects in the library are not implementing Serializable HOT 2
- TC Frames lost once processed in the FopEngine HOT 1
- deploy problem? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccsds.