Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix buffer sync issue in camera raw bytes example#143

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
facchinm merged 8 commits intoarduino:masterfromsebromero:camera-example
Feb 23, 2021

Conversation

@sebromero
Copy link
Collaborator

Adds a very basic synchronization to the Arduino and Processing sketch to make sure the buffer doesn't get out of sync.
Here is the before / after comparison:

Before

After

@sebromerosebromero changed the titleCamera exampleFix buffer sync issue in camera raw bytes exampleFeb 22, 2021
@sebromero
Copy link
CollaboratorAuthor

@iabdalkader Wdyt?

@github-actions
Copy link

Memory usage change @198d296

Boardflash%RAM for global variables%
arduino:mbed:envie_m40 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:envie_m70 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:nano33ble0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardlibraries/Scheduler/examples/MultipleBlinks
flash
%libraries/Scheduler/examples/MultipleBlinks
RAM for global variables
%libraries/doom/examples/Doom
flash
%libraries/doom/examples/Doom
RAM for global variables
%libraries/KernelDebug/examples/KernelDebug
flash
%libraries/KernelDebug/examples/KernelDebug
RAM for global variables
%libraries/Portenta_SDCARD/examples/TestSDCARD
flash
%libraries/Portenta_SDCARD/examples/TestSDCARD
RAM for global variables
%libraries/Portenta_Video/examples/Envie_video_coreboot
flash
%libraries/Portenta_Video/examples/Envie_video_coreboot
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
flash
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
flash
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
RAM for global variables
%libraries/ThreadDebug/examples/ThreadDebug
flash
%libraries/ThreadDebug/examples/ThreadDebug
RAM for global variables
%libraries/USBHOST/examples/KeyboardController
flash
%libraries/USBHOST/examples/KeyboardController
RAM for global variables
%libraries/USBHOST/examples/Shell
flash
%libraries/USBHOST/examples/Shell
RAM for global variables
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
flash
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
RAM for global variables
%libraries/PDM/examples/PDMSerialPlotter
flash
%libraries/PDM/examples/PDMSerialPlotter
RAM for global variables
%
arduino:mbed:envie_m400.000.000.000.000.000.000.000.000.000.0
arduino:mbed:envie_m700.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.0
arduino:mbed:nano33ble00.000.000.000.000.000.0
Click for full report CSV
Board,libraries/Scheduler/examples/MultipleBlinks<br>flash,%,libraries/Scheduler/examples/MultipleBlinks<br>RAM for global variables,%,libraries/doom/examples/Doom<br>flash,%,libraries/doom/examples/Doom<br>RAM for global variables,%,libraries/KernelDebug/examples/KernelDebug<br>flash,%,libraries/KernelDebug/examples/KernelDebug<br>RAM for global variables,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>flash,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>RAM for global variables,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>flash,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>flash,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>flash,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>RAM for global variables,%,libraries/ThreadDebug/examples/ThreadDebug<br>flash,%,libraries/ThreadDebug/examples/ThreadDebug<br>RAM for global variables,%,libraries/USBHOST/examples/KeyboardController<br>flash,%,libraries/USBHOST/examples/KeyboardController<br>RAM for global variables,%,libraries/USBHOST/examples/Shell<br>flash,%,libraries/USBHOST/examples/Shell<br>RAM for global variables,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>flash,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>RAM for global variables,%,libraries/PDM/examples/PDMSerialPlotter<br>flash,%,libraries/PDM/examples/PDMSerialPlotter<br>RAM for global variables,%arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:nano33ble,0,0.0,0,0.0,,,,,,,,,,,,,,,,,,,,,,,,,0,0.0,0,0.0,,,,,,,,,,,,,0,0.0,0,0.0

@iabdalkader
Copy link
Contributor

You might want to add a timeout in the pde.

@sebromero
Copy link
CollaboratorAuthor

You might want to add a timeout in the pde.

@iabdalkader Can you elaborate? Timeout for what condition?

@iabdalkader
Copy link
Contributor

@sebromero If the sketch misses even a single byte, the cam and the sketch will deadlock. Adding a 1 second ? timeout in the pde may allow it to recover from that without restarting the sketch. Just a suggestion but otherwise it looks good.

@github-actions
Copy link

Memory usage change @ee49989

