• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

test please delete

Collapse
This is a sticky topic.
X
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by zeitghost View Post
    Not really.

    It's just on/off modulated infra red, using a manchester encoding scheme at the standard frequency of 38kHz.

    It's unusual in that the data stream is long enough to encode the entire alphanumeric character set (which is how you can get a keyboard that works with the Sky box).

    I just implemented the on/off key, the sky button, and the digits 0 to 9.

    It runs on an ancient 20MHz 286 compaq portable III under dos... and nothing else coz it uses timing loops to generate the 38kHz.

    The infra red led is connected to one pin of the centronics parallel port.

    What I've never completely sussed is how the box determines that you've kept a key pressed, I suspect it's in the repetition frequency of the data stream.

    If you keep the same button pressed on the sky zapper, the box just sees the one key press.

    If I do the same on my software, the box sees a succession of presses, and the only difference I can detect is the prf of the ir data... it's about 80ms for the zapper and about 120ms for my software.

    Bored yet?

    not atall - fascinating stuff - please continue.

    Comment


      Originally posted by NickFitz View Post
      Night Zeity

      Give the cat a virtual cuddle from me
      We had a lovely cuddle, and I brushed her which she loves... mountains of loose fur removed...

      Needed even more cuddles this morning, I think she was cold.

      Comment


        #99393
        FiveTimes
        Fingers like lightning

        full house

        Comment


          #99399
          NickFitz
          Fingers like lightning

          pali and four of a kind

          Comment


            #99400
            NickFitz
            Fingers like lightning

            century

            Comment


              <?xml version="1.0" encoding="UTF-8"?>
              <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
              xmlns:h="http://www.w3.org/1999/xhtml">

              <xslutput indent="yes" encoding="UTF-8"/>

              <xslaram name="spidered-at">Now</xslaram>

              <xsl:template match="/">
              <page>
              <xsl:attribute name="spidered-at"><xsl:value-of select="$spidered-at"/></xsl:attribute>
              <nextpage>
              <xsl:attribute name="href">
              <xsl:value-of select="/h:html/h:body/h:div/h:div/h:div[1]/h:table/h:tr/h:td/h:table[3]/h:tr/h:td[2]/h:div/h:table/h:tr/h:td/h:a[normalize-space(text()) = '>']/@href"/>
              </xsl:attribute>
              </nextpage>
              <lastpage>
              <xsl:attribute name="href">
              <xsl:value-of select="/h:html/h:body/h:div/h:div/h:div[1]/h:table/h:tr/h:td/h:table[3]/h:tr/h:td[2]/h:div/h:table/h:tr/h:td/h:a[starts-with(normalize-space(text()), 'Last')]/@href"/>
              </xsl:attribute>
              </lastpage>
              <xsl:apply-templates select="/h:html/h:body/h:div/h:div/h:div/h:table/h:tr/h:td/h:div[@id='posts']"/>
              </page>
              </xsl:template>

              <xsl:template match="h:div[@id='posts']">
              <posts>
              <xsl:apply-templates select="h:div[@align='center']/h:div/h:div/h:div/h:table"/>
              </posts>
              </xsl:template>

              <xsl:template match="h:table">
              <post>
              <xsl:attribute name="cukid"><xsl:value-of select="substring-after(@id, 'post')"/></xsl:attribute>
              <xsl:attribute name="tpdid"><xsl:value-of select="h:tr[1]/h:td[2]/h:a/@name"/></xsl:attribute>
              <xsl:attribute name="time"><xsl:value-of select="normalize-space(h:tr[1]/h:td[1]/text()[2])"/></xsl:attribute>
              <xsl:apply-templates select="h:tr[2]/h:td[@class='alt2']"/>
              <xsl:apply-templates select="h:tr[2]/h:td[@class='alt1']"/>
              </post>
              </xsl:template>

              <xsl:template match="h:td[@class='alt2']">
              <poster>
              <name><xsl:value-of select="h:div[1]/h:a[1]/text()"/></name>
              <page>
              <xsl:attribute name="href">
              <xsl:value-of select="h:div[1]/h:a[1]/@href"/>
              </xsl:attribute>
              </page>
              <avatar>
              <xsl:attribute name="href">
              <xsl:value-of select="h:div[3]/h:a/h:img/@src"/>
              </xsl:attribute>
              </avatar>
              <joined><xsl:value-of select="substring-after(h:div[3]/h:div[1]/text(), 'Join Date: ')"/></joined>
              </poster>
              </xsl:template>

              <xsl:template match="h:td[@class='alt1']">
              <content>
              <title>
              <xsl:attribute name="icon">
              <xsl:value-of select="h:div[1]/h:img/@src"/>
              </xsl:attribute>
              <text><xsl:value-of select="h:div[1]/h:strong/text()"/></text>
              </title>
              <body>
              <xsl:copy-of select="h:div[2]"/>
              </body>
              </content>
              </xsl:template>

              </xsl:stylesheet>
              --------------------------------------------------------------------------------
              Last edited by NickFitz : Yesterday at 20:25.




              Yesterday, 20:26 #99390
              NickFitz
              Fingers like lightning

              =========================================
              So what does it all mean?

              Comment


                Originally posted by BrowneIssue View Post
                Eh?
                You'll have to speak up, young fella me lad, this lurgie has made me a bit deaf...

                Comment


                  Originally posted by zeitghost View Post
                  'Ello, 'ello, 'ello, wot's going on 'ere then?

                  morning zeity

                  Comment


                    Originally posted by zeitghost View Post




                    Brillo
                    got
                    a
                    00
                    99500

                    Merely for completeness
                    thank you kind Sir

                    Comment


                      Originally posted by zeitghost View Post
                      You'll have to speak up, young fella me lad, this lurgie has made me a bit deaf...
                      Sure it is the lurgie and not just old age?

                      Comment

                      Working...
                      X