Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

PlayStation 3 Bluetooth Remote

Questions and comments specific to a particular plugin should go here.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: PlayStation 3 Bluetooth Remote

Post by Bitmonster »

Thierry wrote:It should be better if this kind of things was available inside EG itself, ie if there is a simple way inside EG to do something different depends if it's short press, long bress, double click or mixte click but it's not the case (or I miss it ?) so ...
We have "Jump if long press" since ages. :wink:
And it even allows the user to cascade the setting, so he can have a short press, a one second press and a 4 second press behaviour with the same button and a completely different setup for another button or another context. Double press was never implemented, simply because not many remotes are able to generate such short timings reliable, but it would be possible to implement it as an action the same way as AutoRepeat and JumpIfLongPress of course.
Same than Short, Long and so on. It's usefull to do something when the remote is not used during a long time and difficult to do inside EG .xml file ...
This I actually haven't understood. What should the user do with all the other HID devices (if the remote is not connected) in this list that he would otherwise later have to do in his XML?
The remote don't generate a zone event. same than the other, it's avoid to made a big "OR" inside .xml file ...
The ATI Remote Wonder II has a similar zone behaviour (you only can see the zone change when the next button is pressed). I decided to send a zone event in advance if this happens. So if the user changes the zone to 2 and presses the play button for example, he first gets a (one shot) ATI.Zone2 event, immediately followed by an enduring ATI.Play event. This way the user can take advantage of context folders for different zones or use them without regarding the zone or only regard the zones in selected contexts on his decision. So he has all flexibility without worrying if he might take the wrong decision on a "Zone event" checkbox.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: PlayStation 3 Bluetooth Remote

Post by Bartman »

I am currently thinking of a way to integrate basic HID function in the EG core so other plugins can use these functions and do not need to copy a fair amout of code.
I thought of a way similiar to the serial class so the plugin only has to define a callback which parses the data.
Does this concept work with your plugin?
owlsroost
Posts: 1
Joined: Fri Feb 20, 2009 11:55 am

Re: PlayStation 3 Bluetooth Remote

Post by owlsroost »

Thank you very much for a great plugin :)

I'm running it on Vista32 (Home Basic) - it works OK with the built-in Bluetooth stack except (as expected) the power-saving features don't work.

It is possible to install the Widcomm 5.1.0.1100 software on Vista - I found a guide here http://www.dev-hack.com/pafiledb/index. ... =view&id=4 - once you've got this running, the power-saving features then work OK.

You can also put the remote to sleep by holding down the 'PS' (PlayStation) button for 5 seconds or more.

[Update - it also works OK with the Widcomm 5.1.0.4200 software installed]

Tony
Thierry
Plugin Developer
Posts: 13
Joined: Sun Nov 25, 2007 9:50 pm

Re: PlayStation 3 Bluetooth Remote - 3.0.1

Post by Thierry »

magao wrote:Updated to 3.0.1
Attachments:
PS3-3.0.1.zip [11.56 KiB]
Downloaded 109 times
Hello,

Thanks for this very good update.

Unfortunatly the plugin don't works anymore after EG version 0.3.6.1486

On 0.3.6.1487 the result is :

Code: Select all

Traceback (most recent call last):
  File "wx\_core.pyc", line 14576, in <lambda>
  File "D:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 390, in Enable
    if self.HasValidId():
  File "D:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 187, in HasValidId
    if not self.tree.IsExpanded(parent.id):
  File "wx\_controls.pyc", line 5381, in IsExpanded
ValueError: invalid null reference in method 'TreeCtrl_IsExpanded', expected argument 2 of type 'wxTreeItemId const &'
Traceback (most recent call last):
  File "wx\_core.pyc", line 14576, in <lambda>
  File "D:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 390, in Enable
    if self.HasValidId():
  File "D:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 187, in HasValidId
    if not self.tree.IsExpanded(parent.id):
  File "wx\_controls.pyc", line 5381, in IsExpanded
ValueError: invalid null reference in method 'TreeCtrl_IsExpanded', expected argument 2 of type 'wxTreeItemId const &'
Traceback (most recent call last):
  File "wx\_core.pyc", line 14576, in <lambda>
  File "D:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 390, in Enable
    if self.HasValidId():
  File "D:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 187, in HasValidId
    if not self.tree.IsExpanded(parent.id):
  File "wx\_controls.pyc", line 5381, in IsExpanded
ValueError: invalid null reference in method 'TreeCtrl_IsExpanded', expected argument 2 of type 'wxTreeItemId const &'
on 0.3.7.r918 the result is

Code: Select all

Exception in thread \\?\hid#hid_keyboard#2&1f22840e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}:
Traceback (most recent call last):
  File "threading.pyc", line 525, in __bootstrap_inner
  File "D:\Program Files\EventGhost\plugins\PS3\__init__.py", line 1058, in run
HID.Zone.A3
  File "D:\Program Files\EventGhost\plugins\PS3\__init__.py", line 778, in __init__
  File "threading.pyc", line 662, in name
AssertionError: Thread.__init__() not called
The plugin itself is unchanged, it's the changes in EG between 0.3.6.1486 and 0.3.6.1487 cause plugin to fail.

Any advise will be welcome

Thierry.
Last edited by Thierry on Fri May 01, 2009 11:13 pm, edited 1 time in total.
magao
Posts: 21
Joined: Sun Nov 09, 2008 11:06 am

Re: PlayStation 3 Bluetooth Remote

Post by magao »

