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

Müller MIDI 3.0 - Sprayer - button behavior #26

Open
gunicsba opened this issue Oct 9, 2024 · 13 comments
Open

Müller MIDI 3.0 - Sprayer - button behavior #26

gunicsba opened this issue Oct 9, 2024 · 13 comments
Assignees
Labels
bug Something isn't working investigating

Comments

@gunicsba
Copy link

gunicsba commented Oct 9, 2024

The following things I noticed in regards of buttons.

Reported hardware capabilities: 6 buttons was not working for me.
Currently I'm running:
640 size
60x60 buttons
8 soft keys

This way it does load, and I'm able to modify a few parameters as well.

There's this button that has 2 purposes. It loads the next page when we do a single press, and it exits goes back when we do a long press.
image

With 900 size and 10/12 softkeys it looks much better but still can't access all pages or traverse back from some menu

@gunicsba
Copy link
Author

gunicsba commented Oct 9, 2024

Did a quick video as well:
https://youtu.be/4OK18cD5-Bk

And attaching the logs as well
AgISOVirtualTerminalLogs_10_Oct_2024_12_18_31am.zip

@gunicsba
Copy link
Author

gunicsba commented Oct 9, 2024

Maybe the buttons should appear in 2 columns, like it's in the configurator?
image
image

@ad3154
Copy link
Member

ad3154 commented Oct 9, 2024

The video definitely helps... it is interesting that it is complaining about invalid mask object IDs, as the ECU clearly thinks those are real/valid masks.

If I can figure out the issue with those masks, that should fix most things you are seeing. At this point I think I might want to write a little tool that just pulls all IOP data out of a CAN log so I can troubleshoot these issues faster...

Displaying soft keys in a second column probably does also make sense.

And I think it's possible the VT server isn't sending the still-held message for a button press? I will check that and see.

@ad3154
Copy link
Member

ad3154 commented Oct 9, 2024

If you look in the app data folder for the VT, can you possibly send/attach the IOP files? By default they are located at %appdata%\Open-Agriculture\iso_data

@ad3154 ad3154 self-assigned this Oct 9, 2024
@ad3154 ad3154 added bug Something isn't working investigating labels Oct 9, 2024
@gunicsba
Copy link
Author

Here's how it normally looks in a terminal:
received_564628002647831
received_1375390433420433

received_897022741871390

@gunicsba
Copy link
Author

Attaching the iop files as well:
a00c80000c421b07.zip

@ad3154
Copy link
Member

ad3154 commented Oct 10, 2024

I think I have addressed a portion of this (the errors when changing masks) in this commit of the stack Open-Agriculture/AgIsoStack-plus-plus@9c578cb

Will keep looking into the other parts

@gunicsba
Copy link
Author

It's a LOT better!
I've been able to visit about 99% of the menus, which is really great.
Settings, calibration, etc all works.

I'm still unable to traverse back from some menus :/
In the configurator there are maximum 4 working screens. (I only configured the 1st and 2nd)
It seems we're displaying the 2nd screen (i.e. 7 buttons)

Having the screen wider would be better as this way sometimes the buttons are outside of the visible area.

I made another quick video (Sadly I had to reset the ECU a few times to get back to the main menu.)
https://www.youtube.com/watch?v=PH00Q9zbJWs

AgISOVirtualTerminalLogs_12_Oct_2024_12_20_05am.zip
a00c80000c421b07 (2).zip

@ad3154
Copy link
Member

ad3154 commented Oct 14, 2024

Added button "Still held" messages in this PR: #29

@gunicsba
Copy link
Author

@ad3154 the functionality does work as in I'm able to go back.

this menu and its submenus work well:
248

430

I'm able to move between main pages and pressing the button long I'm able to exit too.

559

However there are a few buttons that broke which used to work.
image
Can't enter the settings menu. (It exits within 100ms.)
Can't start spraying.
Can't move to 2nd page.

The circled one I'm not sure.

@gunicsba
Copy link
Author

Also I tried to make the buttons in 2 columns (which was somewhat successful)
However the 2nd column button can't be clicked so I need to play with that :D
image
However this layout resembles the pictures we've attached earlier from the terminal render.

@gunicsba
Copy link
Author

Thanks @martonmiklos for the fix, this way I'm able to go around most of the menus.
However for some reason after a while the setting pages just exit back to the main menu.
I was able to traverse into the sub menu one time but once I exit with long press I'm only able to go back to the same menu but not the others.
It's like something stuck.

Attaching the logs:

AgISOVirtualTerminalLogs_18_Nov_2024_7_11_55pm.zip

@martonmiklos
Copy link
Contributor

It might be irrelevant, but I do see a few of similar:

[VT Server]: Client 135 change size command: invalid object type for object 5605
messages.

I do not have tooling for IOP decompilation at hand right now, however I do have a patch which addresses set size commands sent for OutputString objects:
Open-Agriculture/AgIsoStack-plus-plus#507

It is likely not relevant here (I barely think that back buttons would react only with some string resizes) but it might worth trying.

In the YT video you posted I have seen these messages:
kép
however I do not see them in the current log.

What I do see here as suspicious:
[VT Server]: Client 135 change numeric value command: change object ID 12092 to be 945 [VT Server]: Client 135 change numeric value command: change object ID 12093 to be 945 [VT Server]: Client 135 change child location failed because the target object with ID 12093 isn't applicable

Can you confirm that these messages has relation to the failed button presses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigating
Projects
None yet
Development

No branches or pull requests

3 participants