Go to Post Our robot weighed 168lbs..... bring it on Trimspa!!! - slickguy2007 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-11-2012, 14:25
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Android companion to driver station

Not sure if this is correctly filed, I am a labview guy and so don't frequent this part of the forum, please move if in the wrong place.

I am interested in writing a companion app for the driver station. Basically, from the programming perspective, I'd like to have all these extra buttons and read outs on the DS, but I don't really need them there all the time. I'd love it if there was a way to connect to android over USB, and run an app there to show the data.

My question is how should I go about connecting to the PC from the tablet using preferably only USB. I have seen examples of using ADB to port forward from the PC localhost and just talk TCP from the tablet to the PC, but I have to imagine that there is a more elegant solution. Any suggestions are appreciated.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #2   Spotlight this post!  
Unread 10-11-2012, 22:26
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Android companion to driver station

I'm curious how you envisioned this actually helping more then the laptop/driver station by itself. There is an effort to port the ds to Android, as a replacement.
I would think that sticking to tcp/ip for comms would be the most flexible. It would allow wifi as an option. (non competition for the wifi) I'm just finding it hard to imagine why this is useful in any way, as the laptop doesn't need to be held, has plenty of cpu power, and a big screen.

Sent from my AT100 Using ForumTouch for Android
Reply With Quote
  #3   Spotlight this post!  
Unread 11-11-2012, 15:40
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Android companion to driver station

The usefulness is besides the point. I am between projects at the moment and this one was in my folder of not entirely bad ideas. I thought about TCP, but I'd really rather use USB if at all possible.

Is there no good way to open a communications link between a PC and android over USB?
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #4   Spotlight this post!  
Unread 11-11-2012, 15:58
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Android companion to driver station

Quote:
Originally Posted by MAldridge View Post
Is there no good way to open a communications link between a PC and android over USB?
This might be a question to ask on XDA-developers

http://forum.xda-developers.com/forumdisplay.php?f=564
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #5   Spotlight this post!  
Unread 12-11-2012, 18:35
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Android companion to driver station

Quote:
Originally Posted by MAldridge View Post
The usefulness is besides the point. I am between projects at the moment and this one was in my folder of not entirely bad ideas. I thought about TCP, but I'd really rather use USB if at all possible.

Is there no good way to open a communications link between a PC and android over USB?
I was just very curious about your plan on how to actually use this.

In either case, adb creates a network connection via USB. Development/debugging is then routed through this. Apparently, both the phone and the computer receive IP addresses to use this new connection. This requires that the phone be set into USB debugging mode, and the appropriate drivers installed. It seams like someone else asked a similar question here:

stackoverflow...tcp-connection-from-phone-to-debugging-host

This is why I suggested choosing TCP/IP for your comms stack. It is then usable over this USB debugging connection, Ethernet, WiFi, etc. Good Luck. Keep us posted on your progress, I'm curious how you would use this.
__________________
Mike B
Reply With Quote
  #6   Spotlight this post!  
Unread 12-11-2012, 21:06
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Android companion to driver station

okay, so I should just code it to talk IP and then forward that port over USB? That sounds doable.

To be quite honest, I have no idea what I will use it for yet. I got a tablet for a birthday a while back and I am now looking at what can I connect it to. I'm thinking maybe something that is the equivalent of the netconsole...
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #7   Spotlight this post!  
Unread 13-11-2012, 21:32
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Android companion to driver station

I must apologise, for that I slightly misspoke. You need to enable USB tethering on your Android device for this network connection to be setup. (ADB does not play a role here, but can use it though) I was able to ping, and send simple communications over this connection.
__________________
Mike B
Reply With Quote
Reply


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 12:51.

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