-
Notifications
You must be signed in to change notification settings - Fork 160
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
Initial 'RequestGetPresetStatus' response throws 'InvalidProtocolBufferException' if custom presets exist #649
Comments
Yes both initial and asynchronous responses use the same protobuf object. I just tested the following and didn't see any problems on Hero 13:
Here is a log that includes that byte data. Can you try parsing this byte data with your generated Protobuf code to see if there are any issues. This would tell us if the problem is the Protobuf code or the data.
|
I just realized that I didn't actually test your bug which if I understand, is getting the initial presets after a custom preset is created. I just did that and also saw now problems. Here is the log. This is the one you should try parsing.
|
Hello and thank you for your answer! To be clear, the steps to reproduce the bug are:
I tested both of the (initial) response data from your logs. The first one without error.
byte[] unproblematicProtoResp = {0xf5, 0xf2, 0x0a, 0x78, 0x08, 0xe8, 0x07, 0x12, 0x2f, 0x08, 0x00, 0x10, 0x0c, 0x18, 0x0a, 0x28, 0x00, 0x30, 0x00, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x08, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x38, 0x08, 0x01, 0x10, 0x20, 0x18, 0x6a, 0x28, 0x00, 0x30, 0x66, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x64, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x9c, 0x01, 0x10, 0x0a, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x00, 0x28, 0x0c, 0x28, 0x20, 0x28, 0x0f, 0x0a, 0x81, 0x01, 0x08, 0xe9, 0x07, 0x12, 0x1f, 0x08, 0x80, 0x80, 0x04, 0x10, 0x10, 0x18, 0x03, 0x28, 0x00, 0x30, 0x03, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x03, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x28, 0x08, 0x82, 0x80, 0x04, 0x10, 0x13, 0x18, 0x05, 0x28, 0x00, 0x30, 0x05, 0x3a, 0x06, 0x08, 0x7e, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x93, 0x01, 0x10, 0x09, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe7, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x27, 0x08, 0x83, 0x80, 0x04, 0x10, 0x12, 0x18, 0x06, 0x28, 0x00, 0x30, 0x06, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x13, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x01, 0x28, 0x10, 0x28, 0x13, 0x28, 0x12, 0x0a, 0xc3, 0x02, 0x08, 0xea, 0x07, 0x12, 0x30, 0x08, 0x80, 0x80, 0x08, 0x10, 0x18, 0x18, 0x07, 0x28, 0x00, 0x30, 0x07, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x6f, 0x10, 0x0a, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x83, 0x80, 0x08, 0x10, 0x1d, 0x18, 0x4c, 0x28, 0x00, 0x30, 0x4c, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x84, 0x80, 0x08, 0x10, 0x1e, 0x18, 0x4d, 0x28, 0x00, 0x30, 0x4d, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x85, 0x80, 0x08, 0x10, 0x1f, 0x18, 0x4e, 0x28, 0x00, 0x30, 0x4e, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x30, 0x08, 0x81, 0x80, 0x08, 0x10, 0x0d, 0x18, 0x08, 0x28, 0x00, 0x30, 0x08, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x05, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x82, 0x80, 0x08, 0x10, 0x1a, 0x18, 0x09, 0x28, 0x00, 0x30, 0x09, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x02, 0x28, 0x18, 0x28, 0x1d, 0x28, 0x1e, 0x28, 0x1f, 0x28, 0x0d, 0x28, 0x1a, 0x12, 0x04, 0x08, 0x12, 0x10, 0x21, 0x1a, 0x04, 0x08, 0x13, 0x10, 0x20}; The second one with the same error
byte[] problematicProtoResp = {0xf5, 0xf2, 0x0a, 0xa9, 0x01, 0x08, 0xe8, 0x07, 0x12, 0x2f, 0x08, 0x06, 0x10, 0x0c, 0x18, 0x16, 0x28, 0x01, 0x30, 0x14, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x08, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x2f, 0x08, 0x00, 0x10, 0x0c, 0x18, 0x0a, 0x28, 0x00, 0x30, 0x00, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x08, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x38, 0x08, 0x01, 0x10, 0x20, 0x18, 0x6a, 0x28, 0x00, 0x30, 0x66, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x64, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x9c, 0x01, 0x10, 0x0a, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x00, 0x28, 0x0c, 0x28, 0x20, 0x28, 0x0f, 0x0a, 0x81, 0x01, 0x08, 0xe9, 0x07, 0x12, 0x1f, 0x08, 0x80, 0x80, 0x04, 0x10, 0x10, 0x18, 0x03, 0x28, 0x00, 0x30, 0x03, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x03, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x28, 0x08, 0x82, 0x80, 0x04, 0x10, 0x13, 0x18, 0x05, 0x28, 0x00, 0x30, 0x05, 0x3a, 0x06, 0x08, 0x7e, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x93, 0x01, 0x10, 0x09, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe7, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x27, 0x08, 0x83, 0x80, 0x04, 0x10, 0x12, 0x18, 0x06, 0x28, 0x00, 0x30, 0x06, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x13, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x01, 0x28, 0x10, 0x28, 0x13, 0x28, 0x12, 0x0a, 0xc3, 0x02, 0x08, 0xea, 0x07, 0x12, 0x30, 0x08, 0x80, 0x80, 0x08, 0x10, 0x18, 0x18, 0x07, 0x28, 0x00, 0x30, 0x07, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x6f, 0x10, 0x0a, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x83, 0x80, 0x08, 0x10, 0x1d, 0x18, 0x4c, 0x28, 0x00, 0x30, 0x4c, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x84, 0x80, 0x08, 0x10, 0x1e, 0x18, 0x4d, 0x28, 0x00, 0x30, 0x4d, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x85, 0x80, 0x08, 0x10, 0x1f, 0x18, 0x4e, 0x28, 0x00, 0x30, 0x4e, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x30, 0x08, 0x81, 0x80, 0x08, 0x10, 0x0d, 0x18, 0x08, 0x28, 0x00, 0x30, 0x08, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x05, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x82, 0x80, 0x08, 0x10, 0x1a, 0x18, 0x09, 0x28, 0x00, 0x30, 0x09, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x02, 0x28, 0x18, 0x28, 0x1d, 0x28, 0x1e, 0x28, 0x1f, 0x28, 0x0d, 0x28, 0x1a, 0x12, 0x04, 0x08, 0x12, 0x10, 0x21, 0x1a, 0x04, 0x08, 0x13, 0x10, 0x20}; But as I understand it, you also had problems with that, right? |
Sorry I mistyped above. To be clear: I did not see any problems parsing any of the data above. I took the logs from the Python SDK. Anyway it is good that we now have a test vector ( Now here is where it gets weird...I just tried to parse the I can't explain this but will do some debugging. |
Okay, that sounds really strange at first. But it's the data from your log that I should test.
I copied the log and edited it using regex.
The only logical explanation for me is that your software changes the data before parsing it. So I checked your code and saw here that you remove the FeatureID from the payload. I will run the data without the FeatureID through the Proto-PresetStatus parser and see what happens. |
Without the FeatureID I was now able to parse both payloads without errors. byte[] unproblematicProtoResp = {0xf2, 0x0a, 0x78, 0x08, 0xe8, 0x07, 0x12, 0x2f, 0x08, 0x00, 0x10, 0x0c, 0x18, 0x0a, 0x28, 0x00, 0x30, 0x00, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x08, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x38, 0x08, 0x01, 0x10, 0x20, 0x18, 0x6a, 0x28, 0x00, 0x30, 0x66, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x64, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x9c, 0x01, 0x10, 0x0a, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x00, 0x28, 0x0c, 0x28, 0x20, 0x28, 0x0f, 0x0a, 0x81, 0x01, 0x08, 0xe9, 0x07, 0x12, 0x1f, 0x08, 0x80, 0x80, 0x04, 0x10, 0x10, 0x18, 0x03, 0x28, 0x00, 0x30, 0x03, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x03, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x28, 0x08, 0x82, 0x80, 0x04, 0x10, 0x13, 0x18, 0x05, 0x28, 0x00, 0x30, 0x05, 0x3a, 0x06, 0x08, 0x7e, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x93, 0x01, 0x10, 0x09, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe7, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x27, 0x08, 0x83, 0x80, 0x04, 0x10, 0x12, 0x18, 0x06, 0x28, 0x00, 0x30, 0x06, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x13, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x01, 0x28, 0x10, 0x28, 0x13, 0x28, 0x12, 0x0a, 0xc3, 0x02, 0x08, 0xea, 0x07, 0x12, 0x30, 0x08, 0x80, 0x80, 0x08, 0x10, 0x18, 0x18, 0x07, 0x28, 0x00, 0x30, 0x07, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x6f, 0x10, 0x0a, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x83, 0x80, 0x08, 0x10, 0x1d, 0x18, 0x4c, 0x28, 0x00, 0x30, 0x4c, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x84, 0x80, 0x08, 0x10, 0x1e, 0x18, 0x4d, 0x28, 0x00, 0x30, 0x4d, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x85, 0x80, 0x08, 0x10, 0x1f, 0x18, 0x4e, 0x28, 0x00, 0x30, 0x4e, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x30, 0x08, 0x81, 0x80, 0x08, 0x10, 0x0d, 0x18, 0x08, 0x28, 0x00, 0x30, 0x08, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x05, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x82, 0x80, 0x08, 0x10, 0x1a, 0x18, 0x09, 0x28, 0x00, 0x30, 0x09, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x02, 0x28, 0x18, 0x28, 0x1d, 0x28, 0x1e, 0x28, 0x1f, 0x28, 0x0d, 0x28, 0x1a, 0x12, 0x04, 0x08, 0x12, 0x10, 0x21, 0x1a, 0x04, 0x08, 0x13, 0x10, 0x20}; and byte[] nowUnproblematicProtoResp = {0xf2, 0x0a, 0xa9, 0x01, 0x08, 0xe8, 0x07, 0x12, 0x2f, 0x08, 0x06, 0x10, 0x0c, 0x18, 0x16, 0x28, 0x01, 0x30, 0x14, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x08, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x2f, 0x08, 0x00, 0x10, 0x0c, 0x18, 0x0a, 0x28, 0x00, 0x30, 0x00, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x08, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x38, 0x08, 0x01, 0x10, 0x20, 0x18, 0x6a, 0x28, 0x00, 0x30, 0x66, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x64, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xea, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x9c, 0x01, 0x10, 0x0a, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x00, 0x28, 0x0c, 0x28, 0x20, 0x28, 0x0f, 0x0a, 0x81, 0x01, 0x08, 0xe9, 0x07, 0x12, 0x1f, 0x08, 0x80, 0x80, 0x04, 0x10, 0x10, 0x18, 0x03, 0x28, 0x00, 0x30, 0x03, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x03, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x28, 0x08, 0x82, 0x80, 0x04, 0x10, 0x13, 0x18, 0x05, 0x28, 0x00, 0x30, 0x05, 0x3a, 0x06, 0x08, 0x7e, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x93, 0x01, 0x10, 0x09, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe7, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x12, 0x27, 0x08, 0x83, 0x80, 0x04, 0x10, 0x12, 0x18, 0x06, 0x28, 0x00, 0x30, 0x06, 0x3a, 0x06, 0x08, 0x7d, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x13, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe6, 0x01, 0x10, 0x1f, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x01, 0x28, 0x10, 0x28, 0x13, 0x28, 0x12, 0x0a, 0xc3, 0x02, 0x08, 0xea, 0x07, 0x12, 0x30, 0x08, 0x80, 0x80, 0x08, 0x10, 0x18, 0x18, 0x07, 0x28, 0x00, 0x30, 0x07, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x6f, 0x10, 0x0a, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x83, 0x80, 0x08, 0x10, 0x1d, 0x18, 0x4c, 0x28, 0x00, 0x30, 0x4c, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x84, 0x80, 0x08, 0x10, 0x1e, 0x18, 0x4d, 0x28, 0x00, 0x30, 0x4d, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x85, 0x80, 0x08, 0x10, 0x1f, 0x18, 0x4e, 0x28, 0x00, 0x30, 0x4e, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x30, 0x08, 0x81, 0x80, 0x08, 0x10, 0x0d, 0x18, 0x08, 0x28, 0x00, 0x30, 0x08, 0x3a, 0x07, 0x08, 0xe8, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x05, 0x10, 0x00, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x12, 0x31, 0x08, 0x82, 0x80, 0x08, 0x10, 0x1a, 0x18, 0x09, 0x28, 0x00, 0x30, 0x09, 0x3a, 0x07, 0x08, 0xe9, 0x01, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x06, 0x08, 0x02, 0x10, 0x01, 0x18, 0x01, 0x3a, 0x07, 0x08, 0x20, 0x10, 0x91, 0x1c, 0x18, 0x01, 0x3a, 0x07, 0x08, 0xe5, 0x01, 0x10, 0x00, 0x18, 0x01, 0x40, 0x00, 0x18, 0x01, 0x20, 0x02, 0x28, 0x18, 0x28, 0x1d, 0x28, 0x1e, 0x28, 0x1f, 0x28, 0x0d, 0x28, 0x1a, 0x12, 0x04, 0x08, 0x12, 0x10, 0x21, 0x1a, 0x04, 0x08, 0x13, 0x10, 0x20}; EDIT: |
I think the issue can be closed. Thanks for the support |
Hello everyone,
I work with Java and Android.
When parsing the initial protobuf response (Feature ID: 0xF5 and Action ID: 0xF2) from
RequestGetPresetStatus
I get anInvalidProtocolBufferException
('Protocol message contained an invalid tag (zero).').Asynchronous notification (Feature ID: 0xF5 and Action ID: 0xF3) on preset change is parsed without errors.
Aren't both responses of type
PresetStatus.NotifyPresetStatus
and parsed using the same method?I'm testing it with
H23.01.02.32.00
and the current protocol buffers from 'https://github.com/gopro/OpenGoPro/tree/main/protobuf'.I also tested it with different presets loaded before the request.
EDIT
After I deleted all custom presets from the camera, the parsing works. If I create a custom preset again (exact copy of a standard preset), the problem occurs again
Thank you!
The text was updated successfully, but these errors were encountered: