PlayStation 3 Bluetooth Remote

Questions and comments specific to a particular plugin should go here.

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Mon Mar 04, 2013 4:14 pm

Thanks, it seems to work ok with 32bit win7. I like that battery level.
Can eventghost see it? And how i can send it to xbmc main screen?

I have 5-10s working delay, when remote goes sleep. Think that you can do nothing to speed up it?
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby miljbee » Mon Mar 04, 2013 4:59 pm

Thanks, it seems to work ok with 32bit win7. I like that battery level.
Can eventghost see it? And how i can send it to xbmc main screen?

I have 5-10s working delay, when remote goes sleep. Think that you can do nothing to speed up it?


I think you can already get the BatteryLevel inside EG with the PS3Remote Plugin. I can't check it now, I will have a look tonight.
Once you got it, the xbmc plugin will easily display the battery level inside xbmc threw notification message.
For the working delay, there is nothing I can do.
If you set up the hibernation timer to 3 minutes, and you find that sometimes you need to use your remote while it is hibernating, simply increasing the delay should lower the chances that it happens again. Personnaly, I had originally set it up to 2 minutes. I was bothered 2 times by the hibernating procedure. I then set up the delay to 3 minutes. I haven't been bothered again. Of course the best delay will depend on each one habits.

I will try to continue to improve PS3BluMote. The goals are :
- Making it forward all its events to EG
- Making it queryAble by EG
- Making it controllable by EG
- Finally, making it compatible with several PS3 remotes at the same time

The final App might be a bit redundant with the already existing plugin, but I want to use this little project to demonstrate the power of the TCPEvents plugin, and some other nice tricks related to EG.
I hope I will have the time and keep the motivation to finnish all that. We will see ....
miljbee
Experienced User
 
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orléans, France

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Mon Mar 04, 2013 5:30 pm

- Finally, making it compatible with several PS3 remotes at the same time


Only ps3 remotes? i might buy this for kids, but it really needs sleep mode. Expensive batteries.

http://the-gadgeteer.com/2012/05/26/sat ... h-devices/
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby miljbee » Mon Mar 04, 2013 5:46 pm

Yes, i have this one. But since it is seen as a keyboard by windows it is impossible to take exclusive control of it. If the default actions for the buttons correspond to your needs it works out of the box.
miljbee
Experienced User
 
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orléans, France

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Mon Mar 04, 2013 5:57 pm

miljbee wrote:Yes, i have this one. But since it is seen as a keyboard by windows it is impossible to take exclusive control of it. If the default actions for the buttons correspond to your needs it works out of the box.


So eventghost wont work with it? What about battery lifetime with pc?
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby kalia » Tue Mar 05, 2013 7:05 am

miljbee,

Thank you for replying. After many hours of frustration, I have come to the conclusion that there may be some issues with my bluetooth adapter (D-link dbt-122). I am going to try another bluetooth adapter tomorrow and see how it goes. Again, thank you for replying and the improved PS3BluMote sounds promising.

Thanks,

Kalia

Kalia,
make sure you are not messing the two bt address of the remotes. Once you are sure of the adresses, run BDRemoteSleep with the btAddress of the remote you want to sleep as a parameter.
This way, BDRemoteSleep, won't do discovery, and you will be sure that it will try to hibernate the remote that correspond to the address passed as a parameter.

Concerning the new remote, I can't tell for sure since I don't own one.

Concerning the old remote, I have two of them and I tryed BDRemoteSleep on Both.
I have tested on two computers, Both running Win7 x64, the first has the sp1, the second hasn't.
The first one has an untouched MS BT Stack, the second one has the Widcomm profile pack.
kalia
Experienced User
 
Posts: 109
Joined: Wed Aug 12, 2009 1:10 am

Re: PlayStation 3 Bluetooth Remote

Postby miljbee » Tue Mar 05, 2013 8:42 am

I might buy this for kids, but it really needs sleep mode


I Think that now, this battery problem is solved !
Just use PS3BluMote, BDRemoteSleep, or PS3RemoteSleep

If you integrate one of these tools properly, the remote will hibernate when not used, and the batteries should last months.

I Have started using some preliminary versions of these tools 3 weeks ago and the remote was reporting 80% Battery level.
Today, it still reports 80% ...

The remote is paired with a computer that is on 24/7
miljbee
Experienced User
 
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orléans, France

Re: PlayStation 3 Bluetooth Remote

Postby sideone » Tue Mar 05, 2013 4:49 pm

Hey all-

I have been using eventghost for quite some time and have a pretty decent setup. I have recently upgraded from usbuirt to the bd ps3 remote. After fixing all things battery related, i decided to purchase another ps3 remote as i extend HDMI wirelessly to another room. I have been able to get both BD remotes to operate properly for a few minutes by creating another ps3 plugin and assigning the proper index (i believe). However, after the bd hibernation (set at 1 min idle times), the remote is non responsive and all macros are now doubled. So if i have a button assigned for guide in WMC8, it repeats guide twice. This is true will all assigned buttons to the bd controller.

