Thursday, December 11, 2014

Gui Rate monotonic Scheduling Simulator Java code.

Recently I was asked to create a task scheduler simulator , as an course assignment.

I have created a Gui version of the scheduler.

It works by creating a scheduling table and then the scheduler executes task according to that table.

You can find the source code for that task scheduler here..


code repository

This repository contains AssignmentTwo.java file which when provided with input generates a scheduling table which is then fed to the animator and the graph chart classes for animation the task scheduling process and for generating scheduling charts respectively..

There are many features that have not been implemented .I will keep on updating this code so that it can become a more useful tool for visualising who tasks are scheduled using rate monotonic scheduling algorithm.. 





I will update this post with more details about how the scheduler  code works by line by line walk-through of code.

Thursday, December 4, 2014

Compiling Leoxsys/MediaTek/Railinks wi-fi Dongle module for Raspberry pi

I recently purchased Leoxys wifi dongle.
wifi-dongle(Leoxys nano150n)
It didn`t work out of the box for raspberry pi.
I frenetically searched and found out this blog ->http://gowthamgowtham.blogspot.in/

which provided excellent instructions for making the dongle work.
However i ran into a problem when i updated my raspberry pi`s kernel to 3.12.32+

The original driver was not working.
Taking cue from the comment section i stumbled across this blog which contained instruction for compiling the module ->http://va3paw.com/2014/03/16/hsmm-mesh-on-raspberry-pi/#more-629

I had downloaded the source files for the driver from the manufacturer`s website. although source code was also provided in the accompanying C.D.

driver source .

Following the procedure listed in the above mentioned va3paw webpage I was able to get that dongle working.


The procedure involves cloning the linux src files and then compiling the source code for the driver(wifi dongle).

If you want to skip that lengthy  process then you can obtain the latest file from my repository and follow the instructions listed there.

MT7601 driver repository.

In short go to this above mentioned repository.
Download  the mt7601Usta.ko file.
copy it to your  /lib/modules/version/kernel/drivers/net/wireless folder.

scp mt7601Usta.ko root@rpiaddress:/lib/modules/version/kernel/drivers/net/wireless

 Copy RT2870STA.dat to /etc/Wireless/RT2870STA directory
 scp  RT2870STA.dat root@rpiaddress://etc/Wireless/RT2870STA
Then run sudo depmod -a

Then Add the below text to /etc/network/interfaces. Note that quotes around SSID and password are required

auto ra0
allow-hotplug ra0
iface ra0 inet dhcp
wpa-ssid "ENTER YOUR NETWORK SSID"
wpa-psk "ENTER YOUR NETWORK PASSWORD"