Does RS232 CTS Line work ? - MDA, XDA, 1010 General

I have manipulated the Serial port. I can send and receive data. I can toggle the RTS line. However I have not been able to read the Status of the CTS line. Well it is always LOW, even when I pull it to 5V.
Has any body used this line. Does it work?
By the way I have used eVB to write the code.
What I need is to monitor the status of a line which may be set to HIGH or LOW. Can I use any other pins to monitor an external device?
By the way at the same time the serial port is also used to receive and transmit data. So I can not use the serial port.

Related

How to:- Connect XDA to an external modem

Just thought I would let anyone who is interested, know that I have succeeded in connecting my XDA to an external (Hayes) modem.
I will post more details soon - but many thanks to this site for providing the XDA Connectors section.
I have also been 'testing' a PSION 56k Infrared Travel Modem. I will also post details on this soon.
Sorry its taken so long to post the details on this one, but here goes!
HOW TO:- Connect your XDA to an external modem
Purchase an O2 XDA Hot Sync cable (2HT2B99N). The XDA end of this cable has a built-in connector for the mains power adapter, thus allowing you to charge your XDA whilst connected to a modem. The Hot Sync cable is in essence a Null Modem cable designed to link two computers together without actually using 2 modems. In this case one end of the cable is designed to connect to your XDA rather than a PC serial port.
In order to connect the XDA to a modem, it is necessary to connect the Hot Sync cable to an adapter which in turn connects to a standard modem cable designed to connect you're modem to a PC 9-pin serial port.
This adapter is a cable with a 9-pin male D type connector on both ends, with the appropriate pins connected. Having built this adapter, I now think that it is the same as 9-pin Male to 9-pin Male Null Modem Adapter which you can purchase from www.expansys.co.uk, or similar for a few quid!
To make the adapter, purchase a length of 4 pair cable, 2 x 9 way D type hoods, 2 x 9 way D type plugs (all available from Maplin or similar), and wire the plugs together as follows.
Cross pin 1 and pin 4 (DCD-DTR)
Cross pin 2 and pin 3 (RXD-TXD)
Cross pin 3 and pin 2 (TXD-RXD)
Cross pin 4 and pin 1 (DTR-DCD)
Connect pin 5 to pin 5 (GND-GND)
Cross pin 7 and pin 8 (RTS-CTS)
Cross pin 8 and pin 7 (CTS-RTS)
Connect the shield wire to the metal casing on both plugs. Leave any other wires un-connected (and safe from shorting).
Now connect the XDA, to the Hot Sync connector, the other end to one end of the cable/adapter, and the other end of the cable/adapter to the 9-pin female end of your modem cable. Finally connect the other end of the modem cable to your modem (which obviously needs to be connected to a phone line!). Is that enough connections?!
Switch on the modem, and your XDA should 'wake up'.
You now need to configure the modem/connection settings on your XDA.
Tap on Start, Settings, Connections Tab, Beam and remove the tick from the box 'Receive all incoming beams and select discoverable mode'. This will ensure that COM1 is not used by the Infrared port. Tap (ok).
Tap on Connections
Click on the 'down arrow' next to Internet Settings and tap New…
Enter an appropriate name, such as the name of your ISP, and tap on the Modem tab.
Tap on New…
Enter a Name such as the name of your modem.
Select ‘Hayes Compatible on COM1:' from the Select a modem drop down box.
Select the maximum Baud Rate (115200) from the Baud Rate drop down box. This is the speed that the XDA communicates with the modem, not the speed of the modem (such as 28k, 33k, or 56k), and so should be as high as possible.
You should not need to change the settings under the Advanced… button, so I won't detail them here.
Tap Next.
Enter the phone number for your ISP and tap Next.
On the final screen, enter any appropriate settings for phone/modem (if in doubt, leave as default), and tap Finish.
You will have returned to the Modem Connection Screen. Tap on (ok).
You will return to the Connections screen. Select the newly created settings from the drop down box and click Connect.
Eventually, a Network Log On screen should appear. Enter the appropriate User name, Password, and Domain (if appropriate). You should be able to get these settings from your PC if you are going to use the same dial-up account.
Tap on OK
A message window should appear, detailing;
Connecting to: The Name you gave your modem
Dialing from: The dialing location (such as Home, Mobile, or Work)
Using: 'Hayes Compatible on COM1:
Dialing the number being dialed
The biggest problem I had at this stage, was getting the correct number dialled! It kept adding extra numbers as if trying to dial internationally. If this happens then you will have to alter the settings under dialing locations/the number entered in the connection settings. It maybe best, to disconnect the modem from the phone line until you get the correct number showing under 'Dialing'.
If your modem has LED Status Lights and/or a speaker then all being well, you should notice some activity. Eventually you should be connected/authenticated. You should now be able to browse with Pocket IE and send/receive email (although the later will require you to configure an account under Inbox if you haven't already got one).
Dropping the connection proved messy at first (I had to switch off the modem or the XDA). I have since discovered that if you have the XDA phone switched on, a 'Connection Active' Icon appears in the Navigation Bar, once your modem establishes a connection. You can tap on this Icon and end the connection that way. Much neater!
The process detailed here worked for me. If you choose to follow these instructions, you do so at you're own risk.

[Q] USB to Serial

Are there any usb to serial devices that work on the gtablet? I'd like to be able to use my GTab to access the serail consoles on my SUN servers. I'd much rather carry it around than my 5 pound laptop or even my netbook.
Moved to general.
Desdinova said:
Are there any usb to serial devices that work on the gtablet? I'd like to be able to use my GTab to access the serail consoles on my SUN servers. I'd much rather carry it around than my 5 pound laptop or even my netbook.
Click to expand...
Click to collapse
I'd like to know as well. I want to use my gtab to config cisco devices.
-J
pershoot's kernel works. I have hooked up my USB GPS which looks like a COM port. Problem is I can't coax VEGAn 5.1.1 to actually use it. Now that I've switched to gingerbread I may have to try again.
wd5gnr said:
pershoot's kernel works. I have hooked up my USB GPS which looks like a COM port. Problem is I can't coax VEGAn 5.1.1 to actually use it. Now that I've switched to gingerbread I may have to try again.
Click to expand...
Click to collapse
I have a conversion interface to try....is there an android terminal app lit bit term or something?
That's what I can't find. The only thing I can find is in the market only works with a BT port. I worked with mine from a console using STTY and cat /dev/ttyUSB0.
So I am either going to wind up writing something or....
did you make any progress on this? i have a usb to serial dongle that i would like to use to configure switches/etc....
my tab recognizes the dongle but i have yet to find a program to connect using the dongle...
I too was thinking about this for configuring Cisco switches and routers. I went a head and ordered a USB to serial connection. But like the other members were saying what app can we use to login into the ios? wtb putty for android
Any progress on writing something for USB GPS?
peterweter said:
Any progress on writing something for USB GPS?
Click to expand...
Click to collapse
You can contact user herbert1 on this board. As long as the USB serial GPS outputs either NMEA or SiRF data--both standard data formats--he should be able to get your GPS working for you.
See this post where he's helped us out. You might, in fact, be able to just use the custom alpha apk from there and get everything working by just changing the serial port in the app and setting the correct permissions on /dev/ttyUSB0.

[Q] Connect a SGT via WIRE to a PC (e.g. serial connection/ethernet?)

I have the job to use a Galaxy Tab 10.1 as a presentation device during an exibition and want to connect it to a controller PC (running Win7) via wire connecton. Previously I used WIFI, which works fine in the lab but fails completely! with 1000 people running around each of which having a device of their own and WIFI enabled.
How can I connect the SGT to the PC to send and receive some small amount of control data (receive touch screen events on the PC and send some control data to the tab)? As far as I know there is no ethernet available via the connector and the USB option would only work if I would use logcat and parse the strings, but I have no idea how to send data back to the tab.
Under /dev there are a few serial devices but I could not find a Samsung connector having a serial plug (which would be enough to solve my problem).
I hope some of you might have an idea how I can solve this problem.
-Udo
I kept on searching and found this solution (haven't tried it out yet).
http://www.anothem.net/archives/2010/10/15/android-usb-connection-to-pc/
Seems promising, even though I would like to send UDP pakets rather than using TCP and dealing with the required overhead (OK -- it's not that bad).
Also, in the past ADB seems to be rather unstable at times and my solution has to be as stable as possible because I have to run unobserved for up to 10 hours.
I keep on searching (and will also monitoring this thread, in case someone here might have a different idea).
-Udo

[Q] Asynchronously bulk data transfer

I am working on USB communication between an Android Galaxy S III smartphone and a device which does not conform to Android Open Accessory device definition. I want to transfer asynchronously bulk data from the device to the host. The connection between the host and device works correctly, what has been verified by sending control commands to the device.
1. Can this transfer be done with an endpoint of the bulk type (USB_ENDPOINT_XFER_BULK) or it has to be the interrupt type (USB_ENDPOINT_XFER_INT) as it is specified in the MissileLauncher app sample?
2. Assuming that control commands send to the device work correctly, can asynchronous bulk transfer be accomplished with just these two following methods or some other methods need to be used?
a) queue of the UsbRequest class;
b) requestWait of UsbDeviceConnection class?
3. Does the request.queue call fill the data buffer after the connection.requestWait returns or some other conditions need to be checked?

Identification USB

Hello,
I set up a Samsung S6 edge for Android Auto. Do not have SIM on the phone.
If I connect to App Connect (VW) now, my actual phone will be disconnected and i can no longer make calls via the hands-free system.
The Business telephone interface with SIM is also disconnected.
Now I want to give the S6 the USB ID of the other phone.
Have tried a lot like changing the IMEI or the Android ID. Without success.
Does anyone know what information Discover Pro uses to identify the phone via USB?
Thanks
AFAIK an USB ID doesn't exist on any Android version.
What you might try to sync is Serial Number of devices in question.
jwoegerbauer said:
AFAIK an USB ID doesn't exist on any Android version.
What you might try to sync is Serial Number of devices in question.
Click to expand...
Click to collapse
I have to turn a Samsung S6 edge into an S9.
At least as far as USB information is concerned.
How can I do this?
Have already changed the Serial and IMEI with the Device Emulator app.
But he didn't take over the Serial.
How does Discover Pro identify a smartphone?

Categories

Resources