iPad como Consola Serie RS232

TOP meneame.net

Hacía tiempo que venia dándole vueltas a usar el iPhone 4 o el iPad como terminales de consola serie para configurar routers o switches así que tras una breve investigación encontré este cable pero un cable serie por 70$ no entraba en mi presupuesto, así he optado por hacerme mi propio cable (13€).

For some time I’ve been thinking to use the iPhone 4 or the iPad as terminal serial console to configure routers or switches so after a little research I found this cable but a serial cable for $ 70 was not in my budget, so I opted for make my own cable (13 €).

iPad Serial to Cisco

iPad Serial to Cisco

Hardware

El iPad tiene un puerto serie escondido en el conector dock de todos los dispositivos móviles de Apple. Poniendo por ejemplo un iPhone o iPad con la pantalla hacia arriba, el pin 1 del conector Dock es el primero de la izquierda y el pin 30 el último:

The iPad has a serial port hidden in the dock connector of all Apple mobile devices. Putting some iPhone or iPad with the screen up, the Dock connector pin 1 is the first on the left and pin 30 the last:

  • Pin 12: Serial TxD
  • Pin 13: Serial RxD
  • Pin 15/16 (either one, two or both): GND
  • Pin 18: 3.3v

Se puede consultar todo el pinout aquí.

Pinout can be checked here.

Además del conexionado del puerto Dock es muy importante saber que este puerto serie funciona con 3.3v como un uno lógico mientras que los PCs/switches/routers buenos suelen funcionar a 12v como uno lógico. Si los conectasemos directamente iPad y Cisco seguramente quemariamos el puerto serie del iPad pero eso se soluciona con un conversor de voltajes que nos convierta los unos de 12v a 3.3v y viceversa.

In addition to the Dock port connection is very important to know that this serial port operates as a logic ‘one’ 3.3v while PCs / switches / routers typically operate at 12v as ‘one’ logical. If the iPad and Cisco directly conectasemos surely burn up the serial port of the iPad but that is solved with a voltage converter to convert us about 12v to 3.3v vice versa.

Standard 30 Pin Dock Connector

Standard 30 Pin Dock Connector

Sabiendo esto es cuestión de comprar un conversor de voltajes y un conector Dock para cablearlos entre sí adecuadamente usando el pinout que conocemos y así obtendremos nuestro cable para poder conectar un iPhone o un iPad a un puerto serie de Cisco y compatibles (HP, 3Com, etc.) por menos de 13€.

Knowing this is a matter of buying a voltage converter and a dock connector to wire them together properly using the pinout we know and so we get our cable to connect an iPhone or iPad to a serial port and compatible Cisco (HP, 3Com, etc..) for less than 13 €. They can be found by searching ‘ipod dock connector’ and ‘rs232 ttl converter’ on ebay.

Connected Serial Cable iPad iPhone

Connected Serial Cable iPad/iPhone

Finished Serial Cable iPad/iPhone

Finished Serial Cable iPad/iPhone

Software

A partir de aqui se requiere un iPad o iPhone jailbreakeados y con acceso al sistema de archivos. En el iPad utilizo OpenSSH como servidor para obtener una shell e iSSH para conectarme por loopback a OpenSSH; de esta manera tenemos un terminal unix.

From here a jailbroken iPad or iPhone is required to access to the file system. In the iPad I use OpenSSH as server to be able to get a shell and, to connect to loopback, I use iSSH or Prompt.

Por último hay que instalar desde Cydia minicom, que es una aplicación de consola para abrir comunicaciones por el puerto serie de tipo terminal, y configurarlo como sigue:

Finally minicom has to be installed from Cydia, which is a console application to open the serial port communications terminal type, and set it as follows:

  • Serial Device: /dev/tty.iap
  • Bps/Par/Bits: 9600 8/N/1
  • Hardware Flow Control: No
  • Software Flow Control: No
Minicom Configuration iPad/iPhone

Minicom Configuration iPad/iPhone

y con esto ya tendríamos terminado nuestro terminal serie con el iPad.

and with this we would have finished our series terminal with the iPad.

Update: En los comentarios indican que es posible que sea necesaria una resitencia de 6k8 en el pin 21.

Yo no la puse y sin embargo me funciona correctamente. Si no funcionase bien el montaje habría que agregarla.

In comments someone indicate that his version didn’t work until he added 6k8 resistor on pin 21 to enable serial port on dock. I didn’t put such resistor to make it work but if yours doesn’t work, try it.

