Go to Post Dance Dance Revolution is the only solution. That rhymed. I should not be on chief at this hour of the morning. >_< - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-11-2011, 09:16
linuxboy linuxboy is offline
Registered User
AKA: Oliver Graff
FRC #3780
Team Role: Alumni
 
Join Date: Nov 2010
Rookie Year: 2009
Location: MI, USA
Posts: 217
linuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud oflinuxboy has much to be proud of
Developing an iOS based FRC network monitoring tool

Hi All,
Recently I've been working on doing more iOS/Mac development, particularly related to how I can use it for FRC. My first real iOS project is going to be an app that helps monitor / troubleshoot a network used for FRC robotics. This app is somewhat inspired by the Field Monitor used at events, however since the Driver Station protocol is proprietary I do not think I will be able to test robot state or voltage without custom code being added to the robot. Do you guys think that the app should ask the user to add code to the robot to monitor enabled state and battery voltage?

Here are my current plans for it:
Monitor ping connectivity to robot as well as average ping time and dropped packet counts
Monitor ping connectivity to the robot bridge. This will not monitor ping time or dropped pings
Monitor ping connectivity to the driver station as well as average ping time and dropped packet counts
Monitor ping connectivity to the camera and display a live feed of the camera if the password is set properly, if not, it will alert the user that the password is wrong.

I plan to release this app on the appstore as soon as I'm done with it. I only have an iPad to test on so that is what it will be released for at first, but I will try to make an iPhone version as well.

This thread is going to be updated while I'm developing with progress, screenshots, and requests for advice. If anyone has any feature requests or other comments please post them. If you are interested in taking a look at the source PM me.

So now for the progress update:
I currently have a working system for pinging things, however it does not yet count the lost packets or keep track of the average ping time.
I think I will increment a counter every time a packet is sent and decrement it every time one is received for dropped packet counting.
My plan for tracking average ping time is multi part. First of all we need to get the time for each ping. The way I'm going to track that is when a packet is sent I will add an entry to a dictionary with the key being the ICMP seq number, and the value being the date object when the ping was sent. When a packet is received it the corresponding date will be retrieved and the difference will be added to a variable, and a number of received packets counter will be incremented. The average will be taken on demand.
My plan for the Camera is to use the Axis camera API to grab a new JPG every 1/30 of a second (if I can) and display that.

Attached is a screenshot of what I've got so far.

Let me know what you think,
Oliver
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2011.11.23 08.34.37.png
Views:	61
Size:	33.4 KB
ID:	11117  
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi