Sunday, 19 January 2014

How to calculate Modbus RTU CRC - CRC Calculator using Python

#-------------------------------------------------------------------------------
# Name:        CRC Calculator
# Purpose:      For modbusRTU CRC calculation
#
# Author:      Parthi
#
# Created:     04/01/2013
# Copyright:   (c) 2013
# Licence:     <your licence>
#-------------------------------------------------------------------------------

#To get the bytes from user
s = raw_input("Enter the bytes: \n Make sure that the bytes going to enter are in decimal and not in HexaDecimal:\n")
data = map(int, s.split())              #To split the bytes after every SPACE

print "The Entered Bytes are:",data
n=len(data)                             #To find the Bytes length
print "The Total Byte length is:",n

temp=0xFFFF;

i=0
while(i<n):
    temp=temp ^ data[i];                #ExOR FFFF and the actual byte
    j = 0
    while(j<8):                         #For Eight Right shift

        flag=temp & 0x0001;             #To get the Carry Flag
        temp=temp >> 1;                 #To shift 1 bit to the right

        if (flag==1):
            temp=temp ^ 0xA001;         #ExOR with A001, if Flag is 1
        j=j+1;

    i=i+1;

temp2=temp >> 8;                        #Reverse Byte Order
temp=(temp << 8) | temp2;
temp &= 0xFFFF;

print "The Final CRC is:"
print hex(temp)
-----------------------------------------------------------------------------------------------------------




Thursday, 16 January 2014

Education Loan EMI Calculator

Link to download as excel file Sheet1
.
.
Education Loan EMI Calculator
.
.
.
Total Loan Amount:200000
.
Interest Rate:14.50.012083333333333
.
Period in years:672 [1]
.
.
Monthly EMI:4174.88535033251
.
Total Loan Repayment:300591.745223941
.
[1] Author: Period in months

Monday, 1 July 2013

Run Android Apps on Windows XP/Vista/7/8 & Mac

 Hi, i like to introduce here about the Bluestack. It is an "Android Emulator".

First what is the diff b/w Simulator & Emulator?
I think, many of us come across a word "Simulator".

SIMULATOR: A simulator is a model for analysis.
EMULATOR: An emulator can replace the original for 'real' use.

A Virtual PC emulates a PC.
If a flight-simulator could transport you from A to B it would be a flight-emulator.


Download the Bluestack for Windows 8 here.
Download the Bluestack for Windows XP/Vista/07 here.






Just install & enjoyyy...

Wednesday, 2 January 2013

ஸ்டார்ட் மியூசிக்!: பவர்ஸ்டாரையே அதிர வைத்த புது நடிகர்...

ஸ்டார்ட் மியூசிக்!: பவர்ஸ்டாரையே அதிர வைத்த புது நடிகர்...: பவர்ஸ்டார் என்றாலே இன்று தெரியாத ஆளே உலகில் இருக்க முடியாது, அந்தளவிற்கு தன் அழகாலும், நடிப்பாலும், நடனத்தாலும் மக்கள் அனைவரையும் கட்டிப்போ...

Saturday, 20 October 2012

Text to Mp3 files

                  OFFLINE உரை ஒலி மாற்றி (TEXT to AUDIO Converter) என்ற பதிவில் ஆங்கில வார்த்தைகளை எப்படி ஒலி யாக மாற்றலாம் என்று பார்த்தோம். அனால் அந்த VB Script யை வைத்து கொண்டு உங்களால் MP3 file ஆக மாற்ற முடியாது. இனி கவலை வேண்டாம், நீங்கள் விரும்பிய text file யை MP3 file ஆகவும் மாற்றலாம். 

அதற்க்கு நீங்கள் செய்ய வேண்டியவை, 

1.Panopreter_basic  என்ற software யை download செய்ய வேண்டும். CLICK Here to download the TEXT to MP3 file converter. File Size = 2.7MB.

2.அடுத்து setup  file  யை install செய்யவும்.

 

3.Install செய்த software யை open செய்யவும்.

 

4. இனி உங்களின் தேவைகேற்ப text  file  யை software இல் add செய்யவும்.

5. Speak button யை click செய்தால், அங்கேயே உச்சரிக்கும்.

6.Save to audio button யை click செய்தால், ".mp3" & ".wav" file ஆக save செய்துவிடும்.

சிறப்பு அம்சங்கள்:


                      Volume  & Speed யை control செய்ய தனி தனியே slider கள் கொடுக்க பட்டுள்ளது.

பயன் குறைவுகள்:

                    Speak button யை click செய்யும் போது text file இல் உள்ள text யை மட்டும் உச்சரிக்கும் இந்த மென்பொருள், Save to audio button யை click செய்யும் போது, save ஆன .mp3 & .wav file இல் முதல் 40 வினாடிகளுக்கு தன் மென்பொருளின் ad யும் சேர்த்து save  செய்து விடுகின்றது.

பயன் குறையை நீக்க:

                      இதனை நீக்க Windows Xp இல் default ஆக வரும் Windows Movie Maker யை


பயன் படுத்தி முதல் 40 விநாடிகளை யும்  நீக்கி விடலாம்.


                      இனி நீங்கள் விரும்பும் கதை, நாவல் களை Mp3 file ஆக மாற்றி உங்கள் I -Pod , Mobile களில் கேட்டு மகிழலாம். 


CLICK Here to download the TEXT to MP3 file converter. File Size = 2.7MB.