I'm glad people are obviously using it. I no longer have a PS3, so I won't be able to help out with any further updates.
nova77
Posts: 3
Joined: Sun May 03, 2009 10:14 am

Re: PlayStation 3 Bluetooth Remote

Post by nova77 »

I am a total noob to python but I managed to make it work for 0.3.7 r918. Attached you'll find the file.
Attachments
PS3-3.0.2.zip
(11.71 KiB) Downloaded 585 times
oblivionlord
Posts: 14
Joined: Sat Apr 18, 2009 2:33 am

Re: PlayStation 3 Bluetooth Remote

Post by oblivionlord »

This plugin works but now it doesnt acknowledge keystrokes but, the log section shows that it is acknowledging button presses on the remote. This is really 1 flakey plugin. From double key presses to no longer functioning.
oblivionlord
Posts: 14
Joined: Sat Apr 18, 2009 2:33 am

Re: PlayStation 3 Bluetooth Remote - 3.0.1

Post by oblivionlord »

magao wrote:Updated to 3.0.1 - ripped out the "repeat" events. Thanks for the pointer I needed - with that it became obvious. This version will continue to work with xml files from 2.0.2 and 3.0.0 despite removing the "repeat" config option - I've left a dummy parameter in.

<edit>I should note that the low-power mode will only work if you are using the Widcomm bluetooth stack - it will not work with the default MS stack.</edit>
Where do you look to see if your using Widcomm or MS stack?
uncola
Posts: 3
Joined: Wed Jul 01, 2009 4:36 pm

Re: PlayStation 3 Bluetooth Remote

Post by uncola »

in device manager, if your bluetooth radio shows that it's using a microsoft driver, then it's not widcomm.

I asked this on th e xbmc forums thread but I'll ask it here, too.. does anyone know how to get autorepeat working?

if your bluetooth adapter is broadcom chipset, this should install the widcomm 6.x for you
http://www.broadcom.com/support/bluetooth/update.php
4list4ir
Posts: 4
Joined: Mon Jul 06, 2009 3:17 pm

Re: PlayStation 3 Bluetooth Remote

Post by 4list4ir »

I still have no Sleep / Hibernate
I've installed the Widcomm 5.1.0.1100 Drivers and installed the patches. (to allow sleep command)
I've gone back to V 0.3.6.1486 of eventghost (to accept the following)
I've put in the v3.0.1 of the plugin (which enables the sleep command)

Should this work?

I still see no events in eventghost wth sleep or hibernate, Everything else works but batteries are not holding out long enough

what am i missing? here is a screenshot
Attachments
EG.PNG
uncola
Posts: 3
Joined: Wed Jul 01, 2009 4:36 pm

Re: PlayStation 3 Bluetooth Remote

Post by uncola »

I'm using build 1066 with the ps3 plugin version that's built into that.. it says it's version 3.00, but when you go to the add plugin screen and click on ps3 plugin, the info panel on the right says it has the new power saving sniff mode. so I think it must be some newer version. I'm using the script from the OP of this thread.. I added some keys.. I think the power saving is built into the plugin because I haven't had to change batteries yet.. dunno if there's a way to manually initiate sniff mode
magao
Posts: 21
Joined: Sun Nov 09, 2008 11:06 am

Re: PlayStation 3 Bluetooth Remote

Post by magao »

3.0.0 does indeed have sniff mode - IIRC I implemented it to automatically go into sniff mode when one of the eventghost events occurs - the one that's either 30 or 60 seconds after no user input.

There's currently no way to manually put the remote into sniff mode, but if you hold down the PS button for 6 seconds it should put it into another power-saving mode (one I couldn't do automatically).
4list4ir
Posts: 4
Joined: Mon Jul 06, 2009 3:17 pm

Re: PlayStation 3 Bluetooth Remote

Post by 4list4ir »

Magao...

1.Should the latest Eventghost work with sniff mode?
2.Should I be seeing an event in the log when the hibernate/sniff mode occurs?
(Am I supposed to be seeing HID.Hibernate?)

I'm masuring the current flow on he remote with a DMM and i've not seen it drop, after any significant wait.

What is supposed to be happening to save power?

Regards
Ali
magao
Posts: 21
Joined: Sun Nov 09, 2008 11:06 am

Re: PlayStation 3 Bluetooth Remote

Post by magao »

It's been a while (as I said earlier in the thread, I no longer have a PS3) - I've had to go back to the source.

It takes effect on HID.Hibernate (and I just realise it only takes effect on HID.Hibernate - it doesn't bind to the correct event if you change the event prefix). So if you're not seeing HID.Hibernate at all, then there must be some activity from the remote before the hibernate period (which is set in the config). Make sure you're watching all events, press a button on the remote, and then leave it alone completely for a minute or so.

Of course, if you don't happen to have the Widcomm drivers installed, you won't get SNIFF mode even if you do get the HID.Hibernate event.
BurgerNZ
Posts: 1
Joined: Sun Aug 30, 2009 6:32 am

Re: PlayStation 3 Bluetooth Remote

Post by BurgerNZ »

Hi,

I too have no luck getting the remote to go into power saving mode. No EventGhost events are generated if I leave the remote idle, and the BT icon on the taskbar shows it connected.

This is using the latest EventGhost, with the PS3 plugin that came with it, and Widcomm stack. Also using Windows 7 x64 if that makes any difference. The writer of the PS3 Remote application (http://www.benbarron.com/applications) has said that the way he diables the remote is a hack which does not work in x64 installations.

Hopefully a solution can be found...
Post Reply