Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C5 emulator sleep #6

Open
emarsman opened this issue Dec 6, 2014 · 6 comments
Open

C5 emulator sleep #6

emarsman opened this issue Dec 6, 2014 · 6 comments

Comments

@emarsman
Copy link
Collaborator

emarsman commented Dec 6, 2014

When compiling with 'fab c5 emulator build' the resulting c5 devices connects to an iOS device over Bluetooth, but only for a few (<5) seconds. Then it goes away. Has been confirmed on 2 different C5 builds and iOS devices. Seems like emulator isn't keeping the BT alive?

@mgiannikouris
Copy link
Owner

Weird. I tested all the bluetooth hardware with an emulator build before shipping, and all of them stayed connected to Android. Also tested a few against iOS and didn't see any drop outs.

I'll give this a go with the fab command and see what happens. Which build number did you try?

@emarsman
Copy link
Collaborator Author

emarsman commented Dec 6, 2014

This is with the 7255 build.

If you see something different send me your .hex file or I can send you the
one I generated.

On Fri, Dec 5, 2014 at 5:27 PM, Michael Giannikouris <
[email protected]> wrote:

Weird. I tested all the bluetooth hardware with an emulator build before
shipping, and all of them stayed connected to Android. Also tested a few
against iOS and didn't see any drop outs.

I'll give this a go with the fab command and see what happens. Which build
number did you try?


Reply to this email directly or view it on GitHub
#6 (comment)
.

@mgiannikouris
Copy link
Owner

Just sent a HEX over that you can try.

I wonder if I was supposed to do something in fab that automatically sets DEFAULT_POWER_MANAGEMENT=ALWAYS_ON when emulator is selected.

@emarsman
Copy link
Collaborator Author

emarsman commented Dec 6, 2014

I tried your firmware and I get the same behavior. Plugged into PC over
USB, connect via BT to iPod device. Stays connected for 5 sec and then
disconnects. Never tried to open app or anything.

With fab, I do get the ALWAYS_ON option:

Compiled with options:

  •  CROSSCHASM= PLATFORM
    
  •  1         = BOOTLOADER
    
  •  0         = DEBUG
    
  •  0         = DEFAULT_METRICS_STATUS
    
  •  1         = DEFAULT_ALLOW_RAW_WRITE_USB
    
  •  0         = DEFAULT_ALLOW_RAW_WRITE_UART
    
  •  0         = DEFAULT_ALLOW_RAW_WRITE_NETWORK
    
  •  OFF       = DEFAULT_LOGGING_OUTPUT
    
  •  JSON      = DEFAULT_OUTPUT_FORMAT
    
  •  1         = DEFAULT_EMULATED_DATA_STATUS
    
  •  ALWAYS_ON = DEFAULT_POWER_MANAGEMENT
    
  •  1         = DEFAULT_USB_PRODUCT_ID
    
  •  0         = DEFAULT_CAN_ACK_STATUS
    
  •  1         = DEFAULT_OBD2_BUS
    
  •  0         = DEFAULT_RECURRING_OBD2_REQUESTS_STATUS
    

I'm not sure what we're doing different if you don't see the same behavior.
Is it an iOS thing instead of firmware thing? I'm running iOS 8.0.

Eric Marsman
Go Blue!!!

On Fri, Dec 5, 2014 at 6:00 PM, Michael Giannikouris <
[email protected]> wrote:

Just sent a HEX over that you can try.

I wonder if I was supposed to do something in fab that automatically sets
DEFAULT_POWER_MANAGEMENT=ALWAYS_ON when emulator is selected.


Reply to this email directly or view it on GitHub
#6 (comment)
.

@emarsman
Copy link
Collaborator Author

emarsman commented Dec 6, 2014

I just updated to the latest iOS 8.1 and got the same behavior.

@mgiannikouris
Copy link
Owner

After we spoke yesterday, it sounds more like this is the original timing issue with iOS connections, not any issue with the device power management.

To find out, I've increased the time delay well beyond what is needed to avoid crashing the connection with our iOS devices. Please build the latest commit and let me know the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants