Results 1 to 2 of 2
Discuss How to get terminal app data to a GUI app at the iPhone Developer Exchange - Hackint0sh.org; So I created a nice serial/UART program and it runs very well through "mobileterminal". I ...
  1. #1
    Newbie Array

    Join Date
    Dec 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default How to get terminal app data to a GUI app

    So I created a nice serial/UART program and it runs very well through "mobileterminal".

    I tried running the same code using a GUI hello world example, however it doesn't output anything to my connected UART device so I'm assumming it doesn't run or there is permission issue opening the serial port via the commmand...
    Code:
    open("/dev/tty.iap", O_RDWR | O_NOCTTY | O_NONBLOCK);
    My goal is to get UART data to and from a GUI.

    I'm about to tear apart the "mobileterminal" app source code to see what I can do. I'm just wondering if it has been done?



  2. #2
    Newbie Array

    Join Date
    Dec 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Well I've had no luck tearing apart the "mobileterminal" app. Objective-C is getting extremely frustrating at this point. I can't even follow where functions are being called from.... Anyways, mobileterminal includes a SubSystem process in order to run terminal apps. The question is, whats the easiest way to get a terminal app's IO to a GUI application? The function execve() used in mobileterminal isn't working.

    Considering the above question is merely a hack to get certain code to run, the real question is what needs to be set up before I can open "/dev/tty.iap" with file pointer and not get permissions issues within a GUI app?

 

 

Similar Threads

  1. [Terminal] Fix for SuidLibFix: Main Script Execution failed (Terminal Password)
    By GuGaPires in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 07-08-2008, 11:29 AM
  2. [1.1.4][Mobile Terminal][Solved]Terminal Hangs.. what's my next move .. ?
    By wackotm in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 05-15-2008, 05:04 AM
  3. [Terminal] sudo command in terminal
    By Jailbreak'r in forum General
    Replies: 6
    Last Post: 03-26-2008, 05:14 AM
  4. Replies: 3
    Last Post: 01-22-2008, 05:19 AM
  5. Replies: 2
    Last Post: 01-22-2008, 04:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:09 AM.
twitter, follow us!