Monday, 24 September 2012

nefunkcny WD3200BMVV


hdparm -t /dev/sdc

/dev/sdc:
 Timing buffered disk reads: 228 MB in  3.01 seconds =  75.86 MB/sec
hdparm -i /dev/sdc

/dev/sdc:

 Model=WDC WD3200BMVV-11GNWS0, FwRev=01.01A01, SerialNo=WD-WX51A60Y0357
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=625142448
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

 * signifies the current active mode

hdparm -I /dev/sdc

/dev/sdc:

ATA device, with non-removable media
Model Number:       WDC WD3200BMVV-11GNWS0                
Serial Number:      WD-WX51A60Y0357
Firmware Revision:  01.01A01
Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6
Standards:
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors:   16514064
LBA    user addressable sectors:  268435455
LBA48  user addressable sectors:  625142448
Logical  Sector size:                   512 bytes
Physical Sector size:                  4096 bytes
Logical Sector-0 offset:                  0 bytes
device size with M = 1024*1024:      305245 MBytes
device size with M = 1000*1000:      320072 MBytes (320 GB)
cache/buffer size  = 8192 KBytes
Nominal Media Rotation Rate: 5400
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 0
Advanced power management level: 254
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
    Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
    Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
Enabled Supported:
  * SMART feature set
    Security Mode feature set
  * Power Management feature set
  * Write cache
  * Look-ahead
  * Host Protected Area feature set
  * WRITE_BUFFER command
  * READ_BUFFER command
  * NOP cmd
  * DOWNLOAD_MICROCODE
  * Advanced Power Management feature set
    SET_MAX security extension
  * Automatic Acoustic Management feature set
  * 48-bit Address feature set
  * Device Configuration Overlay feature set
  * Mandatory FLUSH_CACHE
  * FLUSH_CACHE_EXT
  * SMART error logging
  * SMART self-test
  * General Purpose Logging feature set
  * 64-bit World wide name
  * IDLE_IMMEDIATE with UNLOAD
  * {READ,WRITE}_DMA_EXT_GPL commands
  * Segmented DOWNLOAD_MICROCODE
  * Gen1 signaling speed (1.5Gb/s)
  * Gen2 signaling speed (3.0Gb/s)
  * Native Command Queueing (NCQ)
  * Host-initiated interface power management
  * Phy event counters
  * Idle-Unload when NCQ is active
  * NCQ priority information
  * DMA Setup Auto-Activate optimization
    Device-initiated interface power management
  * Software settings preservation
  * SMART Command Transport (SCT) feature set
  * SCT Features Control (AC4)
  * SCT Data Tables (AC5)
    unknown 206[12] (vendor specific)
    unknown 206[13] (vendor specific)
    unknown 206[14] (vendor specific)
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
supported: enhanced erase
104min for SECURITY ERASE UNIT. 104min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50014ee102ebfdca
NAA : 5
IEEE OUI : 0014ee
Unique ID : 102ebfdca
Checksum: correct








Thursday, 9 August 2012

Asus wl-500G Premium dead ..... again


after 4years ... capacitors, again but this time on main board of router. So, change it and enjoy working router ;)

Monday, 27 February 2012

ebay lcdshield s tlacitkami vers. arduino 1.0

/* key 0 = right
 * key 1 = up
 * key 2 = down
 * key 3 = left
 * key 4 = select
 */

#include <LiquidCrystal.h>

//lcd pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);


int adc_key_val[5] ={
  30, 150, 360, 535, 760 };
int NUM_KEYS = 5;
int adc_key_in;
int key=-1;
int oldkey=-1;

void setup() {
  lcd.begin(16,2);
  lcd.home();
  lcd.clear();
}

void loop() {
  adc_key_in = analogRead(0);    // read the value from the sensor
  key = get_key(adc_key_in);     // convert into key press
  if (key != oldkey)             // if keypress is detected
  {
    delay(50);          // wait for debounce time
    adc_key_in = analogRead(0);    // read the value from the sensor
    key = get_key(adc_key_in);                  // convert into key press
    if (key != oldkey)
    {
      oldkey = key;
      switch (key)
      {
      case 0:
        // righ
        break;
      case 1:
        // up
        break;
      case 2:
        // down
        break;
      case 3:
        // left
        break;
      case 4:
        // select
        break;
      }

     }
    }
  }

// Convert ADC value to key number
int get_key(unsigned int input)
{
  int k;
  for (k = 0; k < NUM_KEYS; k++)
  {
    if (input < adc_key_val[k])
    {
      return k;
    }
  }
  if (k >= NUM_KEYS)
    k = -1;     // No valid key pressed
  return k;
}




peugeot 206 - alpine CDE-9880R podvolantove ovladanie

alpine CDE-9880R manual: http://www.alpine.ro/fileadmin/user_upload/manuals/car_audio_manuals/CDE-9880R/OM_CDE-9880R_EN.pdf

odvodene z prace Amar Kulo:
http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine

skener pre arduino 0.2x s lcd shieldom z ebayu

program ovladania pre arduino (0.2x)

pripojenie:

// Peugeot 206 1998 steering wheel remote control interface for Apline
// JACK:
//             +--------+
//  OOOO|           |== = - < signal to alpPin
//             +--------+
//                             ^
//                         GND
//
// Arduino:       analogPin0          analogPin1
//                            ^                   ^
//             +-------+    |                    |   +-------+
// +5V o--|  680  |---+    GND      +---|  680   |--o +5V
//             +-------+    |        ^          |    +-------+
//                            |         |           |
//                            ^        ^         ^
// remote:              red     white    blue
//