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] <javascript:>> > >> 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]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> 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] <javascript:>. >> 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.

