GlobalCache GC-100

From LinuxMCE
Revision as of 15:42, 2 March 2008 by BasolOrico (Talk | contribs) (basourocn)

Jump to: navigation, search

occidental flamenco hotel wilby wonderful dvd flat stove top male penis tattoos roscoe fatty arbuckle loews theatres boston common parking map liv wylder african american rhinoplasty picture machining plastics printable valentine card dodge durango ball joint recall piglet pooh rats on cocaine animation kellcoo uk website johnny cash installing outlook express xp terry pratchett audio book new vida guerra video legi militare ago day hours minutes submitted church skits extraordinary healer psychic stephen story surgeon turoff bobbi calendar air canada ticket new business jeep campers state of georgia health department hooters airlines fyr sitemap url bananas in pajamas theme song mjc builders mi image mixer sony software grog flash animation cheap flight madrid madrid madrid spain spain visit las vegas club hotel casino mermaid baby birth defect as400 lotus notes kent county maryland public schools privacy question raise tactic sitemap jennifer paddock casual man shirt royalty free music mp3 all seeing eye 2.6 serial weils disease another name that was then and we have taken different roads third coast guitar chicago metformin pcos helicopter wedding 1034na praise you charity jobs picture of pamela anderson boob boot jessica made simpson these walking induction cooktop range internet mortgage leads generation point spreads football odds thank you for the interview opportunity martinique hotel magalluf high temperature oven gaskets mens high intensity sports rider motorcycle boots girl interracial edge machinist straight ville de dollard des ormeaux abraham lincoln quotes fool sitemap free irs online tax samurai x wall paper tribbing jds multi router remote control boat 2007 nba star ticket link names of the four horsemen of the apocalypse download porn movie uk land law raven games quake 4 nursing bra young legs child supermodels drug more nabumetone use martina mcbride ticket big free hot sexy tit woman egyptian cats link palm pda toyota fj landcruiser concept speed drills for soccer street racers spongebob squarepants the movie game automotive decals hair dryer marble medallion neck strengthening exercise japanese school girl bondage tetratech emi french models holiday majorca package new home in phoenix arizona shes come undone movie free mp3 files downloads jumping go lets go bar chart graph sample recovery version new testament celeb skin hunks gallery totally free sample rooms for rent missionary position jpg buww coverings waterville real estate direct merchant account central magnesium supplement map astor piazzolla tango new york airports kiplinger prince 03 tennis racket adoption international listing photo georgia car auction home midget pussy free resume cover letter examples chicago sox ticket white freexxxvideo college majorettes domain padmasambhava thangka mental institution anal gaping hole i wanna talk about me home auto salvage wichita ks fielding brochure camry japan new toyota moore county nc map retirment communities florida chile powder store rasping radula sitemap champagne and balloon tumor pictures consulting services day green single calgary canada light zoo send a cheesecake exotic skin motorcycle seats free download firewall software hanging garden of babylon home eucerin redness relief ohio real estate transactions 7650 nokia theme outlander home cartoon comedy joke nude topless prudential bridgeport distal arthrogryposis jaeb theatre 17 age azns are sexy uss reclaimer email this to a friend script what cause a sty sauk prairie eagle newspaper furniture manufacturers linux many mouths one stomach kim loan ben foster hostage rockport boat shoes billiard table manufacturer delivery flower online 500 levaquin mg iowa game and fish famous inspirational speech laser hair removal laser printer samsung toner virtual stripper picture of people having sex love machine wilkinson grant co exeter c# detect leak memory ass big black fuck getting xxx lane county jobs eugene free adult personal web cam babes flash raven teen titans raven animated series nichole mercedes robinson blade group hug michelle indiana oil and gas association hurricane gloria male masturbation sitemap


GC100 is a device which allows you to have remote connection almost anywhere. It's a network device which will forward all your data to :

  • couple of serial ports
  • IR senders and/or sensors
  • several relays

For more details about the product check manufacturer web site.

Send IR codes

LinuxMCE implementation of GC100 assumes that in device tree we'll have children and the messages are actually addressed to them instead of GC100 itself.

So when you are sending "ON" to TV controlled by GC100, the message is routed to the GC100, it finds infrared code for "ON" for that specific TV, sends a command to gc100 to send a specific infrared sequence, which will blink IR sender connected to specific port, and the TV will turn on.

The only two commands that GC100 implements itself are : CMD_Send_Code used to test which IR is suitable for your equipment and CMD_Learn_IR used to learn new IR codes.

Learn IR codes

The learning device is actually unrelated to GC100. It may be plugged into one of GC100's serial ports (don't forget to set them to 9600 bps), or in regular serial port, just be sure you specified right port in GC100 device data.

There are several other devices that support learning of infrared codes : IRTrans, Tira, USB_UIRT.

Learning is done from web page. When clicking "Learn" gc100 will start a thread that will try to get data from the port. If nothing is received in 30 seconds the thread will die. The page will continue to refresh trying to see if anything was added, but after 30 seconds it's useless.


The gc100 jacks are by default configured as IR transmitters, but they can be configured to function as sensors. The sensors are, in their most basic form, two wires connected to a jack plug. When you cross them, a "sensor tripped" event is emitted. I am not currently aware of how this is supposed to function, who will intercept the event and how will it react to it. One idea for using a sensor is attaching a doorbell button to it, which, when pressed, will notify you in some way.

You must go into the gc100's web panel and set the input jack to 'sensor w/ auto notify' to use an i/r jack for a sensor.

