[Q] Receive USB Device Input - General Questions and Answers

I am developing an application in Android 3.0
I have plugged a barcode scanner into my Acer a501 Tablet and it works sweet. If I select an EditText box, scan an item, the barcode ID shows up inside that box, just a like a keyboard input.
However, I have a slightly more complicated use. I do not want to print the barcode ID into a EditText box but capture the data and store it into a variable anytime the barcode scanner scans something.
How do I directly connect to the USB device? Is there a listening function so as soon as the barcode scanner scans something I can capture the results?
I really appreciate the support!

Related

SDIO In-Hand Scan Card for barcode scanning

Has anyone had experience with using Socket SDIO barcode scanner with iMate/XDA2?
I've got the scanner working and it does scan in my application but have the problem that when the device powers off/goes to sleep, when I turn the imate back on the scanner doesn't work.
Restarting my application (the initialise scanner code is in the startup code) doesn't fix the problem, and neither does removing and re-inserting the scanner in the socket. The only way to get the scanner working again is to reset the device.
Has anyone found a way around this?
Thanks
Debbie

pairing Dock with Computer

Any idea how the dock closes itself for non-nexus ones?
mac address filter? secret handshake?
anyone managed to scan it yet?
*edit*
just ocurred to me that the dock might enter Visible mode only during pairing. so i removed the pairing on the phone. put it into the dock, and voila. the dock is visible for a short while. i could get this info:
$ hcitool scan --class --info
Scanning ...
BD Address: 00:17:53:16:3X:XX [mode 1, clkoffset 0x5d50]
Device name: Nexus One Desk Dock
Device class: Audio/Video, Hands-free (0x240408)
BD Address: 00:23:76:E5:0X:XX [mode 1, clkoffset 0x40f6]
Device name: gcb-n1 [cached]
Device class: Phone, Smart phone (0x58020c)
Maybe now i can start to simulate the nexus one on the computer ...if it's just a case of simple mac address filtering. If it's secret handshake than i'm screwed.
Any luck with this?
I'm trying to figure out how to initiate pairing from Mac OS X.
update
looking at the source code, the dock pairs with it using the onewire talk via the 3rd metal connector.
damn idiotic 'solutions' for problems that doesn't exist!

Bluetooth Scanner

I have a Symbol DS3578 Bluetooth Scanner that I am trying to pair to a Xoom tablet. I can get it to find the scanner, but when it asks for the PIN number, it doesn't take anything I put in. I have tried defaults of 0000 and 1234 and neither of these work. I have 10 tablets (running 3.2.1 and 4.0.3) and all of them do the same thing. Any help would be greatly appreciated.
Or if you have done this before with another rugged scanner, which one did you use?
Thank you,
C.Durbin

[Q] Looking for a device...

What's up all.
So here's my thought... Is there a device out there to plug into a TV's HDMI port that will let me send video files wirelessly to it from my phone/computer so that I can watch the videos on the big screen instead of my phone/computer screen?
A few ideas:
- Is there a HDMI-to-bluetooth adapter/dongle that I could plug into the TV and send the videos bluetooth-ly to?
- Is there a HDMI-"SmartTV-creating" adapter (I've seen things like "Android mini pc"s on the 'net) that I could use to transform my TV into a SmartTV or an android "tablet/computer-like-device" and then send the video files from one device to the other? i.e. - devices like this one... http://www.amazon.com/UG007B-Quad-C...d=1389321213&sr=8-13&keywords=android+mini+pc with a wireless keyboard as well of course, and using either bluetooth or a wifi signal to send from my phone/computer to either stream, or transfer the file then watch.
- From what I know the Chromecast device at this time cannot do this, and only works for specific apps like HBO GO, Netflix, Hulu, etc., not for sending straight video files stored on a phone/tablet, but are there other such devices out there that do what I am looking to do?
Thanks all in advance for the help!
Apart from all the other proprietary sets on the market, the wi-fi (802.11/...) USB dongle appear to be an easy way to connect your mobile/laptop/TV to the TV set. The disadvantage is the short range of about 10 feet, unless you use a wi-fi access point to extend the distance range.
On the TV side, attach a HDMI dongle
On a PC, attach wi-fi USB dongle. I think you will need a streaming software.
On a tablet, attach a OTG (On-The-Go) mini-USB-to-USB adapter and then the wi-fi USB dongle. Again, I would think you need a streaming software.
On a mobile phone, it will be more of a challenge. You could do wired-wireless combo:
Phone-to-computer using screen capture application (wi-fi, USB or Bluetooth), then Computer-to-TV via the wi-fi USB option above.
Interesting read:
http://techchannel.radioshack.com/wirelessly-connect-pc-tv-2561.html
Thanks for the ideas, and I agree that link was an interesting read.
After thinking, I think the way I'll go about this is using Google Drive and an Android mini pc TV adapter. I can drop the video files (or whatever) into the drive on my computer or phone, then sync my TV Android to get the files to play.

[Completed] Big "lockdown" on an obscure TV box set

Around last June, my family has gotten a TV box set only providing Chinese content, but boy have I had a hard time with this device! Although there is an app store for that box, there aren't that many apps that I can download aside for a few games and other productivity apps. From whatever technical information I could get, here's what I got:
Android version: 4.4.2 KitKat
Model: S8G40
RAM: ? 1GB
Internal Storage: ? 8GB
Connectivity: HDMI (the main output), microSD card slot, USB 3.0, 3.5mm audio-video plug, Ethernet
Input: Remote control (the menu key is seldom used with the custom software), USB devices
CPU: possibly ARMv7
Power source: 12V DC, 1A
While trying to install the select apps, I did get the popup for local APK installation, which tells me that "allow unknown sources" is turned on. There is also neither the Play Store nor other Google programs installed onto that box by default. The built-in app store did tell me the following:
ADB: closed
Root: closed
Without the stock settings app, ADB can't be turned on from the device.
Some popup dialogs I got indicated the set box software is based on AOSP, but none of that was helpful to me.
Moreover, I tried some USB hardware with it, and they work. A USB mouse puts a cursor on a screen, but isn't useful with most of the custom software except the AOSP parts I occasionally saw. A USB keyboard with extra shortcuts worked, with the following buttons working:
Home -> home screen
Volume buttons, including mute
Suspend key -> puts the device to sleep; when powered on again, the full boot cycle is performed
Music -> opens the stock music app, displaying no files even with external storage connected, and the only non-custom app I successfully opened up.
Screenshot keys work; I get a screenshot taken, but it is then impossible to view or delete the screenshot afterwards as they could be stored on the non-accessible internal storage.
USB storage is mounted, and a custom file manager limited to photos, music, and video can be used to access one. This file manager proved useless to me in trying to get outside APKs installed.
USB hubs can attach more than one of these or the following at once to the set box.
I even took the set box apart once, and got to see its hardware (specific hardware can't be listed as there's no way to get an app on there to tell me that info. There seemed to be no hardware button for resetting the device nor a recovery mode. [if needed, I can send images of the hardware]
All in all, that set box IMO is really secure, with JTAG hardware possibly being the only way I can achieve customization and more outside of the intended activities (the set box could also be leased hardware, of which then my family won't own the set box, possibly turning modifications to the set box into forbidden activities). My situation is an obscure one; the company providing the set box is probably not well-known, and that hurts my chances of being able to obtain the ability to customize the device. If nobody can help, I'll simply stay away from such software-limited hardware next time.
Hi,
Thanks for using XDA Assist Kindly post here Android Q&A, Help & Troubleshooting
Good Luck!

Categories

Resources