-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge APER implementation from mouse07410's repository #226
base: master
Are you sure you want to change the base?
Conversation
bdcf1a5
to
e129848
Compare
3c016d1
to
70dcada
Compare
Perform
The failure seems comes from one extra byte |
Hmm...
I think appending that |
The reason I 'guess' this extra I am not sure whether the XER encoder or the XER decoder should be blamed. But strangely, I did not directly modify xer_encoder.c nor xer_decoder.c in this merge. So there might be something wrong worth checking. However, it is not my priority to do this. Still struggle with refinement for s1ap. |
I suspect - neither. Probably the trailing Update
|
@vlm Considering that Travis CI "approves", I'd say this PR can be merged. And I'd really like a master that (finally :) supports APER. ;-) |
I re-run with current master, there is also this |
What I'm saying is that If a test fails on it - my first suspicion is on the test.
But this pull request does not touch XER at all? And it passes Travis CI? I'd say this PR should be merged, because it's better to have some APER and give people the ability to translate and run at least some APER apps, rather than waiting until J2735 support gets fixed. |
@vlm? |
d072a59
to
ddbabf4
Compare
I found that restartability_supported()'s logic needs be negated to produce correct behavior. |
@vlm? |
a642f63
to
fb6080d
Compare
@vlm may I ask to accelerate review and merge of this PR? APER is a needed feature. Thanks! |
a2711fc
to
1fcb51a
Compare
@rampradeep93 , in addition to this #226, have you also merge #234 ? Please use newest commits of these pull requests. As for the decoding result, please refer to : #185 (comment) |
@brchiu , Have used master branch with pull request 226 and 234. Now getting the following error: Decoding member "criticality" in InitialUEMessage-IEs (constr_SEQUENCE.c:1599) Could you please help. |
@rampradeep93 , the By the way, please specify
I push my merged branch at my own repository. You can do some file comparison to find out what's wrong with your merge. |
5912147
to
2ecc970
Compare
Hi @brchiu , When I decode S1 Setup Request and and then call aper_encode function for Setup Response, am getting the following error, Failed to encode element ProtocolIE-Container (constr_SEQUENCE_OF.c:288) But when I call decode function, after encode, the encoding is successful. But when I call decode before encode, the value of list->count is 3. Could you please help. |
@rampradeep93 , in addition to raw s1ap message, perhaps you need to provide your sample code used in your testing, because it might be a result of mis-use of asn1c's APIs. |
@brchiu , Please find the attached s1ap message. I am not able to share the code now. But am using a similar kind of format: //Encode the structure contents Also when I call the decode - encode functions multiple times also, it fails. |
@rampradeep93 , after merging #226 and #234, I compile this test program in https://gist.github.com/brchiu/54abb92f1035d881b0c13c2f2697422a with
|
41b228d
to
b951ce6
Compare
Based on Velichkov's suggestion on comment : vlm#185 (comment)
1. Copying and modifying ANY_decode_uper() and ANY_encode_uper() to ANY_decode_aper() and ANY_encode_aper(). 2. Adding ANY_fromType_aper()/ANY_new_fromType_aper()/ ANY_to_type_aper().
b951ce6
to
755538f
Compare
@vlm, are you planning to merge this PR? Is four months enough time for review? |
@mouse07410, take it easy ! @vlm does not owe anybody for this project. I 'wish' he can make some decisions of this pull request, but he doesn't have to do it for anyone. I learned this asn1c project in 2005 and found no UPER available at that time. Then I revisited it in 2013 and found no APER available. Now we at least have something better than 13 years ago. I am quite happy to see it. 😉 People who can not wait can either resort to commercial software, or write another asn1 converter on his/her own. Right ? |
Merge APER implementation from @mouse07410's repository.
Due to there is no APER encoder and decoder for OPEN TYPE, so
s1ap-dump
built is still not able to decode S1AP messages.