|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Comming soon: 2CAN Simple Analyzing Monitor
I have made a simple java application that retrieves the status from the 2CAN. This can be launched in place of or along side of the dashboard.
To run from command line: java <path to class file>twocansam [ip] [mode] - - - Where IP is the ip address of the 2CAN. - - - Where [mode] is the mode of monitoring Example: If the class is in a folder on the c drive called frc and the IP of the 2CAN is 10.99.99.10 with one Jaguar java c:\frc\twocansam 10.99.99.10 T Example Result 547 21.02 0.00 0.00 0.00 0.00 0.00 0.00 0.00 The line updates every 1 second NOTE The release for today will only show temperatures. I will add the other modes tonight and release tomorrow. Sunday I will add a gui so it can actually be seen with the dashboard. Please post a reply with problems and comments You can download on this page http://www.satanicspider.com/frc.php EDIT:: Haha don't mind the site, just something I was playing with a while ago! Last edited by drakesword : 15-04-2011 at 18:51. Reason: Fixed link |
|
#2
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Attached first version. Host is down again ...
|
|
#3
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Update:
Added preliminary gui Each jag appears in the window. The description (set on the 2CAN) VBus Vout Iout Firmware Version and active status is displayed If the program thinks the jag is alive the circle and subsequent text will appear in green to give a quick visual cue. Otherwise the alive circle and subsequent text will be red. --See image attached for overview --New zip file added with gui. Extract all files to same folder. Run it the same as before. Next Update: Automatic reconnection to 2CAN if it gets disconnected 2CAN Status below jag status Further update: Logging? Last edited by drakesword : 17-04-2011 at 13:45. |
|
#4
|
||||
|
||||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Nice!
I would recommend changing the green text to a darker color to improve contrast. |
|
#5
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Quote:
To launch it with your dashboard you need to go to users\public\public documents\. Make a backup of "frc ds data storage.ini" then change the cmd line to java c:\frc\twocansam 10.99.99.10 TVCB changing the variables to your needs. Also next update: Set monitoring to all for default if no parameters are passed Display faults Throw a flag if a fault occurs or if a jag disconnects |
|
#6
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Update 0.3:
Added - auto reconnect 2CAN status - in separate window (can be closed without stopping program) *FIXED* All text is now black and tho only color changing is the circles All monitoring enabled if no mode parameters are passed Displays Faults Fault indicator (Green if no fault has occurred. Red if it has.) Jag Communications Lost Indicator (Green if communication was constant, Red if it was lost) That's all for tonight. Will start cracking on logging tomorrow. Let me know if there are any features I should add. EDIT: JUST KIDDING. Got stuck in a tight spot today and had nothing better to do. Got logging running. Gotta test when I am back at the lab. Once tested I will release 0.4 Last edited by drakesword : 18-04-2011 at 00:41. |
|
#7
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
-------------------------------------------
Update ------------------------------------------- Added logging ---Data appears as bar graph. Blue is normal red is if a fault is detected ---The red line is the front of the log ---Windows are shown only when that particular logging is enabled ---Example if you put B in the mode a window will pop up with v-Bus logging ---NOTE VOLTAGE IS SET TO A 24V SCALE Added 2CAN Debug Window ---Enable it by adding a D in the mode parameter Fixed Bug where main page would need to be open in browser Fixed Bug where only logged data was being shown on the main window Next Update Menu to show/hide logging Pause/Resume logging Labels for scales Ability to save logs Last edited by drakesword : 18-04-2011 at 10:39. Reason: Updated software |
|
#8
|
||||
|
||||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Since this is Java-based, will it run under any OS with a JRE?
Also, I see three dots for each motor. What do those mean? |
|
#9
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Quote:
The left dot signifies if the jag is seen as active The middle dot signifies if a fault was detected (untested though) ---If at any point a fault is detected the dot will become and stay red the right dot signifies if communications have been constant ---If at any point communications appears to have been lost the dot will become and stay red |
|
#10
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
I could probably figure out how you're gathering the info from the 2CAN but ...
Any chance of getting the code? I have an android phone, the SDK, and some time between now and St. Louis and have been itching to write my first app. And this would be a cool app to have on my phone ![]() |
|
#11
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Quote:
It was simple reverse engineering and parsing info. I don't see the harm with releasing the info but let me check with crosstheroadelectronics first ok? |
|
#12
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Quote:
Once on debian and once on Ubuntu |
|
#13
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Version 0.6 is here and is a beta version
Updated: ---Fixed silly bug where any value between -9.99 and -0.01 would cause an exception to be thrown (values were read as - 9.99 not -9.99) ---Bundled everything into an executable jar file ---Added a batch file to start the program ---Modified the V-Out scale to show a negative throttle on the graph (note the scale will say 200 instead of 100 - will be fixed in the next release) Installation notes: Unpack the zip file into a folder Modify the driverstation storage ini file: ---open the file ---copy the cmd line --change to c:\frc\start.bat (or wherever you extracted the zip) ---Paste the command line into a new line on start.bat **Sorry folks i dont have access to our driver station so I cannot create the line for you. If someone is kind enough to do this and post their line it would be greatly appreciated** Other notes: Have not had time to add the logging rate modifier like I had promised. For those without broken promises under hardship may cast the first bit (either a 1 or a 0) |
|
#14
|
|||
|
|||
|
Re: Comming soon: 2CAN Simple Analyzing Monitor
Thanks for creating this! Our team used 2CAN for this first time this year and I think your software will be very handy for our programming subteam next year.
Trying to Help |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|