IDE on mac

General discussion about topics related to OpenMV.
DaddyOh
Posts: 12
Joined: Wed Jun 14, 2017 4:03 pm

IDE on mac

Postby DaddyOh » Sat Jul 08, 2017 4:02 pm

I was working on a win8 laptop with a image (blob) tracking system using pan tilt servos. I'm working on adding better control of the tracking. I'm more of a mac person and the mac screen is bigger. Also I check inspect the code using PyCharm. So I loaded the IDE on my mac and connected the usb cable.

The HelloWorld program runs and the FPS is ~ 34
The snapshot program works fine.

My program does not.
The green run triangle stays green for a few seconds and then the IDE disconnects. I added a print statement to the top of the program and it never runs. Just wondering what might some things for me to check. A visual inspection of the code seems to indicate that the code is okay.

Thanks in advance for help.
DaddyOh
Posts: 12
Joined: Wed Jun 14, 2017 4:03 pm

Re: IDE on mac

Postby DaddyOh » Sat Jul 08, 2017 4:15 pm

So I commented out everything but the imports and added a print statement

Code: Select all

import gc
import pyb
import sensor
import time

print("test")
It still has the same behavior. I'm thinking it is a line ending problem or something. I'm still researching this.
User avatar
kwagyeman
Posts: 2198
Joined: Sun May 24, 2015 2:10 pm

Re: IDE on mac

Postby kwagyeman » Sat Jul 08, 2017 5:59 pm

Hi, I think this is an issue with how the USB serial stack works. From another user I know the OS drops received bytes. To fix this I'm going to have the IDE learn the path MTU by sending larger and larger fake packets until the OS drops bytes. This will be in the next IDE release. Until then, please avoid using the IDE on a system with this problem.

(The OS drops bytes because we're sending USB data over a connection that's controlled by a USB CDC driver. Some drivers assume you can't send bytes at 12 Mbps but at much lower 115200 speeds so their internal buffers in the kernel aren't large enough to handle a lot of data the OpenMV Cam sends).
Nyamekye,
DaddyOh
Posts: 12
Joined: Wed Jun 14, 2017 4:03 pm

Re: IDE on mac

Postby DaddyOh » Sun Jul 09, 2017 6:05 am

Nyamekye,

Thanks. I am looking forward to being able to use my mac in the future.

Eric
User avatar
kwagyeman
Posts: 2198
Joined: Sun May 24, 2015 2:10 pm

Re: IDE on mac

Postby kwagyeman » Sat Jul 22, 2017 7:30 pm

Hi, can you try this version of the IDE for mac out? http://upload.openmv.io/openmv-ide-mac- ... -1.7.0.dmg

Flash your OpenMV Cam M7 with this firmware (attached).
Attachments
firmware.zip
(1006.01 KiB) Downloaded 75 times
Nyamekye,
User avatar
kwagyeman
Posts: 2198
Joined: Sun May 24, 2015 2:10 pm

Re: IDE on mac

Postby kwagyeman » Mon Aug 07, 2017 1:42 am

Can you please try the Mac fix out and let me know...
Nyamekye,
User avatar
kwagyeman
Posts: 2198
Joined: Sun May 24, 2015 2:10 pm

Re: IDE on mac

Postby kwagyeman » Mon Aug 07, 2017 1:42 am

Can you please try the Mac fix out and let me know...
Nyamekye,
clod
Posts: 1
Joined: Wed Jan 03, 2018 7:22 am

Re: IDE on mac

Postby clod » Wed Jan 03, 2018 7:24 am

My choice is Codelobster IDE

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 3 guests