Debuggin/Deploying using the Tegra Visual Studio Plugin - M.O.J.O. General

Hi guys,
as the M.O.J.O. obviously lacks USB debugging, I was wondering if some of you where able to deploy/debug apps using NVidias Tegra plugin for Visual Studio.
Sadly the plugin seems to be using a internal adb instance, which you don't have access to. Apparently the internal adb instance only scans for USB devices and AFAIK there is currently no way to tell it to connect to a specific ip address
So either there has to be a way to tell the Tegra plugin to connect to tcp/ip devices OR to get somehow USB debugging working on the M.O.J.O using a USB A Male to A Male cable.
Help is highly appreciated.

Hi!
Have you tried ADB via WLAN?
Code:
adb connect xxx.xxx.xxx.xxx

Related

Non-rooted N1, can only run logcat from ADB?

Anyone know why "logcat" works when run via ADB but not when run from a local console (EG via connectbot)? I assumed they would use the same UID but in hindsight I'd guess that any android app that starts a shell would be running with the parent app's UID and ADB would provided a different UID again .
I'm trying to investigate what the N1 currently does with a powered (hacked together) USB OTG cable (say connected to a flash drive) I know the kernel doesn't currently support the host mode switch (or at lease it didn't when I was messing with my G1, don't know about 2.1 ) but I wanted to see if anything at all happened.
Anyone done any OTG experimentation of the N1?
I haven't done debugging yet, but I'm interested in your efforts. I'm looking to USB OTG support in an Android phone for MIDI sequencing purposes (record MIDI data on the phone from a USB powered MIDI device). Many people are saying that WiFi/Blutooth solutions are the way to go, but that requires the devices to be powered separately. USB OTG would solve the power problem and in the case of MIDI, solve the latency problem (not to mention that most devices are USB and don't have wifi/bluetooth support...so that would mean making an in-between widget to convert USB to wireless on the device side while powering it).

[Q] Can you hook the A7 directly to a PC?

I've seen little about this, but there are suggestions that you should be able to go USB A-A and connect this device to a PC. Has anyone tried? What experiences did you get?
Amazon's value pack (which i didn't get) comes with an A-A cable and mentions hooking to a PC, but that's nearly the only place I've come across that info.
Anyone?
Greenaar, what Amazon pack are you talking about? I could not find anything on their site about a kit that comes with the cable. I got mine from TigerDirect and that did not include a cable.
On another note, does anyone know how to debug an app on this device? Can it be done through the Bluetooth channel? WiFi maybe?
Thanks!
Pedronis said:
On another note, does anyone know how to debug an app on this device? Can it be done through the Bluetooth channel? WiFi maybe?
Thanks!
Click to expand...
Click to collapse
I can't get the emulator to boot the a7's kernel, but you can setup adb to listen over wifi.
There's instructions on a wiki here: http://elocitya7.wikispaces.com/
On the A7, open up a terminal and do:
Code:
su
setprop service.adb.tcp.port 2222
stop adbd
start adbd
On the host computer use:
Code:
adb connect 192.168.0.151:2222
About the OP's USB question, I'm not sure but I'd be cautious. The A7 supplies power out the USB port and so does the PC.
greenaar said:
I've seen little about this, but there are suggestions that you should be able to go USB A-A and connect this device to a PC. Has anyone tried? What experiences did you get?
Amazon's value pack (which i didn't get) comes with an A-A cable and mentions hooking to a PC, but that's nearly the only place I've come across that info.
Anyone?
Click to expand...
Click to collapse
Assuming that an A-A cable would allow me to connect my A7 to my PC, I went to Fry's assuming it'd be an easy purchase. They only had USB 3.0 A-A cables and those aren't bacwards compatible. Needless to say, I was forced to buy a large USB kit for about $20. Got home, plugged in various iteration of the A-A cables that came in the kit. Turns out you can't hook it up that way.
Other users have used Dexter's Ad-hoc patch to communicate between the A7 & a PC. There's another wifi app that allows you to communicate using a local network, but I forgot what its called.
tjc2k4 said:
I can't get the emulator to boot the a7's kernel, but you can setup adb to listen over wifi.
There's instructions on a wiki here: http elocitya7 dot wikispaces dot com
On the A7, open up a terminal and do:
Code:
su
setprop service.adb.tcp.port 2222
stop adbd
start adbd
On the host computer use:
Code:
adb connect 192.168.0.151:2222
Click to expand...
Click to collapse
Thanks! I will give that a shot...

