News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - johanr

#1
Developers / ruby initialise command vs receive buffer
December 09, 2010, 11:04:36 AM

Hi!

Starting off as always to excuse myself for posting, maybe even in the wrong section(?)
Anyway. a pointer to a page where these things are described would be as appreciated as giving pointers to what is not ok.

What is wrong with my initialise command?
I assume the answer from the device is handled correct, hence the device getting disabled upon quick reload(if power is on in this case) since I tried to change the first buf.index
to 001 and then it does register ok.
Can the init command not put devices as enabled? (i.e unclick the disabled button)
Goal: when init send power question, if receive 000(power off)  set device as enabled
               if receive 001(power on)  set device as enabled
If no response at all, then disable device..
#31-Nov-10 14:13 init Panasonic AE3000

initok=false

for iRetry in 0...4
print "Initializing unit\n"
conn_.Send("\x02QPW\x03\r")
buf = conn_.Recv(100, 500)
if( !buf.nil? && !buf.index("000").nil? )
print "Initialized ok\n"
initok=true
if( !buf.nil? && !buf.index("001").nil? )
print "Initialized ok\n"
initok=true
break
else
print "Didn't respond to command\n"
end
end

if initok==false
DisableDevice( device_.devid_, true )
print "The device wouldn't respond. Disabling it.\n"
return
end
if initok==true
DisableDevice( device_.devid_, false )
print "The device responded. Enabling it.\n"
return
end

print "Initialized ok, doing log\n"
end


Below is the receive command(also copied from onkyo template)
I am not sure it is correct either, seems like it is reffered to in the init command but then it seem to be misspelled?
I guess it listens for what comes but what is the things between supposed to do " " ?
I guess this what's expected from the device?


buff = conn_.RecvDelimited("\1a", -1)
print buff,"\n"




Br
Johan
#2
Users / AcerRevo 3610 atom330 ION MD on 8.10 core:
June 04, 2010, 08:21:50 AM
Hi!

Finally released some money and bought the above to have as a first MD to show the family and others more of the fancy stuff with lmce.
Read that this 3600 should work but it Must be based on ION..
Also have read about people having problems with pxe and the eth0.. But I dont think I have the same..

I get different problem than most guys seem to have during pxe boot.
The boot hangs sometimes complaining about acer-wmi interface..

If not complaining(visibly) on the above it hangs on "loading hardware drivers"

Tried acpi on/off in the 01-xxxxx.cfg file in the core.
Also changed amd64 to i386 in webadmin.
Will look around for new bios tonight forgot to check that yesterday.

Maybe someone has some input on what I can do to bypass this?
Andrew@CHT perhaps
;) ?

-Johan
#3
Users / Panasonic AE3000 New device template, need advice
February 25, 2010, 09:46:30 PM
Hi, annoying me again!

I am working on a new template for the Panasonic AE3000 projector and I really want to get that controlled via serial.

So I have created a template under panasonic tv:s.

Defined the basic codes(on/off) as I have understood they should be written.(it's nicely documented in the manual)

Then I have copied the commands from Onkyo template for the Internal commands, But..I feel this is not right..

When you guys makes new similar templates. How do you know how to handle the messages that comes back?
I guess the DCE will route the messages based on the usb id. But then what?  ???
Do I need to debug the device to find this out? in that case how do I do that other than just "tail -f"

Thankful for all help or guidance or tip so I can get this one working so I can share it(somehow).

Br
Johan
#4
Users / rs-232 conflict(?) need guidance..
February 25, 2010, 09:32:31 PM
in my current setup I am controlling a Onkyo receiver over serial from the core. I am using the aten usb to serial converter.

Now I am working on a new template for the Panasonic AE3000 projector and I really want to get that controlled via serial.
So I have created a template under panasonic tv:s.
Defined the basic codes(on/off) as I have understood they should be written.
Then I have copied the commands from Onkyo template for the internal commands.

Problem:
It seems like as soon as I connect the serial to usb adapter(same brand as the onkyo one) The core looses connection to the Onkyo and puts it into "disable" and not registered..

Even though the bus id is not the same, can it be so that there will be a conflict since they are using the same brand? not the same adapter but the brand is same..
If not, then I wonder if I have exceeded my powerlimit by using to many(only 3 though) usb devices. I just feel it is not very likely since rs-232 does not draw much current as I know..

Question:
1. based on the above explanation, can it be a conflict?


Br
Johan
#5
Users / 0810: Timed Events adding new entries by itself
February 23, 2010, 10:57:44 PM
me again
will try to be as precise as possible.
Tested with Mozilla Firefox and Internet explorer.

Go to timed events by clicking on the link on the left pane, then when there click the timed events link again on the left side pane and voila. A new empty event is created.
Saw these empty events being created in 0710 also but never found out from where they came, now I know.

Does this happen to others as well?
i.e shall I open a trac for it? not really high prio stuff but worth noting :)

-johan
#6
Hi!

1. maybe this is clear to everyone but not me  :-[ what is the correct definition of night and day? i.e. when does night begin and day begin?

2. been trying to get the respond to events working like " media on before 17:30 do not turn ambient lights on" and off course another even for "after 17:30 turn them on" by using the ">" "<"

tried in 0710 but never managed to get it working with the >17:30 or the <17:30.
And from what I have been reading in different posts it seems like this will not work in 0810 either.
If this is the case also in 0810 is there another way of making this?



-johan
#7
Users / [solved]select hdmi in 8.10 fails ok in 7.10
February 22, 2010, 08:28:09 PM
Hi!

Bought a new hdd and swapped it with my old 7.10 hdd just to have a fallback plan since apparently this is a live system and needs to be working 24/7 (or at least when my son and wife is awake)  ;D

Using same hw as I had on 7.10 (which works)
Mobo is ABIT AN-M2HD with one Hdmi and one VGA
Kernel version:2.6.27-17-generic

I am confused.
I have a panasonic ae 3000 connected to the hdmi via an onkyo 906. same bios settings as before and Nothing changed except the hdd and off course the new 8.10.

When I try to choose the hdmi(720p 60hz or 50hz) via avwizard using temporary monitor connected to Vga. It just fires up the higher res. settings on the VGA output.

- I have tried using HDMI-2 option
- I can disable the hdmi audio in the bios and tried that one.(same bios settings though as being used currently in the 7.10)
- Tried changing the settings to what I want and then after lmce was up restarting and having only the hdmi connected.
- connected the Pana directly to the hdmi on the mobo
- been playing around with EDID(true and false) in the Xorg conf files
-changing xorg conf vertikal and horisontal freq. values to same as in 7.10
- hdmi connection works when using hdmi -> dvi cable connected to PC monitor..

I just dont understand this, I am now running the other hdd with 7.10 and that one works just fine..
Questions:

Kernel, am I using the latest and greatest?
I attach a cropped version of the printout from when I was remotely logged into the system and started the avwizard, changing settings to my liking to log and see what was going wrong and in the end killed it(?) by hitting ctrl-c but I cannot find anything weird..

why work in 7.10 but not at all in 8.10?

#8
Users / zwave tricklestar include problem
July 07, 2009, 09:19:11 PM
Hi again been busy with the family and new garden lately.

Have done a duct tape solution including zwave relays (on off devices) to control the watering valves.

Now I wanted to add these devices to the zwave network and doing as should with the tricklestar in config mode press and hold, green light, release and press again, blinking.. Now to the device (holding the tstar next to it) doing the include(3 quick presses) also tried doing the 4 press procedure which does a reset.

Nothing.. the tricklestar doesn't even try to zoom in on the device.. usually this can be seen by faster blinking and then lock on.. =)

I have reloaded the router(just in case) and have tried this a few times with both devices and looking at the log(level 36,40,41) but I start to wonder if the remote is not even in the network?
how can I check that?

Does the tricklestar needs to be connected 24/7 to the usb?
I have not had it connected in a while before now since I only use it for inclusion. Connected it a day before though to charge it...

I have seen this before and then I solved it by adding all devices once again but surely there must be a simpler way since there starts to be a few devices now in our home..

Thankful for all inputs

-johan
#9
Users / add a harddrive
February 09, 2009, 08:08:59 PM
simple task I thought. Just buy one and plug it into one of the free SATA ports.
But the Core doesn't recognise it  :-\ it's a brand new unformatted(!) 720Gb Samsung. I guess I have to format it, but then I need to mount it right?

In Kubuntu I did the same(have a computer that will be using FreeNas) but there I had to manually format and mount it. However doing this in LinuxMCE I have understood is Not the way to go.

I have done similar with an IDE disk and that one was found instantly, however that had been used before but with windoze format.

So, what is the Right(read, how would you do?) procedure to do it, don't want to mess this up.


-johan
#10
Users / Zwave Tricklestar procedure check
February 09, 2009, 07:50:28 PM
Hey! now it works better. Reset of the Seluxit and the Tricklestar did the trick.
Added the dimmers and other plug-in switches that I have.
Made a quick reload of the Core. Made function check and all works well. and abit faster response can be noticed indeed.(or it may be psychological since I know it should be)

Then I installed new switches and wanted to add those as well but now the Tricklestar behaves like that again.. (flashing red)

This never happened with the other driver so I wonder if it could be the driver or (more) possible me doing it wrong?

When adding a new switch/dimmer I simply do:
Send download config to the Seluxit
Press and hold the upper button until green, then quick press on the same button, tricklestar blinks green and I press the include combination on the switch/dimmer, tricklestar then starts to blink red.
Is this the right way(at least thats how it's done in the wiki)

Off course a reset of the tricklestar will help but then also all the config will be lost(?) and I need to go around and add all the switches again.

Not sure if I should post this in the drivers thread but instead of destroying that thread I choose to start another. It's probarbly just me doing wrong anyway?

-johan
#11
Users / control onkyo receiver via ethernet
January 15, 2009, 07:16:36 PM
Been looking at this and read the wiki about how to control via serial etc but I don't get how I can control the Onkyo using the ethernet.

I have been playing abit with the device template already in the LMCE(need to make a copy of it before continuing) but it seems like even I set the onkyo to be IP based the Core/hybrid still want's me to use serialport when sending commands.
Where do I define where the commands should be sent out and to what ip?

Then the more I think about I wonder how to send serial commands via ethernet(ip)  ???

Do I need to setup a new device template or how should I do this? anyone else been tried doing control via ethernet?

Off course I can go and buy a usb->rs232 dongle but since the onkyo can be controlled via ethernet I was thinking it should not be needed.

Br
Johan
#12
Users / Zwave necessary components for easy integ
December 09, 2008, 09:28:27 PM
as the topic describes I have now moved from plcbus more or less completely due to the uncertanity to speak between phases.And the selling arguments in Every plcbus vs. thread since hari started to work at the driver

I am in the mode of ordering the needed components this week. For starters I am planning just to control lights, inside and outside. Also turning on the engine heater is a must this time of year.

From what I understand you off course need the seluxit controller to connect to the core.
But then it's abit unclear.
* Do I need the remotecontrol still as well to add the dimmers/switches etc to LMCE?
* Can I buy whatever Merten switch/dimmer I want and it can be controlled hari-magically ;) without support/compability issues?

In case not, Anyone has a list over "supported" switches and dimmers?
I will then add it to the wiki since I can only find controllers there.

Btw I live in EU..

-johan
#13
Users / Plcbus latest news
December 09, 2008, 12:25:29 AM
I have read until my eyes bleed and I have a few Q's regarding this. Silly questions maybe..

What is Not working today with Plcbus hw? what can I expect?
Does the 2-way communication work?
I will have to talk between the phases and could not find anywhere how that is being done, just that there needed to be an modification to the command being sent(?)

I plan to buy alot of insert modules(alot of money) and start to wonder, are there any plcbus hw that may not work well?  My guess is that as long as it is Plcbus then it should be fine, right?

I am seriously thinking of Maybe.. Zwave afterall depending on the status of plcbus (damnit hari.. I thought had it all figured out..)  ;)
-johan
#14
Users / Multiple users vs DVB-S/T
December 05, 2008, 08:25:58 AM
Hi, have so many questions.(sorry)

I have been reading alot, searching alot and I get more and more confused about how to set things up if you have multiple users wanting to watch different DVB-S or DVB-T channels.
I know about the hw restrictions of having a need for many LNB's but what I do not understand is how is this working right now in LMCE.

In case I have multiple DVB-S cards in the Core and multiple LNB's and that thing sorted.
Can my son watch one channel in his room and me watching one thing in the living room?
I read somewhere that multiple DVB-S or T cards in the core currently may not be supported/working?

So how have you guys set this up? (been looking at some of your setups but cannot get an answer on How things are tied together and how it is working)

-johan
#15
Hi, after a few days of trying to get the root cause found I have to ask here.

Lmce is now setup as should be and as recommended. I use Core/hybrid and an N810 setup as an orbiter. I noticed however that it since the last sw update with the exit button thingy that the orbiter now is Really slow(I have had it working and being faster before)..

For example when from the start view pressing Video, it takes up to 6 seconds sometimes even more before it finally shows the video's.
Then when pressing the Option(to do filtering) it takes another 6-xx seconds. When pressing Go another 6-xx seconds.
This behaviour is constant. However it seem that when a movie for example is started I can press the >>| button and it instantly skips to the next chapter.

From the Startpage I have also noticed that when pressing the LMCE button (lowest to the left)  it takes long time before the next page occurs, but pressing Home from that screen(applies to other pages as well) goes instantly.

