Thursday, January 15, 2009

Jak získat 1000kč v Sazce bez rizika (když 1800kč už nefunguje)

Dne 15.1.2009 ráno Sazka změnila podmínky pro zisk bonusu 2000kč za vytvoření konta, čímž znemožnila využití postupu který jsem popisoval před několika dny.

Nevím jestli to Sazka dělá schválně, nebo jde o chytrý marketingový tah, ale i po změně pravidel umožnili nově registrovaným bez rizika vydělat. Postup je následující.

1) Vyplnit registrační formulář na internetu
2) Odnést vygenerované číslo a 2000kč na nejbližší sběrné místo Sazky - novinový stánek nebo pumpu.
3) Přihlásit se do svého účtu na internet.

V tomto momentě byste měli mít na účtu vložených 2000kč a bonusových 100bodů. Pro získání dalších 1900 bonusových je potřeba prosázet svých 2000kč v kurzu minimálně 5.0

4) Najít tři tenisové zápasy s kurzem 1.8:1.8
5) Udělat osm lístků s vkladem 250kč a natipovat je následujícím způsobem

1,1,1
1,1,2
1,2,1
1,2,2
2,1,1
2,1,2
2,2,1
2,2,2

Kurz na každém lístku je větší než 5, čímž se splní podmínka pro zisk bonusových bodů.

6) Přesně jeden ze vsazených lístků vyhraje 1250kč, ostatní prohrají. Na bodové konto se připíše 1900 bodů.
7) Bonusové body vsadíme, 1000 na každou stranu zápasu s kurzem 1.8:1.8
8) Na peněžním kontě nyní máme 1800+1250 = 3050 korun

Tuesday, January 13, 2009

Mirror of http://www.openbmw.org/bus

I-Bus Protocol

CREDITS: The I-Bus was originally reverse-engineered by Thomas L. Wood for the MPorty/Cajun MP3 Project. This was his original write-up of it. Richard Naninck performed additional research and wrote the first general-purpose I-Bus message decoder for intercepting Video Module messages. Ed Anuff identified the I-Bus as being based on the ISO 9141/K-Bus protocol and documented the semiconductor manufacturers who supply devices supporting it.

Since then, a Yahoo! Group has formed to discuss the technical details of the I-Bus, appropriately named HackTheIBus. Along with the OpenBMW Yahoo! Group, this represents a valuable forum for discussing issues related to I-Bus interfacing and members of both groups regularly post useful information.

IMPORTANT: This information is provided for reference purposes only. Use this information at your own risk.

BMW's I-Bus is based on ISO 9141 and K-Bus (The protocols used by OBD-II). It is basically a second K-Bus in the car for handling interfacing between the radio, CD, navigation, and telephone systems. In particular, the steering wheel controls for the radio, CD, and phone utilize the I-Bus.

The I-Bus is a single wire bus that is a white/red/yellow wire which is available at a number of different connectors inside the car such as at the CD changer connector in the rear, the phone connector in the center console, etc.

The bus' physical layer is an open collector setup pulled high (+12v) by the bus, and pulled low by the talker. This means that the idle voltage on the wire is +12v (the battery voltage, or Vbatt). This is somewhat similar to RS232 signalling, and like RS232, an interface IC is needed to turn this into a TTL digital signal that can be understood by a microcontroller. Later in this document, several off-the-shelf parts will be listed that can be used to easily drive this sort of signal.

Serial communications on the bus are 9600 bps, 8 data bits, Even parity, 1 stop bit.

An I-Bus packet contains the following bytes of data:

Source Address
Length
Destination Address
Data Bytes
XOR Checksum

Unlike most similar single wire network protocols, the I-Bus has no apparent way to identify the start of a packet, so this must accomplished in software by looking for a delay between messages.

The following device addresses have been decoded for the E39 5-series:

0x00 Broadcast
0x18 CDC CD-Player
0x3B NAV Navigation/Videomodule
0x43 MenuScreen
0x50 MFL Multi Functional Steering Wheel Buttons
0x60 PDC Park Distance Control
0x68 RAD Radio
0x6A DSP Digital Sound Processor
0x80 IKE Instrument Control Electronics
0xBF LCM Light Control Module
0xC0 MID Multi-Information Display Buttons
0xC8 TEL Telephone
0xD0 Navigation Location
0xE7 OBC TextBar
0xED Lights, Wipers, Seat Memory
0xF0 BMB Board Monitor Buttons
0xFF Broadcast

A packet containing the following bytes would display "CD 7-04" on the Radio MID Display:

      68 17 ff 23 c0 30 07 20 20 20 20 20 08 43 44 20 37 2d 30 34 20 20 20 20 45
S L D Data 'C''D'' ''7''-''0''4' C
r e s h
c n t k

A full set of button codes is available here.

Below is an example of a track title displayed on an E39 MID Radio Display from an in-car MP3 player (Courtesy of Thomas L. Wood):

Interfacing

Typical projects as well as general experimentation call for some form of I-Bus to RS232 interface so that I-Bus packets can be captured and displayed on a laptop or other device in order to be decoded. Because the I-Bus uses the physical layer of the ISO9141/K-Bus, it is fairly easy to build a connector from off-the-shelf IC parts or to even potentially take an existing OBD-2/RS232 adapter and connect the K-Line from it to the I-Bus.