<< Volver

55 comments to “iPad como Consola Serie RS232”

  1. Comment by Alberick Anker:

    Hola, excelente tema. solo tengo una duda, puedes actualizar el link o fotografia del conversor de voltaje?.

    Gracias =)

  2. Zen Comment by KaR]V[aN:

    Es buscar en ebay “RS232 TTL”. Yo encontré un montón de estos y busqué uno que cupiese dentro de la cajita del conector DB9 para mantenerlo oculto.

  3. Comment by esteban:

    Buenos dias quisiera que me ayudaran compre el rs232 a ttl , lo solde al conector doc, instale el minicom pero no logro tener comunicacion con el router, cabe mencionar que despues de tener mi cable armado conecte un cable azul de consola esclusivo de cisco que va de un db9 hembra a un rj45 que estare haciendo mal, ya configure el minicom y cuando conecto no me aparece nada. mi correo es esteb_99@hotmail.com

  4. Zen Comment by KaR]V[aN:

    Prueba cruzando Rx con Tx, posiblemente los hayas puesto del revés.

  5. Comment by Esteban:

    No amigo no la solución no fue cruzando Rx con Tx, cuando pongas un manual así ponlo completo, sabes perfectamente que tu manual esta incompleto, te falto mencionar el pin 21 o no, en realidad eso era lo que me faltaba que no lo mencionas, así como esta tu cable sabes que no funciona sin tomar encuentra el pin 21 del iPhone.

  6. Zen Comment by KaR]V[aN:

    El mio está montado sin la resistencia y funciona bien.

  7. Comment by imprinted promotional gifts:

    imprinted promotional gifts…

    Get a top promotional coffee mugs that is now available and with reasonably pricing now only!…

  8. Comment by This Site:

    This Site…

    Locate the best print and mail services now on a best offer and creates efficiency for you immediately!…

  9. Comment by african bow hunting safari:

    african bow hunting safari…

    Get going right now with with african safari vacation and in addition ROI producing to get started right now!…

  10. Comment by labor day weekend music festival:

    labor day weekend music festival…

    See the best new caveman music that’s in stock in addition on sale you can get now!…

  11. Comment by engraved pens:

    engraved pens…

    Hire the the top custom printed signage that is now available in addition at good rates now only!…

  12. Comment by management of diabetes:

    management of diabetes…

    Get the best diabetes remision currently now available and at reasonable prices now only!…

  13. Comment by caveman americana festival:

    caveman americana festival…

    Find the best available colorado live music festival that’s in stock in addition on sale you can get now!…

  14. Comment by lion hunting in namibia:

    lion hunting in namibia…

    Get the new year started right with luxury african hunting safari that is an awesome strategy to get started right now!…

  15. Comment by imprinted knee pads:

    imprinted knee pads…

    Get a top personal promotional products that’s now available in addition on sale now only!…

  16. Comment by venue insurance:

    venue insurance…

    Get going with the best b & b insurance immediately on a best offer and creates efficiency for you immediately!…

  17. Comment by logo safety glasses:

    logo safety glasses…

    Get the the top promo items currently now available in addition on sale now only!…

  18. Comment by insurance for bed and breakfast:

    insurance for bed and breakfast…

    Locate the best hospitality insurance companies immediately on a best offer and gets your business ROI immediately!…

  19. Comment by mobile detailing charlotte nc:

    mobile detailing charlotte nc…

    Get here expert mobile car detailing charlotte nc currently taking on new clients in addition on sale now!…

  20. Comment by americana music festival colorado:

    americana music festival colorado…

    Find here the brightest new caveman music labor day weekend music festival now now in stock and at the best price you can get now!…

  21. Comment by badge holder:

    badge holder…

    Get the best imprinted safety glasses currently now available in addition on sale now only!…

  22. Comment by bed and breakfast insurance companies:

    bed and breakfast insurance companies…

    Get going with top quality event venue insurance now on a best offer and gets your money flowing immediately!…

  23. Comment by have a peek here:

    have a peek here…

    Start the year the right way with lion hunting africa that is ROI producing to get started right now!…

  24. Comment by tote bags:

    tote bags…

    Get the the top reusable face masks that is now available and with reasonably pricing now only!…

  25. Comment by find more info:

    find more info…

    Procure top quality print invoice online today on a best offer and gets your money flowing immediately!…

  26. Comment by navigate to this website:

    navigate to this website…

    Find the the top diabetes wound care that’s now available in addition at reasonable prices now only!…

  27. Comment by read more:

    read more…

    Find the the top custom lanyards that’s now available and on sale now only!…

  28. Comment by americana music fest:

    americana music fest…

    Get the best option for caveman music americana festival currently in stock in addition at the best price you can get now!…

  29. Comment by personalised engraved pens:

    personalised engraved pens…

    Find the the top business gifts currently now available in addition on sale now only!…

  30. Comment by hotel insurance coverage:

    hotel insurance coverage…

    Locate top quality insurance for lodges immediately on a best offer and gets your business ROI immediately!…

  31. Comment by first aid kits:

    first aid kits…

    Get the the top custom printed face masks currently now available in addition at reasonable prices now only!…

  32. Comment by weston colorado caveman music festival:

    weston colorado caveman music festival…

    Get the best new best americana music festivals that’s in stock in addition reasonably priced you can get now!…

  33. Comment by click to read more:

    click to read more…

    Procure highly amazing hunting lodge insurance now on a best offer and gets your money flowing immediately!…

  34. Comment by lodge insurance:

    lodge insurance…

    Procure the best event venue insurance now on a best offer and creates efficiency for you immediately!…

  35. Comment by hunting cape buffalo with a bow:

    hunting cape buffalo with a bow…

    Start the year the right way with what does an african hunting safari cost? that’s an awesome strategy to get started right now!…

  36. Comment by his comment is here:

    his comment is here…

    Get the new year started right with when is the best time of year for an african safari? that is providing a fantastic ROI to get started right now!…

  37. Comment by printed water bottles:

    printed water bottles…

    Get the the top business gifts that is now available in addition at reasonable prices now only!…

  38. Comment by read more:

    read more…

    Get the best tradeshow signs currently now available in addition at good rates now only!…

  39. Comment by rock and roll music festival:

    rock and roll music festival…

    Get the greatest new caveman weston colorado americana music festival now now in stock plus reasonably priced you can get now!…

  40. Comment by innkeepers liability insurance:

    innkeepers liability insurance…

    Procure top quality ski lodge insurance immediately on a best offer and gets your money flowing immediately!…

  41. Comment by colorado music festival:

    colorado music festival…

    Find the greatest option for caveman weston colorado americana music festival that’s available and at great prices you can get now!…

  42. Comment by printed water bottles:

    printed water bottles…

    Get the best custom logo design currently now available and at reasonable prices now only!…

  43. Comment by hotel insurance companies:

    hotel insurance companies…

    Get going with highly amazing insurance bed and breakfast today on a best offer and gets your money flowing immediately!…

  44. Comment by car detailers charlotte nc:

    car detailers charlotte nc…

    Buy a plan for professional charlotte auto detailing currently taking on new clients and on sale now!…

  45. Comment by reusable face masks:

    reusable face masks…

    Get the the top imprinted protective eyewear that is now available and at reasonable prices now only!…

  46. Comment by weston colorado live music festival:

    weston colorado live music festival…

    Find the greatest option for americana festival now in stock in addition on sale you can get now!…

  47. Comment by leopard hunting namibia:

    leopard hunting namibia…

    Get going right now with with bow hunting in namibia that is ROI producing to get started now!…

  48. Comment by Learn More:

    Learn More…

    Hire a top Printed Gear currently now available and at good rates now only!…

  49. Comment by prediabetes treatments:

    prediabetes treatments…

    Get a top ortho knee doctors near me that’s now available in addition at good rates now only!…

  50. Comment by logo t shirts:

    logo t shirts…

    Get a top water bottles with logo that’s now available in addition at reasonable prices now only!…

  51. Comment by bluegrass music festival:

    bluegrass music festival…

    Find here the best available monument lake resort music festival now available plus at the best price you can get now!…

  52. Comment by invoice printing and mailing:

    invoice printing and mailing…

    Locate top quality mail processing services immediately on a best offer and gets your money flowing immediately!…

  53. Comment by americana music festivals:

    americana music festivals…

    Find the greatest option for u.s. music festivals that are available plus at the best price you can get now!…

  54. Comment by customized water bottles:

    customized water bottles…

    Hire the best logo safety glasses currently now available in addition with reasonably pricing now only!…

  55. Comment by mobile auto detailing charlotte nc:

    mobile auto detailing charlotte nc…

    Buy a plan for amazing car detailers charlotte nc currently taking on new clients and on sale now!…

Comentalo

*
Contador