[Q] Does the Nexus 7 have USB host mode?

Hi,
I was hoping I could post on the developer sub forum, but I have too little post, so I hope some of the devs can help me out.
I have in my possession a USB OTG cable, and I am able to connect it to a usb -> serial port, and send/receive data to and from a PC's hyperterminal. I am also able to send/receive data to and from one of my custom boards (something like arduino) that has a serial interface.
I've written my own program to perform this communication, but it is largely based on
- Slick USB 2 Serial
- USB Serial Monitor Lite
from the playstore.
Now, I am able to perform the above with my Samsung Galaxy S3, however, when I tried running my program, or anyone of the above programs (from the playstore) on one of the china branded tablets, which claimed to have USB host mode, it didn't work.
The tablet that I bought is ICOU7.
Now, I am desperately trying to get my program to run on a tablet, but I do not want to buy a tablet, and waste my money (which I already have with that china tablet) if it doesn't work, so can any of the devs out there, with a Nexus 7, confirm that the Nexus 7 is able to perform serial communication with PC/board through an OTG cable?
Do I need a specific OTG cable to do so?
I can't say for certain that it supports serial connections but it does have host mode. I've used keyboards/mice & flash drives without problem
Sent from my HTC One X using xda app-developers app
Depends on what you mean by "serial" device. If you mean CDC/ACM class usb device, then yes, nexus 7 can handle those, it creates /dev/ttyACMX like on desktop linux. This is only accessible if you have root, though. But, ACM devices are also supported by android USB Host API, which means you can write android app, which communicates with such device, and it does not require root.
Tasssadar said:
Depends on what you mean by "serial" device. If you mean CDC/ACM class usb device, then yes, nexus 7 can handle those, it creates /dev/ttyACMX like on desktop linux. This is only accessible if you have root, though. But, ACM devices are also supported by android USB Host API, which means you can write android app, which communicates with such device, and it does not require root.
Click to expand...
Click to collapse
How about for starters, I just wanna communicate with a PC's hyper terminal through its comport? Will Nexus 7 be able to do that?
bagofcrap24 said:
I can't say for certain that it supports serial connections but it does have host mode. I've used keyboards/mice & flash drives without problem
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
The china tablet I had was able to support mouse/keyboard too. But it was unable to establish a link to my PC's hyper terminal, which I was able to do with my unrooted Samsung S3

Usb port