How to


The device is not quite plug&play. You have to perform a factory reset and to add it from orbiter ("Add GC100" button).

A script will do some tricks with IP, will submit some pages on GC100's interface and so on. It will install needed software and after that it should say that device is ready to use (don't forget to quickreload)

Before the first use

  • Insert proper wires in relays, devices in serial ports, IR LEDs and/or sensors.
  • Go to device's webpage and set proper inputs/outputs, baud rates and so on.
  • Add child devices in LinuxMCE-admin webpage and set proper device data to match the wiring.

This should do it.

Changes in LinuxMCE 0710 beta 4

The way the gc100 is configured in the database changes in LinuxMCE 0710 beta 4. If you are upgrading from a previous release and have a gc100 set up, you will have to reconfigure it.

The device tree will now have children for each relay, transmitter and sensor port. These are autodetected depending on the settings made to the gc100 itself and updated as the settings change.

If until now you would put a TV directly under the gc100, you will have to put it under a transmitter child from now on. This will tell the gc100 which port to use to send the code, instead of sending it using all available transmitters like it did until now. This will allow you to add more IR devices which use the same codes without stepping on each other's toes, since the IR codes will be routed just to the target device. The old functionality is still in place and you can still add a TV directly under the gc100, but make sure you mark the checkbox that says "Don't autoconfigure" if you don't want the gc100 to manage its children, so your device remains in its place.

This is also true for relays. Add your lights, or other devices that support On and Off commands, under the relay children. The On and Off commands will be routed to the right relay this way.

Known Problems

MAC detection

--Nite man 06:03, 25 January 2008 (PST) To solve the MAC detection problem replace the function get_gc100mac() in the script /usr/pluto/bin/ by new one below:

sub get_gc100mac {
   my($mac, $page, $ret);

   `curl -o gc100mac1 --silent`;
   `curl -o gc100mac2 --silent`;

   open FILE, "gc100mac1";
   $ret = read FILE, $page, -s "gc100mac1";
   close FILE;

   unless($page) {
       open FILE, "gc100mac2";
       $ret = read FILE, $page, -s "gc100mac2";
       close FILE;

   ($mac) = $page =~ /((?:[\dA-F]{2}-){5}[\dA-F]{2})/i;

   if($mac) {
       $mac =~ tr/\-/\:/;
       loggc("Mac Found $mac\n");
       system "rm -f gc100mac1 gc100mac2";
       return $mac;
   } else { exit 1 }


or apply that []

Currently the support for the gc100 in LinuxMCE is broken, at least for some models or firmware versions. The /usr/pluto/bin/ script is for some reason unable to determine the gc100's MAC Adress after it has been reset to factory defaults. As a result it is only half configured and not added to the system properly.

The only known workaround [1] [2] at this time is to manually edit the perl script, and hardcode the MAC address of your gc100. In short, find this line in the script:

sub get_gc100mac {

Then insert this line immediately following it (replace 00:00:00:00:00:00 with the adress of your gc100):

return "00:00:00:00:00:00";

As a result it should look something like this now:

sub get_gc100mac {
  return "00:00:00:00:00:00";
  `curl -o gc100mac1 --silent`;
  `curl -o gc100mac2 --silent`;
  @data1 = <FILE>;

Reset the gc100 to factory defaults if necessary and you should be able to add it from an orbiter as described above.

Another possible workaround might be described on the Plutohome wiki for the gc100, under Complete Manual Install.

Firmware versions known to be affected:

  • 2.4-06 (GC100-06)

Serial Port

The GC100's serial port does not work under LinuxMCE without a small modification, see: Re: GC100 + CM11 setup

The following commands should correct this issue (and make a backup copy just in case):

mv /usr/pluto/bin/ /usr/pluto/bin/
sed -e 's/false/0/g' /usr/pluto/bin/ >/usr/pluto/bin/

It basicly replaces false with 0 in the /usr/pluto/bin/ file. Afterwards a reboot may be in order.

Firmware version 3.0 and later

gc100 with firmware version 3.0 and later is Plug&Play, but not yet supported as such by LinuxMCE. It implements a DHCP client and also has a discovery beacon. Because it is able to get an IP address from the DHCP server, you won't be able to add it using the manual method describe here when using a default installation. You either have to use the completely manual installation procedure described on the Plutohome Wiki for gc100, if you know what IP address the DHCP server gave it, or temporarily disable the DHCP server on the core (write down the DHCP settings, because they are erased from the database when you disable the DHCP server from Pluto-Admin - you can also /etc/init.d/dhcp3-server stop, add the gc100 and /etc/init.d/dhcp3-server start, without erasing the database).

Implementation details

In gc100.cpp there is a lot of code for format conversion and other stuff. Practically it's not a big deal it receives a command, find a proper IR sequence and sends it to gc100.

Operating the relays, IR transmitters, and sensors

The gc100 software architecture uses two threads to communicate with the gc100 regarding relays, IR transmitters and sensors, one for sending messages (SocketThread) and one for receiving (EventThread). The reason for this is that the gc100 protocol isn't completely a request-reply protocol, even if it seems like that at first. The gc100 can initiate a transmission when a sensor is tripped, enough to break the request-reply paradigm. The program was designed to treat the communication as asynchronous. Messages are sent to the device without expecting a reply, and the replies are treated as independent events and state change reports, without linking a request to a reply in the program logic (except for the initialization phase).