[Q] USB OTG and UsbManager - HTC Sensation

I was trying to communicate with my Arduino Uno by means of the USB Host API. The problem is, that the UsbManager always returns an empty list of devices. I tried this with multiple ROMs:
ViperS 5.1
ViperS 5.2.1
CyanogenMod 11 by Sultanxda
CarbonRom
With ViperS I find the Arduino ( or any other USB devics ) using lsusb.
With the other roms I don't find the Arduino.
Does anybody know what is the missing puzzle piece to get the UsbHost API find my devices?
If no, is there a way to get a USB tty to use it with the arduino (with root) ?
Or does anybody know a ROM where it works?

ViperS
Ok, for now I found out that the cdc-acm driver is used for cummunicating with the arduino. Fortunately this driver is included as module in SebastianFM's kernel, used by ViperS roms.
I just ran
Code:
insmod /system/lib/modules/cdc-acm.ko
and i got /dev/ttyACM0
That means that I am able now to communicate by using root.
That's good for now, but does anybody know how to do it without root?

mtz92 said:
Ok, for now I found out that the cdc-acm driver is used for cummunicating with the arduino. Fortunately this driver is included as module in SebastianFM's kernel, used by ViperS roms.
I just ran
Code:
insmod /system/lib/modules/cdc-acm.ko
and i got /dev/ttyACM0
That means that I am able now to communicate by using root.
That's good for now, but does anybody know how to do it without root?
Click to expand...
Click to collapse
i'm searching for the same think comunicating with arduino uno board, i will try the command now thanks... , if someone know more about Sensation and arduino please help

Related

[Q] Building froyo from source issues

./extract-files.sh
remote object '/system/bin/parse_radio_log' does not exist
chmod: cannot access "../../../vendor/htc/bravo/proprietary/parse_radio_log":
Who can tell me why?
Who can help me?
parse_radio_log' does not exist
u can read? i never build something from sources but you are missing a File that see everyone
Edit: Why u want to build from sources? Want your own ROM? I think the Dev´s do theire best to produce the best ROM´s for us!
Connect your phone via usb and then run the command
Sent from my HTC Desire using XDA App
lyljhdll said:
./extract-files.sh
remote object '/system/bin/parse_radio_log' does not exist
chmod: cannot access "../../../vendor/htc/bravo/proprietary/parse_radio_log":
Who can tell me why?
Who can help me?
Click to expand...
Click to collapse
My rom is just froyo built from source.
(cheap advert aside) enable usb debug and run
somebody wrote that parse_radio_log not longer required. the command can removed from the extract-files script. (in another 'building android from source' thread)
lyljhdll said:
./extract-files.sh
remote object '/system/bin/parse_radio_log' does not exist
chmod: cannot access "../../../vendor/htc/bravo/proprietary/parse_radio_log":
Who can tell me why?
Who can help me?
Click to expand...
Click to collapse
philicibine nailed it, your phone has to be connected via usb first:
philicibine said:
Connect your phone via usb and then run the command
Click to expand...
Click to collapse
If this still fails, make sure you are already running an AOSP froyo rom. If you are running eclair or Sense then you'll get a file not found type error. Try flashing cyanogenmod (or another AOSP based rom) and then try it again.
See the link in my signature for building froyo from source.

[Q] Modules and Drivers Needed for Galaxy Tab 2 (P3100)

Hi guys anyone knows how to compile modules for P3100?
I own a P3100, I want this Tab to run microcom on Terminal Emulator so that I can console/manage Equipments that run Rs232. In order to use microcom, I think I need to attached my Prolific USB to Serial Adapter to ttyUSBx. Furthermore, inorder to attached to ttyUSBx, I need usbserial.ko and pl2303.ko modules.
Although third party apps (Slick USB to Serial) can do this but I would prefer to run it via microcom.
I have successfully run this setup using SGS2 using dorimanx kernel.
Any one knows how to compile kernel, I would be willing to test.
Thanks in advance
nogo8888 said:
Hi guys anyone knows how to compile modules for P3100?
I own a P3100, I want this Tab to run microcom on Terminal Emulator so that I can console/manage Equipments that run Rs232. In order to use microcom, I think I need to attached my Prolific USB to Serial Adapter to ttyUSBx. Furthermore, inorder to attached to ttyUSBx, I need usbserial.ko and pl2303.ko modules.
Although third party apps (Slick USB to Serial) can do this but I would prefer to run it via microcom.
I have successfully run this setup using SGS2 using dorimanx kernel.
Any one knows how to compile kernel, I would be willing to test.
Thanks in advance
Click to expand...
Click to collapse
should be similar, http://stevechui.blogspot.com/2011/10/compiling-kernel-modules-tunko-for.html

Samsung P5110 and Internet key

