Skip to content
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

S1AP protocol testing #51

Open
northmirko opened this issue Sep 18, 2020 · 2 comments
Open

S1AP protocol testing #51

northmirko opened this issue Sep 18, 2020 · 2 comments

Comments

@northmirko
Copy link

Hi, MTS-E//

Having problem with S1AP. Can you help ?
Trying to send PDU (S1SetupRequest):

<S1AP-PDU> <initiatingMessage> <procedureCode>17</procedureCode> <criticality>reject</criticality> <value> <S1SetupRequest> <protocolIEs> <protocolIEs> <id>59</id> <criticality>reject</criticality> <value> <Global-ENB-ID> <pLMNidentity>22F050</pLMNidentity> <eNB-ID> <macroENB-ID>11110011000001010000</macroENB-ID> </eNB-ID> </Global-ENB-ID> </value> </protocolIEs> <protocolIEs> <id>60</id> <criticality>ignore</criticality> <value> <ENBname>Mirko_Test_Sumarice</ENBname> </value> </protocolIEs> <protocolIEs> <id>64</id> <criticality>reject</criticality> <value> <SupportedTAs> <SupportedTAs-Item> <tAC>0100</tAC> <broadcastPLMNs> <PLMNidentity>22F050</PLMNidentity> </broadcastPLMNs> </SupportedTAs-Item> </SupportedTAs> </value> </protocolIEs> <protocolIEs> <id>137</id> <criticality>ignore</criticality> <value> <PagingDRX>v64</PagingDRX> </value> </protocolIEs> </protocolIEs> </S1SetupRequest> </value> </initiatingMessage> </S1AP-PDU>

but I am getting error:

`CAUSE: NotHandledCaseException

                                  Complete stack :
                                      com.ericsson.mts.asn1.exception.NotHandledCaseException
                                      com.ericsson.mts.asn1.translator.PERRestrictedCharacterStringTranslator.doEncode(PERRestrictedCharacterStringTranslator.java:52)
                                      com.ericsson.mts.asn1.translator.AbstractRestrictedCharacterStringTranslator.encode(AbstractRestrictedCharacterStringTranslator.java:50)
                                      com.ericsson.mts.asn1.translator.AbstractTranslator.encode(AbstractTranslator.java:82)
                                      com.ericsson.mts.asn1.translator.PERObjectClassFieldTranslator.doEncode(PERObjectClassFieldTranslator.java:65)
                                      com.ericsson.mts.asn1.translator.AbstractObjectClassFieldTranslator.encode(AbstractObjectClassFieldTranslator.java:63)
                                      com.ericsson.mts.asn1.translator.PERSequenceTranslator.doEncode(PERSequenceTranslator.java:79)
                                      com.ericsson.mts.asn1.translator.AbstractSequenceTranslator.encode(AbstractSequenceTranslator.java:162)
                                      com.ericsson.mts.asn1.translator.PERSequenceOfTranslator.launchEncode(PERSequenceOfTranslator.java:84)
                                      com.ericsson.mts.asn1.translator.PERSequenceOfTranslator.doEncode(PERSequenceOfTranslator.java:67)
                                      com.ericsson.mts.asn1.translator.AbstractSequenceOfTranslator.encode(AbstractSequenceOfTranslator.java:82)
                                      com.ericsson.mts.asn1.translator.PERSequenceTranslator.doEncode(PERSequenceTranslator.java:79)
                                      com.ericsson.mts.asn1.translator.AbstractSequenceTranslator.encode(AbstractSequenceTranslator.java:162)
                                      com.ericsson.mts.asn1.translator.AbstractTranslator.encode(AbstractTranslator.java:82)
                                      com.ericsson.mts.asn1.translator.PERObjectClassFieldTranslator.doEncode(PERObjectClassFieldTranslator.java:65)
                                      com.ericsson.mts.asn1.translator.AbstractObjectClassFieldTranslator.encode(AbstractObjectClassFieldTranslator.java:63)
                                      com.ericsson.mts.asn1.translator.PERSequenceTranslator.doEncode(PERSequenceTranslator.java:79)
                                      com.ericsson.mts.asn1.translator.AbstractSequenceTranslator.encode(AbstractSequenceTranslator.java:162)
                                      com.ericsson.mts.asn1.translator.AbstractTranslator.encode(AbstractTranslator.java:82)
                                      com.ericsson.mts.asn1.translator.PERChoiceTranslator.doEncode(PERChoiceTranslator.java:55)
                                      com.ericsson.mts.asn1.translator.AbstractChoiceTranslator.encode(AbstractChoiceTranslator.java:66)
                                      com.ericsson.mts.asn1.translator.AbstractTranslator.encode(AbstractTranslator.java:82)
                                      com.ericsson.mts.asn1.ASN1Translator.encode(ASN1Translator.java:40)
                                      com.devoteam.srit.xmlloader.s1ap.MsgS1ap.parseFromXml(MsgS1ap.java:251)
                                      com.devoteam.srit.xmlloader.core.protocol.Stack.parseMsgFromXml(Stack.java:601)
                                      com.devoteam.srit.xmlloader.core.operations.protocol.OperationSendMessage.execute(OperationSendMessage.java:142)
                                      com.devoteam.srit.xmlloader.core.operations.Operation.executeAndStat(Operation.java:179)
                                      com.devoteam.srit.xmlloader.core.operations.basic.OperationSequence.execute(OperationSequence.java:88)
                                      com.devoteam.srit.xmlloader.core.operations.functions.Function.execute(Function.java:112)
                                      com.devoteam.srit.xmlloader.core.operations.basic.OperationCall.execute(OperationCall.java:118)
                                      com.devoteam.srit.xmlloader.core.operations.Operation.executeAndStat(Operation.java:179)
                                      com.devoteam.srit.xmlloader.core.operations.basic.OperationSequence.execute(OperationSequence.java:88)
                                      com.devoteam.srit.xmlloader.core.Scenario.executeScenario(Scenario.java:67)
                                      com.devoteam.srit.xmlloader.core.ScenarioRunner.run(ScenarioRunner.java:269)
                                      com.devoteam.srit.xmlloader.core.ThreadRunner.run(ThreadRunner.java:59)
                                  ;`
@northmirko
Copy link
Author

Great product, by the way.
I can't imagine every day working with Diametar without MTS.

@egwepas
Copy link
Contributor

egwepas commented Sep 19, 2020

Hi and thanks,

That one is tricky, this error happens in sub-project https://github.com/ericsson-mts/mts-asn1 (PER ASN1 decoder) because not all the spec was implemented.

In this case it looks like the case 16.6 from the PER encoding/decoding rules was not implemented.

You're welcome to take a look at it and do a pull request, but I'm afraid won't be having time to fix that in a reasonnably short term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants