Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8201077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:40:56+00:00 2026-06-07T06:40:56+00:00

Alright, so I’m at wits’ end. I have an app that utilizes pushing and

  • 0

Alright, so I’m at wits’ end.

I have an app that utilizes pushing and popping viewControllers. one of my viewControllers has the basic setup for reading input from the Arduino Uno (utilizing the Redpark cable).

When I pop that view controller off the app dies and I do not know what is causing it. I know it has to do with the Redpark coding because without it the app works fine.

When I insert the Redpark coding into the other viewControllers the app doesn’t die but the text that I have to read the serial code disappears.

So what is causing it to crash? Or not show the data.

I think it has to do with [rscMgr open] command. Any input would be useful.


EDIT: let me also ask. Is there a way to run this process of reading the serial data in the background of my app? That might solve the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:40:58+00:00Added an answer on June 7, 2026 at 6:40 am

    So I believe I solved the problem, or just put a band-aid on it.

    Throughout the book “iOS Sensor Apps with Arduino” by Alasdair Allen all the examples were created in the main viewController.

    I was playing around with the examples plus extra view controllers. I came to the realization that the main viewController is ALWAYS RUNNING.

    What I did to solve the problem was to create a global variable that held the inputs and then printed it to the pushed viewController.

    I also used a timer to update the value in the pushed viewController.

    So…

    1. Create a variable that will hold the input. I did this in the AppDelegate class (I tend to put all global variables in the AppDelegate).

      @synthesize rxBuffed = _rxBuffed;
      
    2. Run the Redpark Serial input on the main viewController using rxBuffed variable (could call it anything you want).

      for (int i = 0; i < numBytes; i++) {
      delegate.rxBuffed = [NSString stringWithFormat:@"%@%c", delegate.rxBuffed, ((char *)rxBuffer)[i]];
      }
      
    3. Create your timer in your viewController that you want the RX data. I update every 1/10th of a second.

      myTimer =[NSTimer scheduledTimerWithTimeInterval:.1
      target:self selector:@selector(updateValues)
      userInfo:nil repeats:YES];
      
    4. Import that variable in the updateValues.

      -(void)updateValues{
      AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
      yourVariable = delegate.rxBuffed;
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, So I have an issue that is a bit weird. I am using
Alright, so I have a query that looks like this: SELECT `orders`.*, GROUP_CONCAT( CONCAT(
Alright. The problem we're having is that we have NSStrings filled with dates in
Alright, so here's my basic ASP.NET page setup: I've got a page with a
Alright, currently I have my SWF hitting a php file that will go and
Alright. I have a query that looks like this: SELECT SUM(`order_items`.`quantity`) as `count`, `menu_items`.`name`
Alright, here we go! I am currently developing an iPhone app that will work
Alright, I understand that this problem has been asked a lot of times at
Alright so i need to open a .txt file that will be created in
Alright, so I am writing a JAR to be the back end implementation of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.