Hi to all,
is possible to connect a internet key to Samsung Galaxy Tab2 P5110 ?
Thank you.
zmuda said:
Hi to all,
is possible to connect a internet key to Samsung Galaxy Tab2 P5110 ?
Thank you.
Click to expand...
Click to collapse
What do you mean by an "internet key" - a 3g/4g dongle? If so, no (or at least not trivially.)
You would have to obtain driver source for the device, build it for ARM and install it by hand to have any chance of making it work.
k1mu said:
What do you mean by an "internet key" - a 3g/4g dongle? If so, no (or at least not trivially.)
You would have to obtain driver source for the device, build it for ARM and install it by hand to have any chance of making it work.
Click to expand...
Click to collapse
You reply is very good.
The problem is the driver for internet key (3g/4g).
About your opinion, you can find drivers on the network?
Thank you , very kind.
zmuda said:
You reply is very good.
The problem is the driver for internet key (3g/4g).
About your opinion, you can find drivers on the network?
Thank you , very kind.
Click to expand...
Click to collapse
You'll have to use a device which is Linux compatible, then the driver would either be supplied by the manufacturer in source code form or is already included in the Linux kernel source. In either case, you would then install a kernel build environment, get the kernel source for your device, and enable that new driver. After that, build and install a kernel package. Unless you're a Unix person, this is not an easy task.
Oh, and the only way to connect it is via an OTG adapter.
I will upload KK-Booted stock kernel tommorow, with PPP Widget related modules to support USB internet dongle. You need CWM recovery but this boot image untested on P51xx since I have no access to it.
http://forum.xda-developers.com/showthread.php?p=37685672#post37685672

[REQ] USB ext WIFI Dongles driver modules into 4.3/4.4 kernel

Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
Sent from my GT-I9300 using xda app-developers app
nebular said:
Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
EDIT 22/03
So i found out the xda-dev app Module Loader. Injected rt3070sta.ko module and successfully mounted my Zyxel NWD2105 Wifi dongle. But it seems phone doesnt care. I m on Slimkat 4.4 v3.8 on i9300. The question is: how do i now become able to use the dongle?
Click to expand...
Click to collapse
nebular said:
nebular said:
Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
EDIT 22/03
So i found out the xda-dev app Module Loader. Injected rt3070sta.ko module and successfully mounted my Zyxel NWD2105 Wifi dongle. But it seems phone doesnt care. I m on Slimkat 4.4 v3.8 on i9300. The question is: how do i now become able to use the dongle?
Click to expand...
Click to collapse
You must boot from a linux distrubiton such as backtrack. But there is no native way that i know for doing that. Although there is one solution that you run linux background and connect to it by vnc viewer. Take a look at this
Click to expand...
Click to collapse
I built a few kernels for 4.3 and 4.4 with these modules, but the problem is once I built the kernel I lost the ability to mount the ext4 SD to be available within android. Only adb can see it.
What do you see in lsusb, or dmesg when you plug it in?
simply nothing. my rt3070 device is not even recognized by phone (i9300 with 4.4.4 Slimkat) after inserting specific .ko modules

Problem with my TL-WN722N V 1.10 on Nexus 5 6.0.1 plugged with OTG

