Connecting H10 Pos via ADB - Android Q&A, Help & Troubleshooting

I've reset the H10 Pos using recovery but I want to connect the POS to my computer so that I can install and debug the app I'm developing for it. The app will basically print receipts I've doing some R&D and it says I need to writed to the Serial Port (/dev/ttyS1) to print.
The thing I'm stuck at is connecting the device to my PC so that I can use the debugger. Also, I have another model with a lower Android 4.4 which is giving me "No Command" Screen when I try to reset it usign the recovery mode like I did for the first machine which has Android 5.1.
I'll appriciate if someone can help me solve this two problems.

Check whether "USB debug" in Android Settings -> Developer options is offered or not: If, then enable it to get ADB working, reboot POS.

jwoegerbauer said:
Check whether "USB debug" in Android Settings -> Developer options is offered or not: If, then enable it to get ADB working, reboot POS.
Click to expand...
Click to collapse
I've already enabled USB Debugging in the POS and restarted it several times but with the POS connected to my PC when I run ADB and do "adb devices" it shows empty list. I've tried changing modes from MTP to charge etc. Also, tried to change cables and different PCs.

May be you're using an outdated ADB-driver or Android's USB-driver isn't set to support ADB mode: MTP mode in any case is the wrong mode.

jwoegerbauer said:
May be you're using an outdated ADB-driver or Android's USB-driver isn't set to support ADB mode: MTP mode in any case is the wrong mode.
Click to expand...
Click to collapse
on the mother board at the side of the sim card you will see a micro usb port, this the only port that works for ADB, to get to this you have to take out the 4 screws that holds the screen to the printer, lift up the screen as if you was changing the print paper you will see 4 silver screws under the screen take them out and close the lid back on the printer, under the screen on all 4 corners take out the 4 screws you may need to take off the sim/memory card cover if it is on, then you will see the 2 buttons memory card and sim card, look to the left and you will see the micro USB this is the one you use, i used a micro usb lead from a mobile phone. i allso soilderd on a electrotec microphone for the phone to work and just driled a smale hole on the side of the case .

Related

USB connection doesn't work

Settings > Wireless and Networks > USB utilities > "Connect storage to PC" button > plug in USB cable
This used to work perfectly up until today, now it just doesn't work anymore and the "Connect USB cable to use mass storage" popup keeps showing even after I plug it in. I've tried on multiple computers and I tried restarting my phone, but nothing works.
rpimps said:
Settings > Wireless and Networks > USB utilities > "Connect storage to PC" button > plug in USB cable
This used to work perfectly up until today, now it just doesn't work anymore and the "Connect USB cable to use mass storage" popup keeps showing even after I plug it in. I've tried on multiple computers and I tried restarting my phone, but nothing works.
Click to expand...
Click to collapse
Thats one wierd proccess for getting USB storage man. most would just plug it in and pull the notification bar down to click the mass storage mode icon thing.
but if your not getting a connection, USB port could be toast.
Simple search would've showed that.
MotoMudder77 said:
Thats one wierd proccess for getting USB storage man. most would just plug it in and pull the notification bar down to click the mass storage mode icon thing.
but if your not getting a connection, USB port could be toast.
Simple search would've showed that.
Click to expand...
Click to collapse
Oh wow you're right, I just plugged in the charger and it doesn't charge. So phone is useless, throw it away?
It's strange that it worked fine up until today and then suddenly decided to break, even though the phone has just been sitting on my desk in my room. And it's only a few months old.
rpimps said:
Oh wow you're right, I just plugged in the charger and it doesn't charge. So phone is useless, throw it away?
It's strange that it worked fine up until today and then suddenly decided to break, even though the phone has just been sitting on my desk in my room. And it's only a few months old.
Click to expand...
Click to collapse
If you really have a fried USB port, send the phone back for a warranty replacement. If you don't have stock firmware on it, there are guides to return to stock - haven't specifically checked, but I believe it's possible to do this entirely without plugging in if you are already rooted.
dandrumheller said:
If you really have a fried USB port, send the phone back for a warranty replacement. If you don't have stock firmware on it, there are guides to return to stock - haven't specifically checked, but I believe it's possible to do this entirely without plugging in if you are already rooted.
Click to expand...
Click to collapse
I bought the phone on ebay though, would it still have warranty?
Is there a part I can buy to replace it myself? It's definitely a problem with just the USB port, because if I fiddle with the charger it starts charging if I hold it at a funny angle.
Some people have had success cleaning the usb port with alcohol. That might help but not if a wire or solder joint is broken. If you do try alcohol, don't use regular rubbing alcohol (70%), too much water (30%), get the better (90%) or even better (99%).
If you don't feel like fixing it yourself, you can settle for finding a battery charging dock and get an extra battery. Also, if you need to place files on your phone, use dropbox, Kies wirelessly, or take out your SD card and use an adapter.
I bought a new USB connector and it's working now.
im on stock 4.0.3 ics stock rooted and i can't find mass usb storage mode when i plug usb to phone to computer i just get options mtp which i do not use as it always says wpd error etc and camera. were is the mass usb storage option? ps if i click on "more" in wireless network settings phone freezes up and i have to take out battery.
ian619420 said:
im on stock 4.0.3 ics stock rooted and i can't find mass usb storage mode when i plug usb to phone to computer i just get options mtp which i do not use as it always says wpd error etc and camera. were is the mass usb storage option? ps if i click on "more" in wireless network settings phone freezes up and i have to take out battery.
Click to expand...
Click to collapse
In Android 4.0x systems (Ice Cream Sandwich) and above, Google introduced a new file transfer protocol called Media Transfer Protocol (MTP), which may be set by default. The problem with MTP is that, while Windows explorer can see it, there is no drive letter assigned, so programs like Pimlical can not see the phone's sdcard. The Android operating system still has the capability of USB Mass Storage protocol, which does assign drive letters, as has been the norm in all previous operating systems. It may be possible to set the phone to USB Mass Storage through phone settings. If it is not possible to set the phone to USB Mass Storage through phone settings, then it is possible to force USB Mass Storage.
This behavior is governed by the system property /data/property/persist.sys.usb.config. This is a text file containing a single string. The settings are "mass_storage,adb" or "mtp,adb". Since this is a system file, it is necessary for the phone to be rooted, and then this file can be edited using a root file explorer. Change the text in the file to mass_storage,adb (without spaces), save the file, and reboot the phone.