Does anyone have any ideas on how to correct?

thanks in advance,

sideone
sideone
 
Posts: 4
Joined: Tue Mar 05, 2013 4:33 pm

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Tue Mar 05, 2013 5:39 pm

Trying to get battery level to xbmc. I find ps3 plugin action, but when i press test button i get only this:

19:34:21 PS3: Sony Computer Entertainment Inc BD Remote Control: Get battery level

Can't see 1-5 number.
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby gechu » Tue Mar 05, 2013 6:16 pm

Study the macro code below and you´ll see that the value is available in the variable eg.result

Code: Select all
<Macro Name="Get battery level" Expanded="True">
            <Action>
                HIDPS32.GetBatteryLevel()
            </Action>
            <Action Name="Show OSD: battery level: {int(eg.result)}">
                EventGhost.ShowOSD(u'battery level: {int(eg.result)}', u'0;-37;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (128, 255, 128), (0, 0, 0), 0, (0, 0), 0, 3.0, True)
            </Action>
        </Macro>



May I ask why you want the battery level all the way into XBMC? Perhaps printing it on top of XBMC is enough? - If so, the code above should do it.
gechu
Experienced User
 
Posts: 58
Joined: Sat Jan 07, 2012 10:35 am

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Tue Mar 05, 2013 7:08 pm

gechu wrote:May I ask why you want the battery level all the way into XBMC? Perhaps printing it on top of XBMC is enough? - If so, the code above should do it.


Thanks, it works with desktop.
How i get that batterylevel to xbmc? Maybe best place would be that top bar. I use aeon nox skin.

Image

And maybe some other pop-up, when xbmc start and battery level is critical?

Edit: Maybe i can use xbmc RSS bar? When battery level is under 2, eventghost send rss feed? Is that possible?
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Tue Mar 05, 2013 7:49 pm

<Macro Name="Get battery level" Expanded="True">
<Event Name="PS3.Button.Num9" />
<Action>
HIDPS32.GetBatteryLevel()
</Action>
<Action>
FileOperations.Write(2, u'&lt;rss version="2.0"&gt;&lt;item&gt;Battery Level {eg.result}&lt;/item&gt;&lt;/rss&gt;', u'C:\\Users\\televisio\\Desktop\\testttt.xml', 0, 0, False, False, False, 'cp1252')
</Action>
<Action Name="Show OSD: battery level: {int(eg.result)}" Enabled="False">
EventGhost.ShowOSD(u'battery level: {int(eg.result)}', u'0;-37;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (128, 255, 128), (0, 0, 0), 0, (6, 7), 0, 3.0, True)
</Action>
</Macro>

I try this, and i get my own .rss file, xbmc does not show it. :)
<rss version="2.0"><item>Battery Level 4</item></rss>

Edit: I try this later today.

http://forum.xbmc.org/showthread.php?ti ... pid1130351
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Wed Mar 06, 2013 1:15 pm

Can't get that fileoperation plugin to write whole rss file.
Anyway, this is better way.

<Macro Name="Get battery level" Expanded="True">
<Event Name="PS3.Button.Num9" />
<Action>
HIDPS32.GetBatteryLevel()
</Action>
<Action>
FileOperations.Write(87, u'{eg.result}', u'C:\\Users\\televisio\\Desktop\\test.xml', 0, 0, False, False, False, u'utf_8')
</Action>
<Action>
XBMC2.SendNotification(u'Battery Level', u'{eg.result}')
</Action>
</Macro>

Now i get battery pop-up with remote button, but i want see that popup automatic if battery level is critical. Is there any " jump if" result is 2 or lower option?
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: PlayStation 3 Bluetooth Remote

Postby miljbee » Wed Mar 06, 2013 1:41 pm

You just need a single action to do this.

Use a python script with something like this inside :

Code: Select all
batt = eg.plugins.HIDPS32.GetBatteryLevel()
if (batt<2):
    eg.plugins.XBMC2.SendNotification(u'Battery Level', str(batt))


Adapt it to your needs !
miljbee
Experienced User
 
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orléans, France

Re: PlayStation 3 Bluetooth Remote

Postby piipes » Wed Mar 06, 2013 4:48 pm

miljbee wrote:You just need a single action to do this.

Use a python script with something like this inside :

Code: Select all
batt = eg.plugins.HIDPS32.GetBatteryLevel()
if (batt<2):
    eg.plugins.XBMC2.SendNotification(u'Battery Level', str(batt))


Adapt it to your needs !


Is there some python help page? How i can use those script? I have use eventghost long time, but only graphic drag&drop.
I want to learn, if you only point to right way. :)

Edit: Hops, there is python plugin. Just copy&paste. :)
Thanks, it works.
piipes
 
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 4 guests