Commit Graph
86 Commits
Author SHA1 Message Date
Collin Kidder ec6d716ae3 Fix up a crash that could happen if a gvret device was not connected when starting savvycan (when it was connected when savvycan closed) 2018-07-24 21:36:25 -04:00
Collin Kidder 2c8e9716a6 Added the ability for GVRET serial to try both normal mode and ESP32 mode.
This way it basically automatically detects the proper connection type to use
and uses that mode to connect. That allows both types to work transparent
to the user. They select GVRET and the serial port and away they go.
2018-07-22 19:28:51 -04:00
Collin Kidder f0e5433385 Increase the allowable number of missed keepalives. This seems to keep the
link stable for me now.
2018-07-02 21:01:49 -04:00
Collin Kidder fba31ab641 Add preliminary support for UDP connection to GVRET devices, fix TCP/IP connection so it is more tolerant of network latency and jitter. 2018-07-01 21:54:13 -04:00
Jackson Smith fca08a91a7 Fix silly mistake 2018-06-14 22:40:44 -04:00
Jackson Smith 22e1fe64d7 Fix Serial Ports with dots
Added bool passed to GVRETSerial to indicate when to use TCP,
rather than infering from port name.
2018-06-14 22:17:56 -04:00
Collin Kidder 412cba0463 Fix for bug recently introduced into SocketCAN handler that caused data bytes not to show up 2018-06-04 19:56:06 -04:00
Collin Kidder ff2b3e25cf Merge pull request #134 from FabianInostroza/fix_remote_frames
Make SavvyCAN aware of remote frames.
2018-06-03 10:59:09 -04:00
Collin Kidder e9b612cd29 Merge pull request #139 from FabianInostroza/fix_error_frames
Add accidentally removed line.
2018-06-03 10:54:51 -04:00
Fabián Inostroza 463cc4d64e Add accidentally removed line. 2018-06-01 21:28:55 -04:00
Fabián Inostroza dcce8a250f Register metatypes before loading and saving configuration. 2018-06-01 21:26:54 -04:00
Collin Kidder 996fec613f Merge pull request #135 from collin80/WIP
Merge over changes from WIP
2018-05-17 20:42:57 -04:00
Collin Kidder f345642b03 Fixes to gvret serial for use with TCP/IP connection 2018-05-17 20:41:19 -04:00
Collin Kidder 377a892f9d Merge branch 'master' into fix_remote_frames 2018-04-29 19:58:49 -04:00
Fabián Inostroza b8896d76b6 Make SavvyCAN aware of remote frames. 2018-04-29 18:52:31 -03:00
Fabián Inostroza be42eab0b8 Fix reception of error frames in socketcan interface. 2018-04-29 03:19:25 -03:00
Collin Kidder 827754aa1c Remove some changes that only applied in a very specific circumstance, remove prototype and non general purpose entries from menus (you won't miss them) 2018-04-23 20:28:12 -04:00
Collin Kidder 60abd15461 Added a mode for TCP/IP network connection to a GVRET compatible device (ESP32RET supports this) 2018-04-17 20:01:53 -04:00
Collin Kidder c380e172b0 Add UI elements for a new remote connection system. Just UI and settings for now. 2018-02-11 18:32:18 -05:00
Collin Kidder 9302c18c33 Integrated help into the system. Most all the sub-screens that are actually complete
and working have integrated help now. Press F1 to bring up help for a given window.
2017-11-30 21:02:16 -05:00
Collin Kidder d02ac7701f Merge branch 'master' of github.com:collin80/SavvyCAN into WIP 2017-11-26 16:48:14 -05:00
Collin Kidder c819459d19 Significant changes to GVRET code to make debugging easier and to make code more robust. 2017-11-26 16:41:10 -05:00
Andre Hartmann 55273a1b85 CanConnection: Convert switches to enumeration and add documentation
And add or remove default labels to silence Clang compiler warnings.
2017-11-26 18:00:28 +01:00
Andre Hartmann cfc024f98a CanConnectionModel: Remove superflous breaks after return
Clang complained about them.
2017-11-26 16:26:25 +01:00
Andre Hartmann d69947bf2f SerialBusConnection: Use member initialization
And as we have full C++11 support, so its also preferred to use nullptr.
2017-11-25 17:27:47 +01:00
Andre Hartmann 84cb598a0d SerialBusConnection: Improve connect/disconnect handling
* disconnectDevice() already checks mDev_p
* use the error description provided by QCanBus::createDevice()
2017-11-25 17:27:38 +01:00
Andre Hartmann 15aef1afbe SerialBusConnection: Order and condence includes
By practicing the following rules:
(4 and 5 are not needed here)

1. own header
2. project headers
3. Qt headers
4. operating system headers
5. compiler headers
2017-11-25 17:27:28 +01:00
Andre Hartmann 1dd59ed73c SocketCan: Rename to SerialBusConnection
QtCanBus is not limited to SocketCAN, it also supports various
Windows CAN adapters directly.

Also, add the term Connection to describe the inheritance
hierarchy better.
2017-11-25 17:27:19 +01:00
Andre Hartmann 560701e208 Untangle include forrest
Every change in connectionwindow.h led to a heavy project
compile, as the header was included in other headers.

Avoid this by using forward declarations and only include
connectionwindow.h in the C++ files that actually use it.
2017-11-25 17:27:08 +01:00
Collin Kidder 61443022a7 Merge branch 'master' of github.com:collin80/SavvyCAN into WIP 2017-11-21 19:52:41 -05:00
Collin Kidder 1ea9ea4fac Add fault handling code mostly used to detect when the serial port disappears while a GVRET style device is connected. Beginnings of code to add a reconnect button. 2017-11-20 22:07:13 -05:00
Collin Kidder 214f5defd8 Fix a compiling bug on windows (was a bug everywhere but only fatal on windows) 2017-11-10 01:23:15 -05:00
Collin Kidder c398856806 Small fix to make unconnected devices still show up properly in the connection window 2017-11-09 20:07:00 -05:00
Collin Kidder 545f258b8e Make sent frames have a timestamp resolution of microseconds just like incoming frames. Previously sent frame
time stamps were rounded to the nearest millisecond.

Note, however, that this time stamp is when we first tried to send the frame to hardware,
not when the hardware sent the frame. That will probably be later on but there's no way
to know for sure if/when it will send the frame.
2017-11-08 21:20:17 -05:00
Collin Kidder 3bf19fdbc4 Moved a lot of the frame playback window functionality to a new class. This allows the functionality to be run
on a separate thread. The performance is a lot better and "use original timing" is now reasonably accurate.
2017-11-08 20:38:19 -05:00
Collin Kidder bc4e823d3d CAN Connection Window mostly done now. 2017-10-23 19:45:08 -04:00
Collin Kidder 0519e2d2c9 More work on supporting swcan - it's there now! Untested as of yet. 2017-10-22 20:42:02 -04:00
Collin Kidder ac976643f4 Further work to get more buses working on the GVRET/M2RET devices 2017-10-22 20:15:18 -04:00
Collin Kidder 383ee8fe19 Big changes to connection window to make it more intuitive. Also
brings window closer to supporting M2RET devices better.
2017-10-18 21:48:13 -04:00
Andre Hartmann ee4a218a67 SocketCan: Correctly support CAN frames with extended identifier 2017-09-02 10:09:42 +02:00
Andre Hartmann 3f8e2bb5c3 SocketCan: Allow receiving CAN frames with empty data field
A CAN frame with data size zero is absolutely legal.
2017-09-02 10:09:42 +02:00
Andre Hartmann 74c7b0afc1 SocketCan: Fix compiler warning about missing break 2017-09-02 10:09:35 +02:00
Andre Hartmann c835f36fe9 SocketCan: Fix warnings about old style casts and sign changes 2017-09-02 10:08:01 +02:00
Collin Kidder 162d79fbe9 Lots of large changes to scripting support, changes to the way
filtering works with ISOTP/UDS messages, updated version number.
2017-08-22 21:42:30 -04:00
Collin Kidder 7c3fef54f9 Changed the way adding/removing targetted frames works. It's simpler
now.
2017-08-22 20:03:06 -04:00
Collin Kidder a109b7b22c Made connection window store window size/position. Tweaked teardown
code.
2017-08-21 20:29:08 -04:00
Collin Kidder 670fd56869 Comment out some qDebug messages because they caused too much traffic
and weren't really that useful in general
2017-08-17 20:09:22 -04:00
Collin Kidder 8830950f85 Addition of "System Time" mode where frames are timestamped by
absolute time from the PC clock.
2017-07-09 16:54:26 -04:00
Collin Kidder 439ac4fcc4 Update to V169 - Now compiles under QT 5.9 (LTS). Fixed some warnings,
switched to using system QTScintilla library on Linux. This prevents
you from needing to compile it yourself, added preliminary support for
three buses with a GVRET device (for Macchina M2 boards)
2017-07-06 21:30:55 -04:00
Collin Kidder 4cf2dd1435 Merge pull request #82 from AgnosticPope/master
Fix Compile/build on Ubuntu 14.04
2017-07-06 21:02:56 -04:00