If building an adapter from scratch, utilizing an off-the-shelf K-Bus interface/transceivers should save a lot of effort. The advantage of a design using a K-Bus interface chip of some sort is that most of these chips deal with a number of issues such as bus contention and not overloading the bus that make them a safer choice. There are a number of good choices for this, which are listed with links to their manufacturers below. Another option is to attempt to use a tranceiver that is compatible with the LIN (Local Interconnect Network), which is also based on ISO9141 but runs at a faster speed. Any of the listed interface/transceivers should couple very nicely with a Maxim MAX232, which handles can drive standard RS232 communications to a laptop or small embeddable computer such as the Advantech PCM-5820. While it is possible to interface to the I-Bus without a K-Bus tranceiver IC, BMW's own products, like the Video Module, use K-Bus chips from companies such as ELMOS. Melexis is a popular choice for obtaining these types of interfaces since they have a web store that sells single unit quantities. Many hobbyists, however, prefer to use interfaces built using transistor circuits and have had success in doing so.

Depending on the application, for example building an adaptor to control a hands-free phone kit, connecting to a full PC would not make sense and instead some sort of low-cost microcontroller would be used. The CD-Changer adapters from companies like BlitzSafe and others are examples of this. Hopefully, this information will spur hobbyists to create an assortment of interface kits for controlling a number of different in-car electronics.

Useful Parts For Building Adapters

K-Bus/I-Bus Interface/Transceivers

Melexis TH8080 LIN/K-Bus Transceiver Datasheet

Melexis TH3122 K-Bus Transceiver with integrated Voltage Regulator Datasheet

ELMOS K-Bus transceiver Datasheet

Motorola MC33290 K-Line Serial Link Interface Datasheet

Motorola MC33199 Automotive ISO 9141 Serial Link Driver Datasheet

Atmel U6812B Single-Ended Bus Transceiver Datasheet

ON Semi NCV7310 Single Wire LIN Transceiver Datasheet

Philips TJA1020 LIN transceiver Datasheet

Infineon TLE 6258 Single-Wire-Transceiver Datasheet

RS-232 Driver/Receivers

Maxim MAX232A +5V Powered, Multichannel RS-232 Driver/Receiver Datasheet

Sunday, January 11, 2009

Jak získat 1800kč v Sazce bez rizika

Pozor, k 15.1.2009 Sazka změnila podmínky, takže následující postup již nefunguje!

Následující postup jsem sice nevymyslel, ale mohu z vlastní zkušenosti potvrdit, že funguje. Pozor, akce trvá jen do 31.1.2009

Na stránce www.e-sazka.cz běží akce 2000 bonusových bodů. Nevím jestli se jedná o omyl nebo úmysl, ale následujícím postupem lze bezbolestně tyto body zaměnit za 1800kč.

1) Vyplnit registrační formulář na internetu
2) Odnést vygenerované číslo a 2000kč na nejbližší sběrné místo Sazky - novinový stánek nebo pumpu.
3) Přihlásit se do svého účtu na internet.

V tomto momentě byste měli mít na účtu vložených 2000kč a bonusových 2000bodů. Pokud je bodů jenom 100, zkuste několik hodin počkat nebo poslat online formulářem reklamaci - já měl na účtu body po asi třech hodinách.

4) Vložených 2000 korun si poslat zpátky na vlastní bankovní účet nebo (s limitem 1000 korun denně) vyzvednout ve stánku.
5) Bonusových 2000 bodů vsadit na zápas s kurzem 1.8:1.8, tisíc korun na každou stranu.
6) Jedna strana prohraje, druhá strana vyhraje 1800kč (ano, korun, ne bodů).
7) Poslat si vyhraných 1800 korun na účet nebo vyzvednout na pobočce.

Tuesday, January 6, 2009

BMW E36 coupe dashboard retrofit

I have spent a lot of time in the garage over Christmas, working on my car. The temperature in the garage was constantly less then 3°C, but otherwise it was very relaxing.

The point of me almost freezing to death was to upgrade the old half grey dashboard in my 3er to a better looking all black dash that BMW put in these cars after the facelift.





While having the dash off, I also decided it was a good time to rethink, rebuild and most importantly tidy up all the custom electronics that I have been working on over the last year. This includes the wires and crossovers of the front speakers, the alarm and my little black box that takes care of rolling up the windows upon locking the car.

The point of the black box is to intercept the communication between the alarm and the rest of the car and modify it or react to it. The most visible function is the automatic window roll-up upon locking. It also contains diodes needed to connect all door sensors to a single pin on the alarm, a relay that prevents the automatic locking of doors after starting and parts of other mechanisms that I have not yet fully implemented. Unfortunately, I forgot to take a picture of the inside of the box..



The new dashboard fits very well, there are no squeaking noises or similar. The glove compartment door will need a little fixing, though, it doesn't fit very well, probably due to bad mounting of the central panel next to it. I have also spilled some of the substance that I was using for cleaning over the dash as you can see on the picture, otherwise the dash is very clean and looks nice.

The next upgrade will probably be a new steering wheel and some black floor mats.







Labels: ,