-
Notifications
You must be signed in to change notification settings - Fork 69
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
Encode file for negative value #60
Comments
I don’t really know much about this application. I just took it over to merge some patches. |
Did you some advice where I can ask about that ? Thanks. |
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...
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
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
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 I may very well be miss understanding what your saying is broken. Just trying to help
|
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. |
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 What value are expecting to see in your other TLV reader when you view it? since you are trying to store a negative value. |
When I encode txt file (Attached file) including value is negative, the bin file will be changed "2's complement".
docsis -p MTA_bin_integer.txt MTA_bin_integer.bin
The OID type should be integer 32 to avoid transfer value is error.
Could you please provide some advice on how to fix it ?
I used tool to check the value when it had been changed bin file.
MTA_bin_integer.txt
The text was updated successfully, but these errors were encountered: