Git Product home page Git Product logo

Comments (5)

rlaager avatar rlaager commented on September 26, 2024

I don’t really know much about this application. I just took it over to merge some patches.

from docsis.

SyHuangCBN avatar SyHuangCBN commented on September 26, 2024

Did you some advice where I can ask about that ?

Thanks.

from docsis.

negativeduck avatar negativeduck commented on September 26, 2024

So I'm not sure I followed but your other TLV tool did something weird or your mib for the excentis signaling stuff is broken.

Your config file as written encodes and comes out correctly.

after encoding it...
and then just dumping the stuff.
OPT(11) LEN (22) 4820615436141186821133182121156
UNPARSED: :0b:16:30:14:06:0f:2b:06:01:04:01:ba:08:02:01:01:21:01:08:02:01:02:01:9c
which is decimal 156 in 2's puts it at your -100 value which is -10.0 since it's a 10thdb mib.

OPT(11) LEN (23) 4821615436141186821133188122255126	

UNPARSED: :0b:17:30:15:06:0f:2b:06:01:04:01:ba:08:02:01:01:21:01:08:08:01:02:02:ff:7e
gives you 126 2's of -130 or -13.0

OPT(11) LEN (22) 4820615436141186821133189221226	

UNPARSED: :0b:16:30:14:06:0f:2b:06:01:04:01:ba:08:02:01:01:21:01:08:09:02:02:01:e2
226 2's of -30

OPT(11) LEN (22) 4820615436141186821133199166150	

UNPARSED: :0b:16:30:14:06:0f:2b:06:01:04:01:ba:08:02:01:01:21:01:09:09:01:42:01:32
which is your 50 value.

I may very well be miss understanding what your saying is broken. Just trying to help

Did you some advice where I can ask about that ?

Thanks.

from docsis.

SyHuangCBN avatar SyHuangCBN commented on September 26, 2024

negativeduck, Thanks for your help.

I just want to know how to change "Type" from "integer" to "integer32" for Docsis tool.

Due to I saw the value if it's negative, after encode, it will be "2's complement".

Now, I make another encode and decode to do that.

from docsis.

negativeduck avatar negativeduck commented on September 26, 2024

So that's the thing... your encoding an SnmpObject a numerical value which integer and integer32 are the same thing in that context. That's where there is no Integer32 distinction.

But with ToneDbLevel your valid values are -250 .. -30
if you are trying to make it store the value as a 32 bit number IE 4294967196
Then if you list it as -100 and guage32 or something but he encode will likely yell at you. And I would say there is a strong chance the emta would barf on it.

What value are expecting to see in your other TLV reader when you view it? since you are trying to store a negative value.

from docsis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.