Boardflash%RAM for global variables%
arduino:mbed:envie_m40 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:envie_m70 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:nano33ble0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardlibraries/Scheduler/examples/MultipleBlinks
flash
%libraries/Scheduler/examples/MultipleBlinks
RAM for global variables
%libraries/doom/examples/Doom
flash
%libraries/doom/examples/Doom
RAM for global variables
%libraries/KernelDebug/examples/KernelDebug
flash
%libraries/KernelDebug/examples/KernelDebug
RAM for global variables
%libraries/Portenta_SDCARD/examples/TestSDCARD
flash
%libraries/Portenta_SDCARD/examples/TestSDCARD
RAM for global variables
%libraries/Portenta_Video/examples/Envie_video_coreboot
flash
%libraries/Portenta_Video/examples/Envie_video_coreboot
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
flash
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
flash
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
RAM for global variables
%libraries/ThreadDebug/examples/ThreadDebug
flash
%libraries/ThreadDebug/examples/ThreadDebug
RAM for global variables
%libraries/USBHOST/examples/KeyboardController
flash
%libraries/USBHOST/examples/KeyboardController
RAM for global variables
%libraries/USBHOST/examples/Shell
flash
%libraries/USBHOST/examples/Shell
RAM for global variables
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
flash
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
RAM for global variables
%libraries/PDM/examples/PDMSerialPlotter
flash
%libraries/PDM/examples/PDMSerialPlotter
RAM for global variables
%
arduino:mbed:envie_m400.000.000.000.000.000.000.000.000.000.0
arduino:mbed:envie_m700.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.0
arduino:mbed:nano33ble00.000.000.000.000.000.0
Click for full report CSV
Board,libraries/Scheduler/examples/MultipleBlinks<br>flash,%,libraries/Scheduler/examples/MultipleBlinks<br>RAM for global variables,%,libraries/doom/examples/Doom<br>flash,%,libraries/doom/examples/Doom<br>RAM for global variables,%,libraries/KernelDebug/examples/KernelDebug<br>flash,%,libraries/KernelDebug/examples/KernelDebug<br>RAM for global variables,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>flash,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>RAM for global variables,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>flash,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>flash,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>flash,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>RAM for global variables,%,libraries/ThreadDebug/examples/ThreadDebug<br>flash,%,libraries/ThreadDebug/examples/ThreadDebug<br>RAM for global variables,%,libraries/USBHOST/examples/KeyboardController<br>flash,%,libraries/USBHOST/examples/KeyboardController<br>RAM for global variables,%,libraries/USBHOST/examples/Shell<br>flash,%,libraries/USBHOST/examples/Shell<br>RAM for global variables,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>flash,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>RAM for global variables,%,libraries/PDM/examples/PDMSerialPlotter<br>flash,%,libraries/PDM/examples/PDMSerialPlotter<br>RAM for global variables,%arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:nano33ble,0,0.0,0,0.0,,,,,,,,,,,,,,,,,,,,,,,,,0,0.0,0,0.0,,,,,,,,,,,,,0,0.0,0,0.0

@sebromero
Copy link
CollaboratorAuthor

@iabdalkader Makes sense. Added it 👍

iabdalkader reacted with thumbs up emoji

@github-actions
Copy link

Memory usage change @bf30ea8

Boardflash%RAM for global variables%
arduino:mbed:envie_m40 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:envie_m70 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:nano33ble0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardlibraries/Scheduler/examples/MultipleBlinks
flash
%libraries/Scheduler/examples/MultipleBlinks
RAM for global variables
%libraries/doom/examples/Doom
flash
%libraries/doom/examples/Doom
RAM for global variables
%libraries/KernelDebug/examples/KernelDebug
flash
%libraries/KernelDebug/examples/KernelDebug
RAM for global variables
%libraries/Portenta_SDCARD/examples/TestSDCARD
flash
%libraries/Portenta_SDCARD/examples/TestSDCARD
RAM for global variables
%libraries/Portenta_Video/examples/Envie_video_coreboot
flash
%libraries/Portenta_Video/examples/Envie_video_coreboot
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
flash
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
flash
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
RAM for global variables
%libraries/ThreadDebug/examples/ThreadDebug
flash
%libraries/ThreadDebug/examples/ThreadDebug
RAM for global variables
%libraries/USBHOST/examples/KeyboardController
flash
%libraries/USBHOST/examples/KeyboardController
RAM for global variables
%libraries/USBHOST/examples/Shell
flash
%libraries/USBHOST/examples/Shell
RAM for global variables
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
flash
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
RAM for global variables
%libraries/PDM/examples/PDMSerialPlotter
flash
%libraries/PDM/examples/PDMSerialPlotter
RAM for global variables
%
arduino:mbed:envie_m400.000.000.000.000.000.000.000.000.000.0
arduino:mbed:envie_m700.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.0
arduino:mbed:nano33ble00.000.000.000.000.000.0
Click for full report CSV
Board,libraries/Scheduler/examples/MultipleBlinks<br>flash,%,libraries/Scheduler/examples/MultipleBlinks<br>RAM for global variables,%,libraries/doom/examples/Doom<br>flash,%,libraries/doom/examples/Doom<br>RAM for global variables,%,libraries/KernelDebug/examples/KernelDebug<br>flash,%,libraries/KernelDebug/examples/KernelDebug<br>RAM for global variables,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>flash,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>RAM for global variables,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>flash,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>flash,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>flash,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>RAM for global variables,%,libraries/ThreadDebug/examples/ThreadDebug<br>flash,%,libraries/ThreadDebug/examples/ThreadDebug<br>RAM for global variables,%,libraries/USBHOST/examples/KeyboardController<br>flash,%,libraries/USBHOST/examples/KeyboardController<br>RAM for global variables,%,libraries/USBHOST/examples/Shell<br>flash,%,libraries/USBHOST/examples/Shell<br>RAM for global variables,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>flash,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>RAM for global variables,%,libraries/PDM/examples/PDMSerialPlotter<br>flash,%,libraries/PDM/examples/PDMSerialPlotter<br>RAM for global variables,%arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:nano33ble,0,0.0,0,0.0,,,,,,,,,,,,,,,,,,,,,,,,,0,0.0,0,0.0,,,,,,,,,,,,,0,0.0,0,0.0