Does mojo have a micro usb port for debugging mode/adb? Also what about official usb drivers for connecting to a windows PC?
Sent from my SM-N900V using XDA Premium 4 mobile app
It doesn't have a micro otg USB port. It has 2 full sized USB ports. a single USB 2.0 and single USB 3.0 port. I'm going to buy a full sized male to male USB cable and try to see if it will work with debugging/adb with that.
dheku-00 said:
It doesn't have a micro otg USB port. It has 2 full sized USB ports. a single USB 2.0 and single USB 3.0 port. I'm going to buy a full sized male to male USB cable and try to see if it will work with debugging/adb with that.
Click to expand...
Click to collapse
You don't need to use USB - connect to M.O.J.O. over the network instead.
(1) <PC> Download Android sdk from Android website
(2) <Mojo> connect ethernet or connect wifi to get a ip address xxx.xxx.xxx.xxx
(3)<Mojo> Settings -> About M.O.J.O. --> Build number ==> click 8 times, Developer options will appear in Settings
(4) <Mojo> Settings -> Enable USB debugging
(5) <PC> Execute in command line==> adb.exe connect xxx.xxx.xxx.xxx
(6) <PC> type adb shell logcat to get debug message
Okay, thank you! That works a lot better for my setup then stringing a usb cable across the room anyways.
alexp1289 said:
Does mojo have a micro usb port for debugging mode/adb? Also what about official usb drivers for connecting to a windows PC?
Sent from my SM-N900V using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It has a micro USB. Right under the hdmi input! So small you missed it!
It accepts up to 128gb cards, must be FAT 32 format.
I believe that is MicroSD above the HDMI.
ExtremeRyno said:
I believe that is MicroSD above the HDMI.
Click to expand...
Click to collapse
You are correct.
Mad Catz Rich said:
You don't need to use USB - connect to M.O.J.O. over the network instead.
(1) <PC> Download Android sdk from Android website
(2) <Mojo> connect ethernet or connect wifi to get a ip address xxx.xxx.xxx.xxx
(3)<Mojo> Settings -> About M.O.J.O. --> Build number ==> click 8 times, Developer options will appear in Settings
(4) <Mojo> Settings -> Enable USB debugging
(5) <PC> Execute in command line==> adb.exe connect xxx.xxx.xxx.xxx
(6) <PC> type adb shell logcat to get debug message
Click to expand...
Click to collapse
That's awesome! I was wondering were the dev options were.
Thanks for the info!
gwaldo said:
That's awesome! I was wondering were the dev options were.
Thanks for the info!
Click to expand...
Click to collapse
As a game dev, maybe you have an answer for me, LimeLight + Mojo ? Limelight is an apk being developed by the xda community in the shield forum, it allows pc games to be streamed to android (aside from shield)
jjprichards said:
As a game dev, maybe you have an answer for me, LimeLight + Mojo ? Limelight is an apk being developed by the xda community in the shield forum, it allows pc games to be streamed to android (aside from shield)
Click to expand...
Click to collapse
Hard to say, I don't see why it wouldn't... I'll have to download it, but don't have an NVIDIA PC card.
http://forum.xda-developers.com/showthread.php?t=2505510
Bought A/A USB Cable, but M.O.J.O wouldn't be recognized from PC, tried USB2 and USB3.
Over wireless ADB "adb shell logcat" and "adb reboot bootloader" is working, but loosing connection while reboot. Also no USB detection.
Anyone else played around a bit? I whish i could root it^^
saenta said:
Bought A/A USB Cable, but M.O.J.O wouldn't be recognized from PC, tried USB2 and USB3.
Over wireless ADB "adb shell logcat" and "adb reboot bootloader" is working, but loosing connection while reboot. Also no USB detection.
Anyone else played around a bit? I whish i could root it^^
Click to expand...
Click to collapse
That was expected, that ADB over USB don't work.
I have tried to "adb reboot boot loader", bot the device seems only to reboot to OS.
"adb reboot recovery" loads till the lying Droid with exclamation mark.
One thing, I tinker around is, what's the use of the microUSB port in the battery hole of the controller. Maybe we can use the connection to enter the recovery while booting ?
I have the M.O.J.O since today. I had many Androids (Smartphones/Tablets/TV-Boxes and Sticks and even an OUYA) but this device is from software side a holy overpriced piece of crap.
MAD CATZ, please "leak" some more informations to get root access and other basics. Bring the Play Store in a working condition. Even cheap chinese Androids have more APP access.
I've bought it to use it as a Mediacenter, XBMC is working and Watchever too, but to control the Box from my Smartphone or PC i need root, also to hide the buttons and use apps in fullscreen, for mediacenter its obligatory to have root...
hopefully Mad Catz itself will help us with it, looks like they give pretty good support.
saenta said:
I've bought it to use it as a Mediacenter, XBMC is working and Watchever too, but to control the Box from my Smartphone or PC i need root, also to hide the buttons and use apps in fullscreen, for mediacenter its obligatory to have root...
hopefully Mad Catz itself will help us with it, looks like they give pretty good support.
Click to expand...
Click to collapse
Try asking the live online support guy found on their website.
He's been super helpful for me thus far.
Mad Catz Rich said:
You don't need to use USB - connect to M.O.J.O. over the network instead.
(1) <PC> Download Android sdk from Android website
(2) <Mojo> connect ethernet or connect wifi to get a ip address xxx.xxx.xxx.xxx
(3)<Mojo> Settings -> About M.O.J.O. --> Build number ==> click 8 times, Developer options will appear in Settings
(4) <Mojo> Settings -> Enable USB debugging
(5) <PC> Execute in command line==> adb.exe connect xxx.xxx.xxx.xxx
(6) <PC> type adb shell logcat to get debug message
Click to expand...
Click to collapse
Hi,
Do you know how to connect via adb while the mojo is in fastboot or from the recovery option "apply update from ADB"?
I've tried using USB & eth0 and both not working.. is there a trick to it?
saenta said:
Bought A/A USB Cable, but M.O.J.O wouldn't be recognized from PC, tried USB2 and USB3.
Over wireless ADB "adb shell logcat" and "adb reboot bootloader" is working, but loosing connection while reboot. Also no USB detection.
Anyone else played around a bit? I whish i could root it^^
Click to expand...
Click to collapse
Theirs another method to rooting that doesn't require the male to male cable
Geohot released an app called towelroot v1 which roots it for u just run the app on the mojo and click a few buttons.
Proceed to towelroot.com on the mojo web browser and click the image on the right side of the screen that looks like an upside down y this will download the app to the mojo proceed to install and click the big button in the centre, you now are rooted my friend
I can't remember how it took ages I had massive issues with the male to male method initially. Had to mess around with some terminal commands before my PC would recognise the mojo. but it was so long ago now I can't remember them.
Edit: Just saw how old OP was imagine hes rooted by now

