Writing wifi device driver for smartphones - android

Do I need to write a separate d.d for every smartphone working on Android?
Do I need to write a separate d.d for iPhone 4s and iPhone 4?

I shouldn't think so - they are all pretty standard - just do some QA on 3 different handsets. I know for a fact that Samsung has a unique driver for bluetooth, but I have not seen a difference on any device's wifi.
Samsung Galaxy bluetooth drivers
Are your devices not connecting to your computer? You should only have to write the driver if your device has wifi, but cannot connect to your computer, in which case you should search for them online first.

Related

How to use SpaceDesk over a Wired Connection?

I have a Samsung Galaxy Tab A 10.1" that I want to use as a second monitor with my PC. Spacedesk works great for my needs so long as I'm on a network with lots of bandwidth -- but more frequently I want to use second-monitor functionality in other environments, e.g. at a coffee shop, where the number of users bogs down network traffic and makes Spacedesk unacceptably slow.
Spacedesk doesn't natively support a wired connection, but for those who want one they suggest using USB tethering, presumably so both devices are on the same network. Problem is, my tablet is the Wifi-only version, so USB tethering isn't enabled. I rooted the device and used adb to run the commands enabling USB tethering as an option. It didn't take - the option never appeared under Settings / Connections. Then I installed ClockworkMod Tether as a 3rd party usb tether app. The PC tether software said it connected successfully to the tablet, but Spacedesk couldn't connect. Next I tried "gnirehtet", a reverse-tethering app. Got it working fine, but again Spacedesk on the tablet couldn't find the Spacedesk server on the PC.
How can I get both devices to be on the same network, without an intermediate connection (e.g. a router), in a way that preserves my PC's ability to connect to wifi, and that will allow Spacedesk to connect?
Turns out there's this thing called "Mobile Hotspot". Of course I couldn't use this on my tablet, as it had been disabled (thanks Samsung). But you can set it up on Windows easily -- in Windows 10 it's under Settings / Network & Internet / Mobile Hotspot. Connect your tablet to that hotspot and Spacedesk works like a charm.
Huge thanks to SpaceDesk customer support, who were extremely helpful in troubleshooting this apparently rather unusual situation. 5 stars both for the product, which I can now use anywhere, and the customer service.
Wifi tethering is possible with the tab A but only on android versions 6.x and below. it can be turned on via usb tethering enabling apps found in the app store that take you to the options in the settings of your device, these options appear to just be hidden in versions lower than 7 but removed in android 7 for whatever reason as the same apps just take you to an empty screen when used with 7.
If you have already upgraded to android 7.0 or above, and having spacedesk work with minimal lag is important to you, then I suggest you roll back youre tablet android version using Odin. This is what I've had to do after updating my tablet today (google it, there's plenty of guides out there)
TBH spacedesk is just poop over wifi. With USB you can watch video no problem
I tried the advice suggested here of using the mobile hotspot on my Windows 10 PC and used an old android tablet to create the extended screen to my PC using the suggested SpaceDesk app and it worked great! The download for Spacedesk for your Windows 10 PC is at https://spacedesk.net/ and the android app is in on the Google Playstore. Give it a try; it worked great for me.
I was connected to the internet over the LAN on my WIFI so I had difficulty in connecting the tablet (Samsung Galaxy Tab 3) over USB. My solution to this problem is disconnect your Laptop from the WIFI router from LAN cable as well as WIFI and use the tether option in tablet and connect it to the laptop and now it will work. Now for using the inter connect your Wi-Fi or LAN cable after this.
I tested the #Twiffy solution "Windows 10 hotspot" and worked for me. I disabled the tablet (Galaxy Tab A7) WiFi and the lag ended.

Best way to connect a Microchip card to Android Tablet

I used Anothem's guide to USB-connect an android tablet to Windows with ADB. Now I need to move forward to the next step and connect a microchip card to the tablet.
I got these 2 cards for USB testing purposes:
1. Microcip FS USB
2. Microcip PIC24F Accessory Development Starter Kit for Android
I can connect them to the computer and test leds, switches etc., however when it comes to android tablet things don't go smooth. When I connect card number 2, tablet notices that some USB is plugged in but the software provided by Microchip don't recognize the drive so it fails. When I connect number 1 (FS USB), nothing happens. It should be related to power, even though I'm using an external power source for FS USB.
Anyway, my question is: what is the "best (safest)" way to connect an electronic card to an Android Tablet. As far as I know, there are 3 options:
1. USB: There are library and compatibility issues
2. Bluetooth: Need external Bluetooth adapters for both card and tablet
3. WiFi (Direct): Probably need to buy an expensive tablet with WiFi direct also a WiFi adapter on card
Can you tell me the safest way to connect a card to a tablet?
USB:
+ Can test via emulator
+ Cable is always safer than wireless
+ Faster
- Need to stay within USB-cable range
- Library and compatibility issues
Bluetooth:
+ No wires
- Battery consumption
- Slow
- Had so many problems with android activity - service - client connections
So I'm gonna go with USB (for now)

Android tablet app send receive data from usb

I want to build an app for my android tablet that will receive and send data to two usb devices on different ports. Before I start I'd like to know if such thing is possible?
Absolutely possible.
I'm currently developing on a Toshiba Thrive for a USB data acquisition device, and I can route through a USB hub to access multiple devices.
You should make sure you are developing on a device that supports USB host mode (the galaxy is known to have usb issues, while the Toshiba Thrive does quite well with a full size USB type A port). I'd also recommend running honeycomb at least, ICS and JB are better. Yes, I know the API has been backported, but again, users have reported issues.

developing a special device communication app that connects through USB port on Android

I found the USB docs for Android and from there it seems as if one could write a communication program on an Android phone that works exactly like on a PC.
I have a normal USB-cable that normally connects between a PC and an external device. On one end it is a normal USB on the other end it has a special plug for the device.
If I get an USB female-female adapter I could connect my normal Android phone cable USB end to my device USB cable and so basically plug in my special USB cable into the Android phone.
Does anyone have experience doing USB communcation programming on Android - basically copying normal PC USB functionality? All I would have to do is sent and receive text strings over the USB port - just like on a PC.
Is this possible or is the USB port programming on Android limited in any way
and not really identical to USB programming on a PC? eg. power supply through USB or anything else?
ps on the PC I need to have a FTDI driver installed to work with the external device.
Many thanks
UPDATE:
it seems that starting with Android 3.1 it is possible to do this - however, if I understand htis correctly, Android 3.1 runs only on tablet Android devices - I might be wrong with this - compared to Apple this all this pretty confusing (however, with Apple iPhone it will never work! ;)
Yes, Android supports USB host on 3.1 and newer, so you can connect USB devices directly to an Android device using a converter cable. Android 4.0 brings this feature to handset devices.

Accessing other devices using Android tablets

I am looking for a way to communicate with a control-board (u can consider it a sensor device) using USB cable. My sensor device supports usb but I think android does not have a way for that.
Can that be possible through Bluetooth dongle?
Is there any Android device available which supports USB host.
USB host has been "hacked" into a lot of android phones, but it's not very user friendly and weird cabling is needed along with a power supply as the phone won't power a usb device.
Some of the "first generation" android tables apparently had USB host on some models.
I've seen pictures of a Xoom connected directly (via a short OTG cable) to a thumb drive that it appears to be powering and reading from, apparently it was unofficial software.
As for your other questions, yes, you can use bluetooth if you get a bluetooth modem for your embedded device. Or you can use wifi. Some of the phones have low voltage debug serial ports. Or you can build a modem / DTMF control interface to connect to the headphone jack...

Categories

Resources