Coder Social home page Coder Social logo

veerendar-cv / webmail-notifier-linux-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nathan-osman/webmail-notifier-linux-driver

0.0 2.0 0.0 300 KB

A Linux device driver for the Dream Cheeky USB Webmail Notifier.

License: GNU General Public License v2.0

webmail-notifier-linux-driver's Introduction

Webmail Notifier Linux Driver

This project intends to create a working Linux device driver for the Dream Cheeky USB Webmail Notifier.

The Device

The device itself consists of a small plastic shell in the shape of an envelope. According to the website, its physical dimensions are approximately 4.7cm x 7.5cm x 3 cm. The picture below demonstrates its appearance when lit:

On a more technical note, the USB vendor and product ID are as follows:

Vender: 1d34
Product: 0004

The Protocol

This device employs an extremely simple protocol. Using a USB logging tool, I discovered that the device consists of three LEDs - one red, one green, and one blue. They can each be set to one of 0x40 different intensities.

A sample block of data sent to the device to make it appear blue would look like this:

00 00 40 00 00 00 1f 05

I have no idea what the 1f 05 is for, but it seems to exist in every command dispatched, so I include it when sending commands to the device. Perhaps some more experimentation will reveal its purpose.

Building the Module

Building the module is easy if you have the headers for your current kernel installed. Just run:

make

Using the Module

You can load the module into the kernel with:

insmod webmail_notifier.ko

Assuming you either have the device plugged in or plug it in after loading the module, you should have a file /dev/wn0 that you can use to control the device. Color values are specified using CSS hex notation:

echo "#ff0000" >/dev/wn0

Using the above command will set the device color to red.

webmail-notifier-linux-driver's People

Contributors

nathan-osman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.