Restart power @ Teensy through GIMX

Discuss everything to do with GIMX here
Post Reply
sephirotdnf
Posts: 69
Joined: Sat Feb 23, 2013 4:11 pm

Restart power @ Teensy through GIMX

Post by sephirotdnf »

Hello @Matlo,

Currently I have no issues with GIMX + RPI2B and Xbox One. It works perfect. Sometimes it hangs but it's very occasionally.

Every time I restart GIMX connection my Teensy 2.0 needs ot be reconnected.
Is there option to do it via GIMX or via Unix so I don't need to re-plug miniUSB each time?
...or adding reset button to Teensy at least?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Restart power @ Teensy through GIMX

Post by Matlo »

Hi,
I moved the topic to the GIMX discussion section.
This should do the trick:

Code: Select all

printf '%b%b' '\x55' '\x00' > /dev/ttyUSB0
Warning: the reset code (x55) value may change in the future.
Its current value is defined by the BYTE_RESET definition here:
https://github.com/matlo/GIMX/blob/mast ... protocol.h
GIMX creator
sephirotdnf
Posts: 69
Joined: Sat Feb 23, 2013 4:11 pm

Re: Restart power @ Teensy through GIMX

Post by sephirotdnf »

I'll test it straight away.
Any chance this could be added to GIMX in Xbox settings so we can tick/un-tick or press "Teensy auto reboot" button or run the command on GIMX exit?

Kind Regards,
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Restart power @ Teensy through GIMX

Post by Matlo »

I'm afraid not. I'm against adding GUI options to work-around bugs that should be fixed instead.

Is your RPi powered from a USB port of the console or from a power supply?
Could you explain the steps to reproduce the issue from an initial state were everything is powered off?
GIMX creator
sephirotdnf
Posts: 69
Joined: Sat Feb 23, 2013 4:11 pm

Re: Restart power @ Teensy through GIMX

Post by sephirotdnf »

@Matlo,

Tested reset. It does't work the way I thought.
Console registers controller disconnected but USB still needs to be manually plugged out and plugged in.
Otherwise it doesn't detect controller at all.

I believe this command is missing from GIMX as currently even after closing GIMX, console doesn't register controller is disconnected.
It registers disconnected controller after this command or after manually plugging miniUSB.

Kind Regards,
sephirotdnf
Posts: 69
Joined: Sat Feb 23, 2013 4:11 pm

Re: Restart power @ Teensy through GIMX

Post by sephirotdnf »

Matlo wrote:I'm afraid not. I'm against adding GUI options to work-around bugs that should be fixed instead.

Is your RPi powered from a USB port of the console or from a power supply?
Could you explain the steps to reproduce the issue from an initial state were everything is powered off?
It's not the issue.
It's how it works.

RPI is powered from the power supply as I use it for some other things.
At this moment I have clean install of up to date Raspbian (update + upgrade + dist update and RPI upgrade run yesterday)

=========================================
Fresh start of GIMX
1:
- power the Xbox on
- power the RPI on
(doesn't really matter what is powered on first)

2:
- reconnect the miniUSB to Teensy
- run GUI
(doesn't matter what is powered on first)

3:
Start GIMX

=========================================
GIMX restart
- press shift+esc
- GIMX console closes
- Xbox doesn't register controller has been disconnected
- plug out and in mini USB to Teensy
- Xbox registers disconnected controller
- start GIMX (doesn't need to close the GUI at all)
sephirotdnf
Posts: 69
Joined: Sat Feb 23, 2013 4:11 pm

Re: Restart power @ Teensy through GIMX

Post by sephirotdnf »

By the way, it works this way since GIMX v5.X has been released.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Restart power @ Teensy through GIMX

Post by Matlo »

sephirotdnf wrote:It's not the issue.
It's how it works.
This is an issue because it's not how it should work.
The adapter is not automatically reset on closing because the Xbox 360 uses a one time authentication procedure, not a periodic one.
GIMX creator
Post Reply