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

Create command to log SPI responses from Display - Priority 8 #55

Open
taylorlm88 opened this issue Feb 23, 2022 · 6 comments
Open

Create command to log SPI responses from Display - Priority 8 #55

taylorlm88 opened this issue Feb 23, 2022 · 6 comments
Labels
Main Host Main host issues for Andy

Comments

@taylorlm88
Copy link
Collaborator

Summary: Log SPI response from Display.

Description: For debugging purposes we would like to record the SPI responses that the Main Host receives from the panels. In most cases we expect the message that is sent to the panel is simply sent back to confirm it is working. Would there be any way to log these messages? Even if the SPI messages are logged only for a single panel, this may help us debug times when the screen stops displaying but we do not understand why. One idea to implement would be two additional commands ‘Start Debug’ and ‘Stop Debug’ that mirror the behavior of ‘Start Log’ and ‘Stop Log’ but provide more verbose logging. For example, ‘Stop Debug’ could be [0x01 0x50] and ‘Start Debug’ could be [0x02 0x51 0xRC ] with R being a row number, C being a column number for the panel we want the SPI response logged. In either R or C case, "0" would be a catch all (all in that row, all in that column…)

@taylorlm88 taylorlm88 added the Main Host Main host issues for Andy label Feb 23, 2022
@taylorlm88 taylorlm88 changed the title Create command to log SPI responses from Display Create command to log SPI responses from Display - Priority 8 Feb 24, 2022
@achiusciotex
Copy link

Currently don't have any DMA available to stream this data back. Also the SPI Error indicator on the front panel shows constant errors so I don't think the SPI responses are working properly. I think the blank frames issue is not related to the SPI and more related to the data not being available to send to the arena.

@floesche
Copy link
Collaborator

Would it be possible to repurpose one of the DMAs for a specific command, eg the mentioned Start Debug?

The SPI errors and issues with our Firmware are actually the reason we want to log this SPI response.

@achiusciotex
Copy link

The only 2 DMA channels I could repurpose are either the ADC DMA or the Log DMA(frame times, Treadmill, AO Func). I think repurposing the ADC DMA is the better option. I'll try to make a separate build first to see if it works.

@achiusciotex
Copy link

Would logging a complete column be sufficient for now? Logging specific panels and rows would take a bit more work.

@achiusciotex
Copy link

I'll go ahead and implement the single column feature. I'll expand it to row and single panel if that is not sufficient at a later point.

@achiusciotex
Copy link

Release with logging a single column of MISO data. I have an old arena so I can't verify MISO data is being returned correctly. See the "TCP commands.xlsx" file for command details. Command needs to be issued before the "Start Log" command. ADC data will not be logged when this is enabled.
https://www.dropbox.com/s/0bbprmtcyyraowc/G4%20Host%28Ver1-0-0-243%29.zip?dl=0

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

No branches or pull requests

3 participants