MirrorLink and ADB in parallel - usb

Is it possible to use MirrorLink and Android Debug Bridge in parallel?
I'm working on a third party MirrorLink application and want to debug it with ADB/logcat.
Actually I've tried to use ADB over wifi and it works very good. But when I started the MirrorLink session, the connection got lost and couldn't be established again until the MirrorLink session was over.

We actually use the ADB when testing some ML devices, but I don't think we actually use it while in in an active MirrorLink session. There is nothing explicitly preventing it within MirrorLink that prevents it - but there may be some interaction vai UPnP or the MirrorLink attestation mechanism.
I've talked to some of the ML server (phone) device makers about this. You should be able to run ADB during a ML session via the WiFi connection. You have to do some work to enable ADB over wifi, but there is a handy guide on doing so here: https://developer.android.com/guide/topics/connectivity/usb/index.html

ADB and MirrorLink use different USB drivers and application software stacks. The capability is depends on the design of host and device side in terms of USB role. Some of the devices can run more than one driver and application at a time. However, some of them are limited to run one and exclusive from other drivers.
You may try use the method from the answer provided by Ed P. ADB forward through Wi-Fi is an alternative.

Related

Why is running on android device using adb recommended?

The docs provides 2 methods on how to connect to development server: using adb reverse and via wifi. It also says the former is recommended.
Is there a reason why (aside from maybe being easier to setup)? Just curious if there's any disadvantage to connecting via wifi, which I prefer.
There's no disadvantage to using WiFi. Go for it. I think they recommended only because it's easier to set up, so they get less questions about it.

How to reverse-engineer a USB device without monitoring traffic?

How is it possible to determine the commands to operate a usb device, if that device comes from another operating system and traffic monitoring software cannot be installed on that OS. The only method i can think of is sending random commands to the device, until the device responds, but this seems implausible for more complex commands, and potentially dangerous. For example, consider the DualShock 4 controller. Sony has not made an official driver for this device, so what method can i use to create a linux driver for it?
Get a hardware protocol analyzer. Then you won't need to install any software on the host or device under test. Here is one that I have used:
http://www.totalphase.com/products/beagle-usb12/

adb ppp over usb whitout tethering and rooting

I'm developing a client/server app for my Android phone (server side is Java based), and what I need now is an UDP connection over USB.
I tried adb forward, but it give me only TCP protocol with ridiculous latency (6~800ms), so I need UDP.
I found adb ppp command, but I'm not able to get it working on my Linux machine (updated Debian). I tried tons of examples found looking for adb ppp connection like
adb ppp "shell:pppd nodetach noauth noipdefault /dev/tty" nodetach noauth noipdefault notty 192.168.254.2:192.168.254.1
no lucky.
So, how can I give UDP power to my app?? There is some possibility without Android tether and root permission both side (Android and desktop)? I'm not interested in internet, BT or WiFi solutions. Even because Android tether request me desktop root permission to keep adb working, and I need TCP forward too.
Thank for help
The solution to your problem might be the USB Tethering. Go to the Settings then Wireless then Tethering & portable hotspot. after that turn on the USB Tethering. This option only shows when USB cable is plugged in your device and its connected to your notebook. Recent android versions place this option in Settings -> Tethering & portable hotspot..

Android tablet pc with a Nokia phone 3G data connection

This is technical question to check the possibilities of the scenario. Is it possible to use Nokia phone's (Lumia, N9, symbain phone, S40) 3G data connection with a Android tablet pc?
Or any way to use phone's 3G data connection with tablet pc?
I have a unlimited data connection for my phone. But I don't use it that much. So I'm planning to use it with the tablet pc.
yep its possible easily if :
1. your tab is rooted
2. your tab supports usb host mode or otg mode (you could either check it on net or download usb host diagnostics) (just click start diagnostic)
procedure
Downoad ppp widget
configure your apn according to pc suite settings
then plug in your phone via usb on nokia pc suite mode
now wait 10s and click connect
you are now done
(pls switch your wifi off as ppp widget creates virual wifi for your tab)
any inquiries contsct rld0989#gmail.com (don't be rest less I only check my gmail once a day)
Yes, it's possible to use your phone as a modem, connected to the tablet via a USB cable, as long as you have
(1) an APN from your network operator to make a data connection via their network, and
(2) suitable device drivers for the phone. On Windows, smartphones are plug and play, but I don't have any experience using them with Android.
On the tablet, you also need some software to control the modem - something like the Mobile Broadband Connect 3.0 application listed on here
You can write a simple connection app yourself using the Android Telephony Manager.
Alternatively, you could connect manually, using AT commands with a suitable AT command program (in Windows, it would be Hyperterminal). This thread describes a possible equivalent for Android.
Standard AT commands to make a data connection are described in the 3gpp TS27.007 specification.
There are a lot of variations for different manufacturers, but making a simple connect should be possible using the standard commands.

GPRS on iPhone Simulator

I want to activate/enable GPRS on the iPhone programmatically. What are the APIs I can look into? There is no "Network" option in the settings application on the simulator so do I need to test out the application on the device itself?
Using the SDK, you can't "activate" any sort of network access. Simply try to connect to the remote server.
If the device can connect, it will. If it cannot, you need to detect this and display a warning to the user.
Apple's sample code has plenty of examples on how to detect if a network is active.
The Simulator always connects through the host Mac's internet connection. If you are asking how to test GPRS performance on the simulator then you should buy a USB GPRS radio and test rhrough that. You could also use the built in ipfw to throttle network bandwidth to the simulator and simulate GPRS bandwidth (note that latency would still be that of your hows connection). Throttled provides an easier UI than bare ipfw: http://www.intrarts.com/throttled.html
As August says, you can't switch the network on and off from code however, you can test the connection and suggest the user goes and switches on the connection.
There is good sample code from Apple for testing the connection availability and type: http://developer.apple.com/iphone/library/samplecode/Reachability/index.html