Hello,
I have the 1.10 model of the TL-WN722N plugged in with a standard OTG adapter and it doesn't work.!
I installed Nethunter via the TWRP method by installing the image file in recovery mode, after unlocking the OEM via windows with adb.
I have version 6.0.1 of Android on Nexus 5 and I connect the key with a standard OTG adapter.
Currently I have done a lot of research and I can't figure out how to fix the problem.
I also try to install applications that manage and enable the OTG.
Here are screenshots of the commands I tried and with the version of my Android.
sorry i can't put an external link
The biggest problem is that the modules do not install, I have already tested some kernel and none install the modules so we get the problem cited above.
sorry i can't put an external link
I have spent whole days looking for a solution, looking at forum pages and I don't understand.
I managed to understand that there is a bone for the phone + the kernel and the full kali pack (tell me if I'm wrong).
But I don't know why the modules don't want to install.
The phone works very well in OTG.
I tested with several OTG cables and it works perfectly with a USB key.
I'm on Nexus 5 with original android 6.0.1 in marshmallow and I'm trying to connect a TL-WN722N 1.10 to the phone.
In short I hope you can help me because I am surpassing, I am completely neophyte but that fascinates me.
Sorry for the translation, I'm French.
Here is the name to my gitlab issue:
"Problem with my TL-WN722N V 1.10 on Nexus 5 6.0.1 plugged with OTG"
I tested the kernel that I was offered and it doesn't work.
Especially since I can't understand in what order I should install each file and if I should "reboot" between each "install".
Thank you for taking the time to read this block and I hope you can help me.
If any info is missing, tell me.
Thank you
A +
andurilmike
andurilmike said:
Hello,
I have the 1.10 model of the TL-WN722N plugged in with a standard OTG adapter and it doesn't work.!
I installed Nethunter via the TWRP method by installing the image file in recovery mode, after unlocking the OEM via windows with adb.
I have version 6.0.1 of Android on Nexus 5 and I connect the key with a standard OTG adapter.
Currently I have done a lot of research and I can't figure out how to fix the problem.
I also try to install applications that manage and enable the OTG.
Here are screenshots of the commands I tried and with the version of my Android.
sorry i can't put an external link
The biggest problem is that the modules do not install, I have already tested some kernel and none install the modules so we get the problem cited above.
sorry i can't put an external link
I have spent whole days looking for a solution, looking at forum pages and I don't understand.
I managed to understand that there is a bone for the phone + the kernel and the full kali pack (tell me if I'm wrong).
But I don't know why the modules don't want to install.
The phone works very well in OTG.
I tested with several OTG cables and it works perfectly with a USB key.
I'm on Nexus 5 with original android 6.0.1 in marshmallow and I'm trying to connect a TL-WN722N 1.10 to the phone.
In short I hope you can help me because I am surpassing, I am completely neophyte but that fascinates me.
Sorry for the translation, I'm French.
Here is the name to my gitlab issue:
"Problem with my TL-WN722N V 1.10 on Nexus 5 6.0.1 plugged with OTG"
I tested the kernel that I was offered and it doesn't work.
Especially since I can't understand in what order I should install each file and if I should "reboot" between each "install".
Thank you for taking the time to read this block and I hope you can help me.
If any info is missing, tell me.
Thank you
A +
andurilmike
Click to expand...
Click to collapse
You didn't mean the whole time the 6.1 factory image, or did you?
It was to 90 % over the thread of Lineage the talk.
Anyhow, anything which you got linked by the fellow user and me, were apart from the official image from Offensive's site, solely for Lineage meant.
Before I forget, here the newly build chroot, with all the new apps, wallpaper, boot animation from the nightlys:
https://mega.nz/#!9MZ3nAKJ!oQFguK9vltGN5TNjxcfZmQvM2xg3_EzNWTz5roBN-Hk
What do you not understand about the flash procedure in particular?
PS
As re4son wrote does the hammerhead kernel not install any modules.
I don't know what you flashed before though.
What did happen with Lineage+Opengapps+root+installer+kernel(or together, as my previous upload..?
I haven't the best experiences with Lineage, but it depends.
May I ask if you had time to take a look from the rom I linked you at the beginning?
It's the most reliable, although a bit outdated rom named NetHunter OS.
https://gist.github.com/binkybear/8f0f4eee292d5263372f47c3c3edd08e
Post your questions as detailed as possible..so let's wrap it up.
469/5000
A miracle happened there and installing nethunteros-nethunter-hammerhead-cm-14.1-hammerhead and then kalifs-armhf-full.tar.xz for the chroot and it works well.
The only problem is that when I try to install packages:
E: unable to locate kali-linux nethunter package
E: unable to locate kali-linux package
E: unable to locate kali linux-all package
But other than that, everything works.
Victory.
Thank you all for your patience and your advice.
andurilmike said:
469/5000
A miracle happened there and installing nethunteros-nethunter-hammerhead-cm-14.1-hammerhead and then kalifs-armhf-full.tar.xz for the chroot and it works well.
The only problem is that when I try to install packages:
E: unable to locate kali-linux nethunter package
E: unable to locate kali-linux package
E: unable to locate kali linux-all package
But other than that, everything works.
Victory.
Thank you all for your patience and your advice.
Click to expand...
Click to collapse
No need to thank me.. I am glad, that you were able to get it to work finally, after that number of failed attempts..
I went with the NetHunterOS rom version, which I linked you in gitlab
https://build.nethunter.com/nethunt.../LOS-hammerhead-14.1-20170102-nethunteros.zip
SuperSU has already been integrated in this variation as well.
After you flash the obligatory OpenGapps version for the same Android version and architecture 7.1 [arm], you are basically good to go.
I prefer the package size 'pico' - but this goes after your personal liking.
In my experiences is it better to use the "older" kalifs filesizes and not the newer ones with ~ 1,3 GB -- it seems to break somehow the rom/kernel if you use the newer ones
https://build.nethunter.com/kalifs/kalifs-20171118/kalifs-armhf-full.tar.xz
I don't know if you can use the internal wifi chipset, as well as a external adapter for wireless pentesting with the version wich you choose, but this is possible with the one I linked yesterday and again above.
A problem is that
(sudo) apt-get (dist-)upgrade
Click to expand...
Click to collapse
and seemingly further package upgrades are breaking the rom.
Although theoretically should you be able to install stuff.
Did you try it over the terminal, or just the NetHunter.apk?
Best regards l
Thank you.
I use an external wifi antenna, the TL-WN722N v 1.10 in USB OTG.
I tried to install metapackages via nethunter.apk
Nethunter cannot detect a HID interface.
Duckhunter HID does not work.
Thank you
A +
andurilmike said:
Thank you.
I use an external wifi antenna, the TL-WN722N v 1.10 in USB OTG.
I tried to install metapackages via nethunter.apk
Nethunter cannot detect a HID interface.
Duckhunter HID does not work.
Thank you
A +
Click to expand...
Click to collapse
Yeah, I just meant with the mentioned rom/setup, are you able to use the internal Wifi chipset (Broadcom4339) in monitor mode and could forgo the external adapter.
HID should work as well.
No, I cannot use the internal wifi card in monitor mode or the HID device.
I don't understand why?
Thank you

Categories

Resources