KingLuxor Posted May 15, 2016 Share Posted May 15, 2016 I've developed a simple tool for testing/debugging custom display/controllers which use the KSPSerialIO mod by @zitronen This allows you to monitor controls from the Arduino, as well as send control values to the Arduino. Reloading KSP multiple times, and the lack of real time onscreen data make this tool a bit more efficient in finding what isn't working. It also allows you to test/play with your display or controller without loading KSP. The project is open source and can be found on my github at https://github.com/bolwire/KSPSerialIODebugTool Thoughts ? Ideas ? Found a bug ? Please reply to this thread. Once things smooth out I will add a link in the application to the Report Issue feature on github, as well as this thread. Currently this only runs on windows, and you must build it from the source. Quote Link to comment Share on other sites More sharing options...
Freshmeat Posted May 15, 2016 Share Posted May 15, 2016 This is going to be so useful. Thanks a lot. Quote Link to comment Share on other sites More sharing options...
richfiles Posted May 15, 2016 Share Posted May 15, 2016 Here's to hoping someone can compile a version of this to run on Macs! This looks INCREDIBLY useful! Quote Link to comment Share on other sites More sharing options...
zitronen Posted May 15, 2016 Share Posted May 15, 2016 That's amazing! I hope you can keep this updated as we add more stuff to the packet. Quote Link to comment Share on other sites More sharing options...
Mattew Posted May 30, 2016 Share Posted May 30, 2016 (edited) Wau, this thing. Amazing piece of work! It ll be very helpful. That makes my Kerbals happy. EDIT: I found kind of issue or bug if you want call it like that. Your pluggin/debug program expect that arduino serial port is running at default baud rate setting (38400) and if you change that to any other value (like i did, I am running at 57600) then debug program cant establish connection and wont find control panel. I tryed to change my code to use 38400 and then it connects no problem at all. It is something to look at maybe, have option to select baud rate would be nice EDIT2: I just found config file for build. I did changes and now it works with 57600 also. Still would be nice to have way ti change it without need rebuild program Edited May 30, 2016 by Mattew Bug repport added Quote Link to comment Share on other sites More sharing options...
KingLuxor Posted August 24, 2016 Author Share Posted August 24, 2016 I've been in class for work for a while, I'll try to take a look and add an option to change the baud rate when I get a bit of time. Quote Link to comment Share on other sites More sharing options...
Sputnix Posted October 12, 2016 Share Posted October 12, 2016 Do we know if this will work with 1.2? ( ) Quote Link to comment Share on other sites More sharing options...
ryan00793 Posted October 22, 2016 Share Posted October 22, 2016 (edited) @KingLuxor I found a bug, just posting here incase you have github notifications turned off. The bug is basically that you hard coded the refresh rate into the timer at half a second. In the issue on github you can find a fix for the code (only one line so I didn't make a pull request). Link to github issue I've made a PR for the fix the next update of serialIO. (turns out that you can't just make a PR and then push a change to your own fork with out it getting included into the PR) Edited October 22, 2016 by ryan00793 Quote Link to comment Share on other sites More sharing options...
Mattew Posted December 9, 2016 Share Posted December 9, 2016 Will be this awesome tool ever updated? That would be cool. I did try to fix it by myself but no luck Quote Link to comment Share on other sites More sharing options...
moeburn Posted June 27, 2017 Share Posted June 27, 2017 Does anyone have a precompiled EXE of this? I can't install Visual Studio on my PC. Quote Link to comment Share on other sites More sharing options...
moeburn Posted June 27, 2017 Share Posted June 27, 2017 (edited) Well I finally got VS installed and managed to build an EXE out of it. But it doesn't seem to work like KSP does - it handshakes, connects, then immediately disconnects. It also doesn't seem to send any of the data. Does this not work with the latest version? Edited June 27, 2017 by moeburn Quote Link to comment Share on other sites More sharing options...
stibbons Posted June 28, 2017 Share Posted June 28, 2017 (edited) If it's from May then it almost certainly won't work. There's been a couple of additions to the VesselData packet the plugin sends to devices since then. That means after handshaking this tool will send packets that your newer arduino sketch won't be able to decode properly, and it will disconnect. At a bare minimum, you'll want to update the KSPSerialIO.cs file in this tool's source repository, and ensure the VesselData struct within it contains the same fields as the VesselData struct listed in the first post of the KSPSerialIO thread. You'll immediately notice that this tool only has the first 52 fields, whereas there are currently 55. After that, it's probably worthwhile to add them to the user interface some how so that they can be modified/tested like the other fields, but that's getting well out of scope of what I know about this tool. Edited June 28, 2017 by stibbons Quote Link to comment Share on other sites More sharing options...
Jimbofarrar Posted November 11, 2019 Share Posted November 11, 2019 (edited) Hi everyone I was using this tool when i started to make my own controller. I let it in stand by for a long time (i moved twice and started to run a business) and recently i found a solution to bring back the Zitronen plugin to life with win10. This tool is very usefull to try and debug code, so i forked this tool to make it compliant with the version 0.19.1 of the Zitronen plugin, essentially in updating the VesselData packet, added controls for SAS, navball mode, liquid fuel and oxidizer total and current stage and "vectors" It is still open source and can be found on GitHub : https://github.com/Jimbo-Farrar/KSPSerialIODebugTool (there is a executable version in the directory bin/Release/) Edited November 11, 2019 by Jimbofarrar added infos Quote Link to comment Share on other sites More sharing options...
nenico87 Posted February 22, 2021 Share Posted February 22, 2021 On 11/11/2019 at 8:19 PM, Jimbofarrar said: Hi everyone I was using this tool when i started to make my own controller. I let it in stand by for a long time (i moved twice and started to run a business) and recently i found a solution to bring back the Zitronen plugin to life with win10. This tool is very usefull to try and debug code, so i forked this tool to make it compliant with the version 0.19.1 of the Zitronen plugin, essentially in updating the VesselData packet, added controls for SAS, navball mode, liquid fuel and oxidizer total and current stage and "vectors" It is still open source and can be found on GitHub : https://github.com/Jimbo-Farrar/KSPSerialIODebugTool (there is a executable version in the directory bin/Release/) I was expecting some guidance to packet format that i type/paste in serial monitor but i got thing with GUI? That is better that i hoped for! Quote Link to comment Share on other sites More sharing options...
scooter6295 Posted 10 hours ago Share Posted 10 hours ago Does anyone know if KSPSerialIODebugTool is still downloadable somewhere? Both repos mentioned here do not have anything under "releases". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.