@github-actions
Copy link

Memory usage change @da37f87

Boardflash%RAM for global variables%
arduino:mbed:envie_m40 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:envie_m70 - 00.0 - 0.00 - 00.0 - 0.0
arduino:mbed:nano33ble0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardlibraries/Scheduler/examples/MultipleBlinks
flash
%libraries/Scheduler/examples/MultipleBlinks
RAM for global variables
%libraries/doom/examples/Doom
flash
%libraries/doom/examples/Doom
RAM for global variables
%libraries/KernelDebug/examples/KernelDebug
flash
%libraries/KernelDebug/examples/KernelDebug
RAM for global variables
%libraries/Portenta_SDCARD/examples/TestSDCARD
flash
%libraries/Portenta_SDCARD/examples/TestSDCARD
RAM for global variables
%libraries/Portenta_Video/examples/Envie_video_coreboot
flash
%libraries/Portenta_Video/examples/Envie_video_coreboot
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
flash
%libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo
RAM for global variables
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
flash
%libraries/Portenta_System/examples/PortentaH7_updateBootloader
RAM for global variables
%libraries/ThreadDebug/examples/ThreadDebug
flash
%libraries/ThreadDebug/examples/ThreadDebug
RAM for global variables
%libraries/USBHOST/examples/KeyboardController
flash
%libraries/USBHOST/examples/KeyboardController
RAM for global variables
%libraries/USBHOST/examples/Shell
flash
%libraries/USBHOST/examples/Shell
RAM for global variables
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
flash
%libraries/WiFi/examples/PortentaWiFiFirmwareUpdater
RAM for global variables
%libraries/PDM/examples/PDMSerialPlotter
flash
%libraries/PDM/examples/PDMSerialPlotter
RAM for global variables
%
arduino:mbed:envie_m400.000.000.000.000.000.000.000.000.000.0
arduino:mbed:envie_m700.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.0
arduino:mbed:nano33ble00.000.000.000.000.000.0
Click for full report CSV
Board,libraries/Scheduler/examples/MultipleBlinks<br>flash,%,libraries/Scheduler/examples/MultipleBlinks<br>RAM for global variables,%,libraries/doom/examples/Doom<br>flash,%,libraries/doom/examples/Doom<br>RAM for global variables,%,libraries/KernelDebug/examples/KernelDebug<br>flash,%,libraries/KernelDebug/examples/KernelDebug<br>RAM for global variables,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>flash,%,libraries/Portenta_SDCARD/examples/TestSDCARD<br>RAM for global variables,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>flash,%,libraries/Portenta_Video/examples/Envie_video_coreboot<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>flash,%,libraries/Portenta_System/examples/PortentaH7_getBootloaderInfo<br>RAM for global variables,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>flash,%,libraries/Portenta_System/examples/PortentaH7_updateBootloader<br>RAM for global variables,%,libraries/ThreadDebug/examples/ThreadDebug<br>flash,%,libraries/ThreadDebug/examples/ThreadDebug<br>RAM for global variables,%,libraries/USBHOST/examples/KeyboardController<br>flash,%,libraries/USBHOST/examples/KeyboardController<br>RAM for global variables,%,libraries/USBHOST/examples/Shell<br>flash,%,libraries/USBHOST/examples/Shell<br>RAM for global variables,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>flash,%,libraries/WiFi/examples/PortentaWiFiFirmwareUpdater<br>RAM for global variables,%,libraries/PDM/examples/PDMSerialPlotter<br>flash,%,libraries/PDM/examples/PDMSerialPlotter<br>RAM for global variables,%arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed:nano33ble,0,0.0,0,0.0,,,,,,,,,,,,,,,,,,,,,,,,,0,0.0,0,0.0,,,,,,,,,,,,,0,0.0,0,0.0

@facchinmfacchinm merged commit66f1f03 intoarduino:masterFeb 23, 2021
@sebromerosebromero deleted the camera-example branchFebruary 24, 2021 08:43
@gargoyle777
Copy link

i'm still having the exact same problem. i'm using the last released exemple by the way.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@facchinmfacchinmfacchinm approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@sebromero@iabdalkader@gargoyle777@facchinm

[8]ページ先頭

©2009-2025 Movatter.jp