Re: getDuration issues

2016-03-12 Thread Kevin Miller
in order to abort the call. See interface documentation for further explanation regarding the read queue. But I could not find the "interface documentation" that explains the read queue. Thanks, Kevin On Sunday, March 6, 2016 at 11:54:24 PM UTC-5, Kevin Miller wrote: > > Hello, &

getDuration issues

2016-03-06 Thread Kevin Miller
Hello, I'm using an HC-SR04 in a IOIOService loop. I used a Timer to set a flag periodically so that the Looper will know when it should perform a ranging. If I use getDurationSync() the Looper will hang on getDurationSync after about 10 readings with the timer set to 500 (ms?) delay between

Re: IOIOService and handleMessage

2016-03-02 Thread Kevin Miller
I took your code as a starting point and also used some tips from StackOverflow and other sites and made a basic example of a IOIO service handing requests and replys from multiple activities, and also having the service broadcast events, like connect and disconnect and having the activities

Re: IOIO gives wrong data from UART

2017-02-01 Thread Kevin Miller
Hi BZ, What PC interface/software are you using to read the data and display the "d7 d9 ff ff 45 df f9" output? Is it consistent? If so, it looks to me to be a settings error - baud rate, stop bits, etc. Did you verify the PC interface/software with a known good UART? Does your Interface

Debug Service Tips?

2016-09-29 Thread Kevin Miller
I did a IOIO project a year ago with the same phone and same IOIO and same laptop, same BT dongle for the IOIO, and I'm pretty sure I had no problems using the Android Studio 2.0(?) debugger to step through the IOIOService. Now I have AS 2.2 and probably some Android updates on the phone and

UART Best Practices?

2016-10-05 Thread Kevin Miller
I'm connecting a IOIO to a hobbyist robot which also has a UART. I plan to use the IOIOService because there will be other sensors attached to the IOIO by UART and I want to be able to handle I/O in a timely manner. Is there a full, simple example of using a UART (or 2) in a service? I have

Re: Debug Service Tips?

2016-10-04 Thread Kevin Miller
il the debugger attaches, but this works for me. On Thursday, September 29, 2016 at 3:39:45 PM UTC-4, Kevin Miller wrote: > > I did a IOIO project a year ago with the same phone and same IOIO and same > laptop, same BT dongle for the IOIO, and I'm pretty sure I had no problems > u

Re: Debug Service Tips?

2016-09-29 Thread Kevin Miller
It is specific to Android services. I can debug activities in the same app, but breakpoints and Log commands inside the IOIOService are ignored. The app is a slight derivation of the HelloIoioService example. -- You received this message because you are subscribed to the Google Groups

Re: Debug Service Tips?

2016-10-03 Thread Kevin Miller
. Kevin On Thu, Sep 29, 2016 at 7:04 PM, Ytai Ben-Tsvi <yta...@gmail.com> wrote: > Can you please try a non IOIO app? > > On Sep 29, 2016 16:03, "Kevin Miller" <ksmille...@gmail.com> wrote: > >> It is specific to Android services. I can debug activities in

Re: UART Best Practices?

2016-10-11 Thread Kevin Miller
Based upon your suggestions, I made a demo that I plan to use as a basis for my next project. Comments/suggestions welcome. It is here: https://github.com/ksmiller99/HelloIOIOUart On Wednesday, October 5, 2016 at 5:52:25 PM UTC-4, Kevin Miller wrote: > > I'm connecting a IOIO to a ho

Re: Frequent disconnect()/setup() in IOIO Service

2016-12-08 Thread Kevin Miller
I don't think I've seen the situation where the stream closed but the IOIO was still connected, but I will look for that specifically. I'm not planning to use BT in production, I just need it for development because the phone's USB is connected to the computer for debugging. If there were

Re: Frequent disconnect()/setup() in IOIO Service

2016-12-01 Thread Kevin Miller
when the setup() runs the first time and skip the UART config if setup() runs again. Is that possible? Kevin On Wed, Nov 30, 2016 at 5:54 PM, Kevin Miller <ksmille...@gmail.com> wrote: > Hello, > I've got a really big project nearing completion, but now that I'm getting > into t

Re: Frequent disconnect()/setup() in IOIO Service

2016-12-04 Thread Kevin Miller
n Monday, December 5, 2016 at 12:05:59 AM UTC-5, Ytai wrote: > > I would try a different dongle and/or recalibrate the IOIO oscillator as > described in the wiki under calibration wipe. I've seen cases where data > losses occur silently with some dongle/phone combination, res

Frequent disconnect()/setup() in IOIO Service

2016-11-30 Thread Kevin Miller
Hello, I've got a really big project nearing completion, but now that I'm getting into the fine details of UART communication, I'm having a problem with frequent disconnect()/setup() cycles which is interfering with the serial communications. I'm using Bluetooth for developing, but I don't