USB Detect - Very Confused

Hi, I've been reading, re-reading and reading the Android SDK docs about USB connection.
I have developed and application which is quite useful however, after many days and hours of research I cannot for the life of me figure out how to detect:
When my handheld device is attached to any device (macbook, PC, laptop)
Communicate between connected device and handheld using USB
Detect keystrokes on connected device - when I type on the, for example, laptop which my handheld is connected to using USB I'd like to detect when I type on my laptop
Detect any other events such as opening of a browser, application or whatever on connected device using USB
I don't know the vendor information of device what the handheld will be connected to using a USB cable.
Can anyone point me in the right direction, I'm not asking for a solution more a tips, hints and maybe someone knows a library which already handles what I need to solve?
Many thanks in advance.
Detect Connected Laptop/Desktop Events USB
*edit* What I need is a way to find detect keyboard strokes from the device connected to my Android smartphone.
Is it possible to detect whether the handheld is connected to a desktop/laptop and using USB detect the events on the laptop/desktop?
It's looking impossible at the moment. I have spent quite a few days just figuring it out and have got no where.
Thanks in advance.
chronograff said:
Hi, I've been reading, re-reading and reading the Android SDK docs about USB connection.
I have developed and application which is quite useful however, after many days and hours of research I cannot for the life of me figure out how to detect:
When my handheld device is attached to any device (macbook, PC, laptop)
Communicate between connected device and handheld using USB
Detect keystrokes on connected device - when I type on the, for example, laptop which my handheld is connected to using USB I'd like to detect when I type on my laptop
Detect any other events such as opening of a browser, application or whatever on connected device using USB
I don't know the vendor information of device what the handheld will be connected to using a USB cable.
Can anyone point me in the right direction, I'm not asking for a solution more a tips, hints and maybe someone knows a library which already handles what I need to solve?
Many thanks in advance.
Click to expand...
Click to collapse

Categories

Resources