The IOIO device works in any case. And you can connect it via Bluetooth
(with a little try and error for the right BT dongle :-))

2013/3/1 Tux Leonard <[email protected]>

> Look for a device with a FTDI chip.
> You also could write your own Linux driver that supports your USB-RS232
> chip and then get it working in your phone. So a little try and error is
> much faster.
> When you've done this, you need to implement the serial protocol of your
> sensor.
>
> Is this sensor expensive?
>
> Roy
>
>
> 2013/2/28 Marta Ribeiro <[email protected]>
>
>> Yes I have tried and it works perfectly. The mouse and keyboard are
>> instantaneously operational.
>>
>> I'll try to find another USB-RS232 converter. But apart from
>> experimenting with them, which other way can I know if a cable is supported
>> by android/Linux?
>>
>> Thank you for your help!
>>
>>
>> On Thursday, February 28, 2013 10:46:14 PM UTC, Tux wrote:
>>
>>> This app can open a serial connection if a working USB-RS232 device is
>>> detected. The other app only shows the infos.
>>>
>>> Do you have an other USB-RS232 converter? This one is not supported by
>>> android/Linux.
>>> Just to make shure that your OTG cable is ok. Can you connect a USB
>>> mouse or keyboard to your S3?
>>>
>>> 2013/2/28 Marta Ribeiro <[email protected]**>
>>>
>>> I can“t, with this app i get no device is connected. What would be the
>>>> difference between this app and the last one?
>>>>
>>>>
>>>> On Thursday, February 28, 2013 10:02:41 PM UTC, Tux wrote:
>>>>
>>>>> I am a little confused that you can see your sensor device in the
>>>>> device info.
>>>>> When I look at the data sheet I see that your sensor has a RS232
>>>>> interface.
>>>>>
>>>>> In the device info you should see something about the USB-RS232
>>>>> converter (for example FTDIxxx) and not the sensor info.
>>>>>
>>>>> In my case I get the following output (USB-RS232 converter):
>>>>> [image: Screenshot_2013-02-28-22-51-33.png]
>>>>>
>>>>> Not all USB-RS232 are supported out of the box by android. If I
>>>>> remember right the FTDIxxx devices are supported well.
>>>>> A good app to get started is "Sick USB 2 Serial Terminal". Try to open
>>>>> a serial connection with this app first.
>>>>>
>>>>>
>>>>> [image: Screenshot_2013-02-28-22-53-21.png]
>>>>>
>>>>>
>>>>> 2013/2/28 Marta Ribeiro <[email protected]**>
>>>>>
>>>>> I added the screenshots. As you can see, there is nothing on the
>>>>>> android tab, mas it detects the device on the Linux tab. The sensor is 
>>>>>> the
>>>>>> one described in one of the screenshots, is a microstrain 3DM-GX3-36. I
>>>>>> connect a RS232-USB A cable to the microstrain RS232 interface, and 
>>>>>> connect
>>>>>> the cable to a samsung galaxy S III (4.1.1) with a usb B/micro B cable.
>>>>>>
>>>>>> Do you have any idea what the issue might be? I appreciate all the
>>>>>> help.
>>>>>>
>>>>>>
>>>>>> On Thursday, February 28, 2013 7:25:45 PM UTC, Tux wrote:
>>>>>>
>>>>>>> Could you tell us what sensor and what RS232-USB device you are
>>>>>>> using?
>>>>>>> A scrennshot of the output of your app could also help.
>>>>>>>
>>>>>>> Roy
>>>>>>>
>>>>>>> 2013/2/28 Marta Ribeiro <[email protected]**>
>>>>>>>
>>>>>>> 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.**usbDe******viceEnumerator<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(**savedInstanceSt********ate);
>>>>>>>>>>>>>>> setContentView(R.layout.**activi********ty_microstrain);
>>>>>>>>>>>>>>>  find_device = (EditText)findViewById(R.id.**fi********
>>>>>>>>>>>>>>> nd_device);
>>>>>>>>>>>>>>>   UsbManager manager = (UsbManager)getSystemService(**C*****
>>>>>>>>>>>>>>> ***ontext.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.**microstra********in"
>>>>>>>>>>>>>>>     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_**lau********ncher"
>>>>>>>>>>>>>>>         android:label="@string/app_**nam********e"
>>>>>>>>>>>>>>>         android:theme="@style/**AppTheme********" >
>>>>>>>>>>>>>>>         <activity
>>>>>>>>>>>>>>>             android:name="com.example.**micr********
>>>>>>>>>>>>>>> ostrain.MICROSTRAIN"
>>>>>>>>>>>>>>>             android:label="@string/app_**nam********e" >
>>>>>>>>>>>>>>>             <intent-filter>
>>>>>>>>>>>>>>>                 <action android:name="android.intent.**a****
>>>>>>>>>>>>>>> ****ction.MAIN" />
>>>>>>>>>>>>>>>                 <category android:name="android.intent.**c**
>>>>>>>>>>>>>>> ******ategory.DEFAULT"/>
>>>>>>>>>>>>>>>                 <category android:name="android.intent.**c**
>>>>>>>>>>>>>>> ******ategory.LAUNCHER" />
>>>>>>>>>>>>>>>              </intent-filter>
>>>>>>>>>>>>>>>             <intent-filter>
>>>>>>>>>>>>>>> <action android:name="android.**hardware********
>>>>>>>>>>>>>>> .usb.action.USB_**DEVICE_**ATTACHE******D"/>
>>>>>>>>>>>>>>>  </intent-filter>
>>>>>>>>>>>>>>>              <meta-data android:name="android.**hardware****
>>>>>>>>>>>>>>> ****.usb.action.USB_**DEVICE_**ATTACHE******D"
>>>>>>>>>>>>>>>  android:resource="@xml/**device********_filter" />
>>>>>>>>>>>>>>>         </activity>
>>>>>>>>>>>>>>>        <uses-library android:name="android.test.**run*******
>>>>>>>>>>>>>>> *ner" />
>>>>>>>>>>>>>>>     </application>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>     <instrumentation android:name="android.test.**Ins*******
>>>>>>>>>>>>>>> *trumentationTestRunner"
>>>>>>>>>>>>>>>     android:targetPackage="com.**exa********
>>>>>>>>>>>>>>> mple.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+**unsubscribe********@googlegroups.com
>>>>>>>>>>>>>>> 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+**unsubscribe**
>>>>>>>>>>>>>>> ******@googlegroups.com.
>>>>>>>>>>>>>>> For more options, visit https://groups.google.com/**grou****
>>>>>>>>>>>>>>> ****ps/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
>>>>>>>>>>>>> android-developers+**unsubscribe******@googlegroups.com
>>>>>>>>>>>>> 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+**unsubscribe******
>>>>>>>>>>>>> @googlegroups.com.
>>>>>>>>>>>>> For more options, visit https://groups.google.com/**grou******
>>>>>>>>>>>>> ps/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 android-d...@**
>>>>>>>> googlegroups.com
>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>> android-developers+**unsubscribe****@googlegroups.com
>>>>>>>> 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+**unsubscribe****
>>>>>>>> @googlegroups.com.
>>>>>>>> For more options, visit https://groups.google.com/**grou****
>>>>>>>> ps/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 android-d...@**googlegroups.com
>>>>>> To unsubscribe from this group, send email to
>>>>>> android-developers+**unsubscribe**@googlegroups.com
>>>>>> 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+**unsubscribe**@googlegroups.com.
>>>>>> For more options, visit 
>>>>>> https://groups.google.com/**grou**ps/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 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