Nexus 9 with no USB setup? Very confused.

So, I have received a hand-me-down Nexus 9, and I start in on my usual cleanup and setup routine, only to find something very weird- my computer utterly does not notice its existence when I plug in the USB, and the USB settings are missing from their usual spot in the Storage and USB section of settings.
I eventually found the control for USB type in the Developer settings (maybe it moves when you activate those?), but the computer still doesn't know anything's connected.
Things I have confirmed:
Tablet charges fine.
The cord works for file transfer with another device (a Kindle that happened to be around)
I can change to different USB connection types- none of them work.
The computer is COMPLETELY unaware of the tablet- no mysterious entries popping up to indicate missing drivers, nothing.
WTF? I can't do most of the other steps I usually do without at least a little bit of access so I can root the thing and put in a decent recovery. Has anyone else seen something like this? Was there a fix?
Firefairy said:
So, I have received a hand-me-down Nexus 9, and I start in on my usual cleanup and setup routine, only to find something very weird- my computer utterly does not notice its existence when I plug in the USB, and the USB settings are missing from their usual spot in the Storage and USB section of settings.
I eventually found the control for USB type in the Developer settings (maybe it moves when you activate those?), but the computer still doesn't know anything's connected.
Things I have confirmed:
Tablet charges fine.
The cord works for file transfer with another device (a Kindle that happened to be around)
I can change to different USB connection types- none of them work.
The computer is COMPLETELY unaware of the tablet- no mysterious entries popping up to indicate missing drivers, nothing.
WTF? I can't do most of the other steps I usually do without at least a little bit of access so I can root the thing and put in a decent recovery. Has anyone else seen something like this? Was there a fix?
Click to expand...
Click to collapse
Try a different cable.
Boot into bootloader and see if computer sees device there
When you plug your tablet to computer a notification pops up on Nexus 9 (Charging only). Click on it and you will be able to select different connection mode.
If changing that notification mentioned in Post #3 doesn't work, updated the USB drivers in the computer Device Manager while the Nexus 9 is connected.
I had a similar issue with a Nexus 9 I bought on Swappa. I had to wiggle the usb cable, but in my situation the "data" portion of the usb port on the tablet was faulty/damaged (PTP/MTG/OTG failed). It was able to charge without issues, and by wiggling it windows would detect it but fail "usb device malfunctioned".. I ended up returning it to seller.
I've had this happen at times (only owner of my device). If you did what maelfilk suggested and no go, you either have a power-only cable (similar to what clockcycle posted) or you need to go through process of upgrading driver on PC; or, if that doesn't work, delete everything related to android USB drivers on PC. Then, let them (each device) repopulate.
Nexus 9

Enabling USB debugging with pitch black, broken screen

