osx - ORSSerialPort -- debug freezing in XCode -


I am writing an app that is a USB RS232 DB-9 serial dongle and prolific PL 2303 HX drivers (v. 1.5.) I'm connecting to a device @ 9600 baud, which has a 40-byte payload @ 10Hz Data typically changes every second; Inside my app I'm closing NSNotification with each updated data dictionary, at any point I do not send data to the data.

This is working well ... while trying to debug in XCode 5.0.2 under OS 10.9.1. If I stop at breakpoint for any time period (usually 3-5 seconds), then my USB keyboard & amp; The mouse is completely stable. Physically connecting and reconnecting does not help me in VNC for my machine and XCode is remotely released, at which point I get KB / mouse control back.

Checking the document on the USB dongle, it has a 256-byte I / O buffer. This is possibly full / overflow during debugging, which in some way causes the driver and / or exodus to freeze.

One solution I think is always my setup / read / ORSSerialPort on an optional thread , but I'm not sure that it will fix my debug problems.

Any idea how to reduce this problem?


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -