Voha
6c24561ec4
* fix build error
2013-02-15 23:31:47 +01:00
Voha
8c5cded61a
OP-845: *fix code style
2013-02-15 23:31:47 +01:00
Voha
e4f98b31c6
fix code style
2013-02-15 23:31:47 +01:00
Voha
427bbd0a80
fixed reading serial number from USB device on mac platform
2013-02-15 23:31:46 +01:00
James Cotton
2488b48f50
Merge branch 'usb_fixes' into next
2012-09-11 10:18:45 -05:00
James Cotton
d74b9c9b9f
Revert changes from Kenn in pjrc_rawhid which conflict with usb cleanup
2012-09-11 10:18:31 -05:00
James Cotton
59dcbf5cb6
GCS OSX: More refinements to the USB code to make it more robust and work for reset/halt.
2012-09-10 02:04:59 -05:00
James Cotton
e027c25071
OSX USB: Add write and read mutexs to avoid closing mid write.
2012-09-10 00:32:40 -05:00
James Cotton
f8e5654ff4
Remove some comments
2012-09-09 23:45:04 -05:00
James Cotton
26ff40b5f3
GCS OSX: Work on how the receive threads are stopped properly
2012-09-09 23:43:38 -05:00
James Cotton
604e125251
GCS RawHID: Refactor the code to move most of the
...
functionality into one class. Removed support for
multiple open devices since we can just use multiple
classes.
2012-09-09 17:10:50 -05:00
James Cotton
741207ddc0
GCS OSX HID: Tweak the closing so that it doesn't crash. Still fails to unregister
...
the input callback.
2012-09-09 13:03:57 -05:00
James Cotton
06fc1ed963
GCS USB: More the opening and closing code into the read
...
thread to simplify some threading issues on OSX. Should
not influence other operating systems.
2012-09-09 11:04:52 -05:00
James Cotton
44d271ac79
GCS USB: Get rid of some unnecessary code
2012-09-08 20:04:44 -05:00
James Cotton
cf1c986550
OSX USB: Close more handles properly
2012-09-08 19:48:33 -05:00
James Cotton
1aadcf4e70
GCS USB: Make sure to fully unregister all the callbacks when disconnect.
2012-09-08 19:31:32 -05:00
James Cotton
9b7060a491
GCS USB: Increase the max timeout before giving up on stopping the USB threads.
2012-09-08 19:07:14 -05:00
James Cotton
2ec8434941
OSX USB: Make sure to store the run loop handle before connecting the signals that can use it.
2012-09-08 16:06:01 -05:00
James Cotton
e6bcf96e2a
GCS USB: Remove unused include file
2012-09-08 12:47:15 -05:00
Kenz Dale
0ff46af74c
Changes requested in review.
...
All cosmetic (removing comments or fixing whitespaces), so does not affect functionality.
2012-08-23 18:10:27 +02:00
Kenz Dale
9ebc32da3d
Eliminated several (dozen) compiler warnings.
...
Conflicts:
ground/openpilotgcs/src/plugins/config/configgadgetwidget.cpp
2012-08-23 18:03:17 +02:00
Laura Sebesta
a94142ec30
Fixed several compile warning complaints.
...
Conflicts:
ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/uavitem.cpp
2012-08-21 16:18:58 +01:00
PT_Dreamer
93f7494930
GCS/USB-Increase USB write timeout, this prevents
...
PipX from becoming disconnected to the GCS.
TODO:Handle timeouts in a better way
2012-07-09 14:39:17 +01:00
zedamota
5bc1a10774
Fixes the "halt" and "rescue" problems
2011-11-28 12:12:26 +00:00
zedamota
27de9fcb08
Some tweaks to detection and connection timings. Should fix some issues with "halt".
2011-11-26 00:06:45 +00:00
Edouard Lafargue
6514ea5262
Finally, a fix for the Mac UAVTalk issues: it was all caused by a wrong RunLoop pointer reference
...
because of multithreading.
2011-10-11 00:10:27 +02:00
Edouard Lafargue
de8478718c
Attempt to make USB faster on Mac. Breaks the Firmware upload system!!!
2011-10-05 00:38:56 +02:00
Edouard Lafargue
822cbfbc81
Fix MacOS halt issues by using the USBMonitor to detect device re-insertion:wq:
2011-09-25 15:28:08 +02:00
Peter Gunnarsson
76ee2c060c
OP-520 Change $$qtLibraryTarget to $$qtLibraryName
2011-08-04 15:17:08 +02:00
zedamota
fc7e7df863
OP-512 Remove some qDebug's
2011-05-31 15:41:05 +01:00
zedamota
1ffc0e3d56
Ground/OP-512- Autoconnect option, configured trough the options menu. Default is ON.
2011-05-31 15:29:53 +01:00
edouard
ae32af82b1
Bugfix: swapped ProductID in the USB constants!!
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3113 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-31 20:16:40 +00:00
zedamota
6bcacb1630
OP356/GCS - Makes the dropbox show devices "friendly name". Type of connection and previous serial number accessible via tooltip.
...
Kind of hacky, we should refractor connectionManager but that can wait for after V1.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3103 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-29 18:25:24 +00:00
peabody124
cdb521ac4a
OP-328: Use removal callback when device unplugged and also added mutexs to
...
protect the list of devices from race conditions.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3089 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-28 15:39:35 +00:00
edouard
1ef9eceac5
Lower amount of debug output in Linux USB Monitor.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3079 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-26 11:57:16 +00:00
edouard
9d0ce95b37
Attempt to fix GCS crashes on USB disconnect: please confirm on other operating systems it is still working fine in all situations.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3066 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-25 10:59:24 +00:00
peabody124
593ccfad7b
OP-334 USB HID now working again on mac
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3060 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-22 11:50:26 +00:00
edouard
11f7766ab4
Raw HID plugin: improve initialization in case another plugin wants to use the USBMonitor.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3049 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-20 15:55:02 +00:00
edouard
afb7aaf374
OP-334 : reverted opening method in RawHID plugin, as the new pjrc_rawhid class does not play nice with the USBMonitor system in case several devices with the same PID/VID are present on the system (such as two PipX for example)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3031 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-13 13:03:11 +00:00
zedamota
e1eaf4d132
OP GCS/HID - Now found the true problem, I just need to find an hungry French monkey now.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3024 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-11 18:52:44 +00:00
zedamota
162deda2ba
OP GCS/HID - Fixes a problem created with the conversion of the monitor class to singleton. I don't quite understand the problem so this is just a quick fix. Also changed PipXtreme gadget to use new PID.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3023 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-11 18:42:32 +00:00
edouard
cb95edaedc
Upate RawHID plugin to cope with the new PID/VIDs
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3021 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 18:55:06 +00:00
edouard
51a8a2d525
OP-334: Make the USBMonitor a singleton and export its symbols in the RawHID plugin, so that other plugins can use its instance(). Also implement a way
...
to ask for devices in bootloader or running mode.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3012 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 23:59:29 +00:00
edouard
6dcb9b2dcc
use constants in the rawhid plugin instead of hardcoded VID
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3004 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 22:16:50 +00:00
pip
69b930899c
Removed un-needed signals.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3002 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 22:06:57 +00:00
edouard
18a39c964e
Corrected several typos in the device detection code, improved Linux detection (more efficient).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3000 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 21:50:13 +00:00
edouard
c1546d818f
OP-328 Stub for MacOS support of USB Monitor.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2999 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 20:38:34 +00:00
edouard
61c8ea9185
OP-334 Now fill the bcdDevice and other fields (except HID page info) on Linux too.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2994 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 22:57:34 +00:00
zedamota
0eb0f4365a
OP GCS/HID - just added the Usage field to the USBPortInfo struct.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2977 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 15:58:17 +00:00
sambas
8fb82584b1
removed some redefined warnings in windows
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2976 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 13:51:29 +00:00