Hey.
Short description: My Oneplus 3's LCD was destroyed to atoms. I'm trying to use Vysor to control the phone through my computer. I actually have USB debugging already enabled from developer options, but that is not enough, as the computer's MAC address needs to be "allowed" for debugging through a prompt that appears on my phone's notifications. Any idea how to do this?
A bit longer description of how I know that the MAC needs to be allowed through a prompt: The LCD broke during two days. First I saw partially what's on the screen, so I was able to enable USB debugging and install Vysor. It worked for these two days, but once a day I needed to allow my computer's MAC for USB debugging through the notifications of my Oneplus 3. Now I cannot do it anymore, as the screen has gone pitch black. Also, ADB says that the phone is offline / it cannot be debugged at the moment. I wish I knew the exact location of the prompt so I could just allow it, since the touch screen still works... There must be another way.
If the touchscreen still works you could just try to hit the button blindly, it's not like missing would be an issue, right?
I tried hitting the prompt blindly, but it's either not there or I already opened it and pressed "decline" which made it go away. :/

USB Settings

I have my USB Config set to MTP and USB Debugging ON under Developer Options. However, whenever I connect a USB device, it always resets itself to Charge only and I have to switch it back to File or Photo transfer in order to connect to PC, AA, etc.
Any ideas on how to make the USB setting 'stick' with what I set in DO?
Is there an ADB command? Other setting I should be looking for? Any help is appreciated.
bilottag said:
I have my USB Config set to MTP and USB Debugging ON under Developer Options. However, whenever I connect a USB device, it always resets itself to Charge only and I have to switch it back to File or Photo transfer in order to connect to PC, AA, etc.
Any ideas on how to make the USB setting 'stick' with what I set in DO?
Is there an ADB command? Other setting I should be looking for? Any help is appreciated.
Click to expand...
Click to collapse
Strange, I *know* that mine 'used to' stay at whatever setting it was left at before. I just tried it now, and it still stays on whatever it was last set to, BUT... It automatically toggles the 'allow debugging over USB' to OFF every time I plug my phone into my computer. Now I know it didn't do this before, I wonder if it has something to do with 'always trust this connection' being set? Also, it really seems like this stuff is behaving just a wee bit different since I unlocked my bootloader. Hmm, could it be they have set a flag where USB debugging always turns off when the device is connected to something, IF the bootloader is unlocked?
bilottag said:
I have my USB Config set to MTP and USB Debugging ON under Developer Options. However, whenever I connect a USB device, it always resets itself to Charge only and I have to switch it back to File or Photo transfer in order to connect to PC, AA, etc.
Any ideas on how to make the USB setting 'stick' with what I set in DO?
Is there an ADB command? Other setting I should be looking for? Any help is appreciated.
Click to expand...
Click to collapse
I can confirm that this happens on mine too, really annoying, but I think this is not something a lot of people are facing, as there are literally NO other references to this that I can find. The reason why I think this is a very specific issue is that I recently got a Mate 20 X, which is essentially the same phone, and noticed that when I plug in the USB to a PC, I get a dialog pop up at the bottom of the screen asking if I want to transfer photos, files or to charge only. I NEVER saw this on the Mate 20 Pro, but that might be because I messed something up. I did do a lot of fiddling over ADB when the phone was new (mostly disabling apps) and giving permissions to apps like lightning launcher and System UI tuner and I'm wondering if this what has caused the issue.
Obviously even before I did this, I necessarily must have connected to the thing via USB, but strangely, I don't remember seeing this dialog... Having to go into developer mode to change this setting can't be how it's set up normally, as then basically no-one will be able to get connected via MTP (I suspect everyone on XDA knows about this setting, but suspect none of the average Joes even knows the option exists).
So the question is, what did we do wrong and how do we get this diaglog back because I have found that Developer mode is not accessible for other Users set up on the phone so I can't access the phone at all via USB now when the other user is using it...
I'm hoping we can work together to find out what we did wrong!
PS: I find like kaibosh99 that the USB debugging also toggles back to off. I am not rooted or bootloader unlocked
After a lot of faffing and looking into it some more, I don't get the pop-up dialog but have discovered that it is in the notification menu where it shows
USB icon . Charging via USB
Expanding that notification and tapping on it, gives the option to choose file transfer and a load of other stuff. It's a pity that a pop-up dialog doesn't open like on the Mate 20 X, you can see what I mean here
https://uk.community.huawei.com/mat...tried-usb-debugging-and-all-that-already-6786
Much easier than having to go into the notification menu!

Broken Screen - any chance of recovery?

Before I throw it away, is there any way I can get data off my phone? Screen repair is more than the cost of a new phone...
I dropped my phone and the screen is very badly shattered, the phone unlocks using finger print but it's just a mess of pixels and colours - can't make anything out, nothing happens when I touch and I can't see enough to put it in developer mode.
I've tried a few bits of software but they all seem to need it to be in developer mode. I've tried downloading the adb toolkit but it's not listed when I try "adb devices". I've tried using the google drivers, putting it in recovery mode etc.
When I connect it to windows it shows as an external drive and loads hisense, I can't access any files on the phone. I've tried connecting it to a monitor using the USB C to HDMI cable I use for my windows laptop but nothing.
Thanks

Categories

Resources