I have made pingtests from and to the orbiter and the RTT(roundtriptime) is around 20ms. Not bad I think.
Tried changing the frame interval in advanced(lmce admin, orbiter) no change in behaviour.
My feeling is (after watching the core interface led and hdd led) is that the orbiter is not sending the command instantly. But waiting.. which is weird.

Did some Tcpdump on the eth interface in the core and found that for some reason I do not get realtime update when doing that.. sometimes I can see traffic and sometimes not(when going to different pages in the orbiter)
Even when there Should be traffic on the eth interface, the tcpdump doesn't output it so I don't really trust it or should I ?
I found that making a tcpdump on the lo interface(looback) is more reliable.

What can be the issue? has anyone else noticed similar behaviour?

->BTW, when clicking the ping every 5 seconds in the lmce admin, orbiter setup as instructed in the wiki. I cannot get the N810 to load. It always stops at a pink screen saying user.. something in the top. Then when unclicking that box(5 sec ping) it starts to work(after full regen and router reset) but very slow..


Br
Johan


edit. changed the title to a more describing one
#16
Users / messed up
November 10, 2008, 10:13:46 PM
 ::)
Hi there Gurus,

me made 2 mistakes
1.Created two On-screen orbiters on my hybrid
2.Rebooted the machine....

Now it boots up and gets stuck in the dcerouter login prompt.
Any advice on what to do from here?
Possible to "load" old backup via dcerouter prompt?

-johan (trying to shorten my posts radically)

#17
Users / Onscreen orbiter shows mobile orbiter screen
November 04, 2008, 11:16:49 PM
Hi again..

Since I have now moved to my final location I am now settin the Core/hybrid up as it should be.Basically that meant from previous config that I needed to move the adsl wlan router into the internal, turn off dhcp(dhcp was turned on in the core prev as well but I designed the net so it would be possible) and thats it.

Anyhow the only thing I have done or basically the changes that I have done is:
* Move the router to internal(dchp off in router etc etc)
* change video res to 720p 60hz VGA (to support my monitor) and checked that all is ok
then
* Change video res to 720 60hz HDMI, to check if projector likes it it did so I stayed there..
NOTE: I do not have external working internet yet.. (due to my isp being somewhat slow)

Everything was fine though until I decided that I wanted to control my LMCE with the Nokia 810.
So, I did as before(except for the workarounds in the fw) followed the manual on how to add it and since it did not want to work I remember having to restart the system for it to be functioning the last time eventhough I resetted it after full regen.
Then the problem started.. Now for some reason I am stuck with an orbiter screen on what is supposed to show the ordinary onscreen orbiter, you follow?

So, I deleted all the other mobile orbiters from the orbiter page and also deleted the 810 orbiter.
Reboot (several times as last desperat action of each step)
went in to the onscreen orbiter Advanced page and clicked "save" on it to get the config settled again
reload
reboot
reset of the onscreen device
reload
r...
rollback to old config as last action but it didn't help (thought the backup backed up lmce config as well)

Somewhere something has gone wrong(because of me doing something most probarbly) and is stuck.. I have seen this happening before and I then solved it by simply deleting the device added and then, voila! .. But not this time.

