Thank you that was exactly the problem. I tried a different sensor today 
and it worked. The purposed of the microstrain was for a project, but i'll 
use a different approach.

Thank you!

On Friday, March 1, 2013 8:24:14 AM UTC, al wrote:
>
> Yes, it may be. That indicates that the hardware (adapter etc.) is ok and 
> thus the device is recognized on the "linux"/os level but it's not made 
> visible on the level of the android USB-Host api (it's the same e.g. with 
> usb mice etc.). It may be that android tries to use it as some standard 
> rs232 hardware or as serial mouse or something. 
>
> That's probably also the reason why "Sick USB 2 Serial Terminal" does not 
> find your device: it's not visible on the api level.
>
> Like Tux, I would recommend using another kind of device too. The IOIO is 
> great, but depending on your use case, it may be overkill. There have been 
> other projects with usb 2 serial adapters. You may find recommendations via 
> Google.
>
> Am Donnerstag, 28. Februar 2013 15:05:24 UTC+1 schrieb Marta Ribeiro:
>>
>> Additionally, I just noticed something, the application presents two 
>> tabs: Android plus Linux. According to android i have no devices connected. 
>> Whereas in the linux tab i find my device. Is this indicative of something? 
>>
>> On Thursday, February 28, 2013 1:40:35 PM UTC, Marta Ribeiro wrote:
>>>
>>> Yes I can see my device. 
>>>
>>> regarding the device file, it is in decimal, which I've head is the 
>>> correct way. I've check the values with the output of the application and 
>>> after a conversion hexadecimal to decimal it's a match.
>>>
>>> Right now,I'm starting to thing the issue may be the usb.host 
>>> permission. Do you now if i'm missing something?
>>>  
>>> On Thursday, February 28, 2013 10:34:54 AM UTC, al wrote:
>>>>
>>>> I would first check the hardware/cable etc. e.g. with the app "USB 
>>>> Device Info" 
>>>> https://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator
>>>>
>>>> If you can see your device in the android tab, then you are right and 
>>>> it's a software issue. 
>>>>
>>>> I'm not sure about the device_filter.xml. Do you have to specifiy the 
>>>> values in hex or decimal? The docu uses e.g. class="255" and does not use 
>>>> a 
>>>> hex-only digit. That looks to me like it could be decimal?
>>>>
>>>>
>>>> Am Donnerstag, 28. Februar 2013 10:26:01 UTC+1 schrieb Marta Ribeiro:
>>>>>
>>>>> I am connecting the OTG micro B/USB B cable to an USB A/RS232 cable.
>>>>>
>>>>> Any help you can provide I would appreciate!
>>>>>
>>>>> On Wednesday, February 27, 2013 7:03:51 PM UTC, Tux wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> what kind of sensor are you using and what protocol (RS232, HID or 
>>>>>> plain USB) is used?
>>>>>> I played around with some RS232 devices. Perhaps I could find the 
>>>>>> example again.
>>>>>> Later I switched to a IOIO divice.
>>>>>>
>>>>>> Roy
>>>>>>
>>>>>> 2013/2/27 Marta Ribeiro <[email protected]>
>>>>>>
>>>>>>> I have the cables needed. I even installed an usb host app and it 
>>>>>>> worked correctly. now i'm trying to make my own application and it's 
>>>>>>> not 
>>>>>>> working, so it must be because of the code. Although i am writing it 
>>>>>>> exactly as it advised in tutorials.
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, February 27, 2013 5:35:44 AM UTC, softy wrote:
>>>>>>>
>>>>>>>> Interesting.I don't know much about this but as at the same level 
>>>>>>>> you are I would have checked first wether the Samsung Galaxy S3 has a 
>>>>>>>> USB 
>>>>>>>> OTG sw support or not.You can try this by inserting a USB keyboard 
>>>>>>>> into it 
>>>>>>>> or a Mouse and see whether it is working.
>>>>>>>> I think it has : 
>>>>>>>> *USB:*USB 2.0 client, 480Mbit/s
>>>>>>>> micro-USB
>>>>>>>>
>>>>>>>> What you need is 
>>>>>>>>
>>>>>>>> *USB:*USB 2.0 host/client, 480Mbit/s
>>>>>>>> USB A
>>>>>>>>
>>>>>>>>
>>>>>>>> Rgds,
>>>>>>>> -s
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Feb 26, 2013 at 10:50 PM, Marta Ribeiro <
>>>>>>>> [email protected]**> wrote:
>>>>>>>>
>>>>>>>>> I'm using a Samsung Galaxy S3,and connecting to a sensor using USB 
>>>>>>>>> host and a OTG cable. I'm at the beginning phase just trying to write 
>>>>>>>>> code 
>>>>>>>>> to detect the sensor was attached  but it's not working. Can someone 
>>>>>>>>> take a 
>>>>>>>>> look and tell me what they think:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> protected void onCreate(Bundle savedInstanceState) {
>>>>>>>>> super.onCreate(**savedInstanceState);
>>>>>>>>> setContentView(R.layout.**activity_microstrain);
>>>>>>>>>  find_device = (EditText)findViewById(R.id.**find_device);
>>>>>>>>>   UsbManager manager = (UsbManager)getSystemService(**
>>>>>>>>> Context.USB_SERVICE); 
>>>>>>>>>
>>>>>>>>> //connect(); 
>>>>>>>>>
>>>>>>>>>         HashMap<String, UsbDevice> deviceList = 
>>>>>>>>> manager.getDeviceList();
>>>>>>>>>         Iterator<UsbDevice> deviceIterator = 
>>>>>>>>> deviceList.values().iterator()**;
>>>>>>>>>        
>>>>>>>>>          while(deviceIterator.hasNext()**){
>>>>>>>>>
>>>>>>>>>             UsbDevice device = deviceIterator.next();
>>>>>>>>>             Toast.makeText(this,"Value of device :" 
>>>>>>>>> +device.getDeviceName(), Toast.LENGTH_LONG).show();
>>>>>>>>>            
>>>>>>>>>         }
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> %%%%%% manifest %%%%%%%%%%%%%%%
>>>>>>>>>
>>>>>>>>> <?xml version="1.0" encoding="utf-8"?>
>>>>>>>>> <manifest xmlns:android="http://schemas.**
>>>>>>>>> android.com/apk/res/android<http://schemas.android.com/apk/res/android>"
>>>>>>>>>  
>>>>>>>>>   package="com.example.**microstrain"
>>>>>>>>>     android:versionCode="1"
>>>>>>>>>     android:versionName="1.0" 
>>>>>>>>>     android:orientation="vertical"**>
>>>>>>>>>
>>>>>>>>>     <uses-feature android:name="android.**hardware.usb.host"/>
>>>>>>>>>     
>>>>>>>>>     <uses-sdk
>>>>>>>>>         android:minSdkVersion="16"
>>>>>>>>>         android:targetSdkVersion="16" />
>>>>>>>>>     
>>>>>>>>>     <application
>>>>>>>>>         android:allowBackup="true"
>>>>>>>>>         android:icon="@drawable/ic_**launcher"
>>>>>>>>>         android:label="@string/app_**name"
>>>>>>>>>         android:theme="@style/**AppTheme" >
>>>>>>>>>         <activity
>>>>>>>>>             android:name="com.example.**microstrain.MICROSTRAIN"
>>>>>>>>>             android:label="@string/app_**name" >
>>>>>>>>>             <intent-filter>
>>>>>>>>>                 <action android:name="android.intent.**action.MAIN" 
>>>>>>>>> />
>>>>>>>>>                 <category android:name="android.intent.**
>>>>>>>>> category.DEFAULT"/>
>>>>>>>>>                 <category 
>>>>>>>>> android:name="android.intent.**category.LAUNCHER" 
>>>>>>>>> />
>>>>>>>>>             </intent-filter>
>>>>>>>>>             <intent-filter>
>>>>>>>>> <action android:name="android.**hardware.usb.action.USB_**
>>>>>>>>> DEVICE_ATTACHED"/>
>>>>>>>>> </intent-filter>
>>>>>>>>>              <meta-data android:name="android.**
>>>>>>>>> hardware.usb.action.USB_**DEVICE_ATTACHED" 
>>>>>>>>>  android:resource="@xml/**device_filter" />
>>>>>>>>>         </activity>
>>>>>>>>>        <uses-library android:name="android.test.**runner" />
>>>>>>>>>     </application>
>>>>>>>>>     
>>>>>>>>>     <instrumentation android:name="android.test.**
>>>>>>>>> InstrumentationTestRunner"
>>>>>>>>>     android:targetPackage="com.**example.microstrain"
>>>>>>>>>      android:label="microstrain" />
>>>>>>>>>
>>>>>>>>> </manifest>
>>>>>>>>>
>>>>>>>>> %%%%%%%%%   xml/device_filter.xml %%%%%%%%%
>>>>>>>>>
>>>>>>>>> <resources>
>>>>>>>>>
>>>>>>>>>     <usb-device vendor-id="199b" product-id="3d65"/>
>>>>>>>>>
>>>>>>>>> </resources>
>>>>>>>>>
>>>>>>>>> %%%%%%
>>>>>>>>>
>>>>>>>>>  I appreciate all the help. Thanks in advance! 
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>> -- 
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Android Developers" group.
>>>>>>>>> To post to this group, send email to android-d...@**
>>>>>>>>> googlegroups.com
>>>>>>>>>
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> android-developers+**[email protected]
>>>>>>>>> For more options, visit this group at
>>>>>>>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>>>>>>> --- 
>>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>>> Groups "Android Developers" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>>> send an email to android-developers+**[email protected]
>>>>>>>>> .
>>>>>>>>> For more options, visit 
>>>>>>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>>>>>> .
>>>>>>>>>  
>>>>>>>>>  
>>>>>>>>>
>>>>>>>>
>>>>>>>>  -- 
>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Android Developers" group.
>>>>>>> To post to this group, send email to [email protected]
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected]
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/android-developers?hl=en
>>>>>>> --- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "Android Developers" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to [email protected].
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>  
>>>>>>>  
>>>>>>>
>>>>>>
>>>>>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to