Where should I look? I have tried to find any useful hint in the wiki but ended up having to post this anyway..
I don't want to(and haven't) changed anything in the onscreen orbiter config since it's really created by the system and was working before..
Is it so that due to not having "internet" connection, the LMCE behaves likes this?
=/
Help, please.. I am clueless.
???
Br
Johan
#18
Hello again

Here I am again with yet another noob question.
I updated the screensaver a few days ago and I was Very lazy. Basically I added all the folders with pics and videos (synced from my N95)
What I didn't think of what that LMCE would read all the files and show the video files in the Video view in the orbiter.Very nice feature!! but this time I felt more like.
Oh! no... crap!.. (there are like 20 clips)

So, before I start going in and out of each directory moving the video clips to one Directory one by one.
Checked the man find but could not see anything like this so I guess there have to be another type of command if it exists (Linux I have learned is full of nice commands and options to those)

Is there a way of doing an advanced find or similar, like

Find *.MP4 move to / whatever / wanted / as / directory /


:-\


Best Reg.
Johan
#19
Feature requests & roadmap / Core Redundancy:What if?
October 14, 2008, 01:08:43 AM
Hi!

This thread is more of a poll of if this is possible for me to achieve or if you as Gurus(yes you are) see any obstacles that I should be aware of before attempting or eve spending time on this.
Maybe the majority of users feels that this is a really good killer feature that could be developed by someone more skilled(obviously I am not)  :)

Having worked in Telecoms for a decent number of years I like the idea of redundancy.
Is there currently or are there any plans on doing so for the Core?
I know that the mtbf for computer hw is fairly high but still I cannot stop thinking about this.
Off course there cannot be total redundancy of like alarm sensors, phonelines etc etc.
but...

Let me explain a bit more what is important for me. Without rewriting kernels and patching(cause that's way out of my leage). But by using the excisting components even more(even that is a challenge).

Lmce is controlling the whole house(or actually we are with the help of..) how cool isn't that?
Although.
Assuming you have a proper UPS and that sort of easy redundant things sorted. What happens when there is a breakage inside the Core, like CPU, Hdd etc?
The alarm system, how does it react to a hw failure in the Core?
Or what happens when the system locks/freezes totally, yeah I know this is not a windows machine but it may happen.
Typically the burgler will try to disarm your system and nothing is impossible. I am not saying that the LMCE should be used to guard Pentagon or the white-house but for most humans their belongings are equally important, are you with me what I try to depict?

I would like to know if it is possible to somehow easily configure the Core to have a close friend(stdby).
So all config files will be stored externally(for example) maybe and the other core is brought up to life(from suspend maybe) when the Master Core stops responding to whatever is used as status check(echo reply for example)
and starts to load the config from the external hdd's and when it's up it will poll each device for their status and send an message to the orbiters(like the UE = mobile phone)
it will also make sure the Master Core is really dead. Maybe even a script in the Master Core will reset itself when a certain trigger is met and a message is broadcasted to the orbiters.

Another unanswered question(in my head) is how the routing could be sorted, however..
I am not loooking for a hsrp/vrrp setup(even though it would be really nice) but something simpler.

To my understanding this should be possible to achieve in the current LMCE. Am I just being dumb or is it possible?

sorry for all the txt but I want to make sure my idea is understood and not taken as an "I want this, please deliver me this.." kind of thread because I would like to contribute with what I can if possible off course(my time and skills are kinda show-stoppers though)..

Br
Johan

#20
Users / Dvd Ripping:Get rid of commersials etc
October 13, 2008, 11:49:36 PM
Hi!

I am not very used to the ripping culture and I have done some searches but can't really get the answers I am looking for. So since there must be at least a bunch of you guys here that Rip's your own dvd:s maybe you can anwer these short but yet so (for me) important questions.

Is there a way of ripping a dvd in LMCE and choose not to gather the commersials etc.?
Or is there such a ripping program/app that creates files that LMCE (Xine?) can handle?

Reason for asking is that when I (my son) would like to watch a movie I(my son) dont like spending 1-3 more or less waiting for the movie to start.

Br
Johan
asking alot of questions because I want to learn  :)