G33K-TRICKS: Others
Showing posts with label Others. Show all posts
Showing posts with label Others. Show all posts

Friday, March 7, 2014

How to Measure Throughput (while Uploading or Downloading)


Say ..you want to measure the throughput while uploading or downloading a file...how would you do that...
The answer is Wireshark...a packet sniffing tool.
This tool will measure the throughput upto the exact value as it uses the packets as a real medium for reference.
So, this is how you do it...
Download and install Wireshark

Open Wireshark and a similar window will appear

From top-left panel (Capture) select "eth1". After that the following window will appear
At this time Wireshark is ready to obtain information of all packages that travel on this interface
Start uploading a file from this screen.
You will observe that some colourful rows start appearing on the screen. These are nothing but packets.

   Return to Wireshark window and start looking for all streaming packages. Once package transit stops go to: Capture Menu and select Stop


   Once we have all these information we can continue analyzing it
Go to Edit Menu & select  Find Packet




Following pop-up window will appear



Select String on “Find By” section, type "POST" and press "Find"

From all packages, one of them will be highlighted (the one that contains the string "POST" that is located at the beginning of sent file) you can verify this information on the bottom panel


8.    Once this package was identified, as previous explanation, this is the first package uploaded so is needed to take it as initial reference and this can be done, doing right click and selecting "Set Time reference" option












9.    In Time column of this package the word *REF* will appear, and after it all times will be restarted. Select again this package and doing again, right click select "Follow TCP Stream" option.


10. Other window will appear with all information contained on this package. The goal is to obtain a string located at the end of it. So we need to scroll down and copy the string that starts with "WebKitFormBoundary.xxxxxxxxxxx" (this string changes randonmly)


After select and copy this string we need to follow previous steps to find this string on the stream

Edit > Find Package



NOTE: we need to repeat this step, 2 times in order to find the package that contains this string at the end.

At the same way the package that contain this information will be highlighted, with measured time to upload this file (to verify that this package contains desired string look at below panel, and at the end string will appear)



With this time we can obtain Mbps for this test converting file size to bits (multiplying by 8) and divide it by this time



Saturday, August 31, 2013

How a website sends SMS to a mobile phone




1.The SMS is composed by using a web application which is stored on HTTP server.
2.This application executes the requests on that server and then sent the request through the internet (“using the cloud”) as an email message.
3. The email is received by a Short Message Service Gateway [ SMS Gateway ] .  which then converts the message from an email message to a actual SMS message.
4. Now this SMS message is then handed over to a Short Message Service Center  [ SMSC ] , which is a server that routes the SMS to an individual mobile phone based on the mobile phone number.
5. The message is finally transmitted over the wireless network to the recipient.


You may also like to read :
http://g33ktricks.blogspot.com/p/the-rtsp-real-time-streaming-protocol.html

Wednesday, August 21, 2013

HOW TO's with AT commands


How to check To which COM port MODEM is connected

A: 
Right Click On MY Computer Icon
Select "Manage" option
From the new window, select "Device Manager" 
From here, you can check for the Ports and Modems 
Double clicking , will display the properties

For Windows system you need to have "Hyperterminal" application
Windows 7 , they have removed the application (Don't know why)
but there are many free available Applications like Hyperterminal 
over the internet.

For Linux users, "minicom" is the best
To install, sudo apt-get install minicom



Q: How To Send SMS From Computer Using  AT Commands

A:
1. Plug In Your GSM/GPRS modem
2. Check to which COM port the modem is connected  
3. Start-> Accessories-> Communication-> Hyperterminal
4. Open new connection
5. "Connect using:" the correct COM port, you will see a
windows->change Bits per second to "9600" (for GSM) "115200" (for GPRS) 
6. Type "AT" and press Enter (it'll show "ok")
7. Type "AT+CMGF=1" and press Enter (it'll show "ok". It is to set the GSM / GPRS modem to operate in SMS text mode. )
8. Type " AT+CMGW="+91723456789"" and press Enter (it'll show ">"."+91" is country code, "723456789" is recipient's number) 
9. Start typing SMS. When finished, press Ctrl + Z (it'll show "+CMGW:1", it means the message is 
stored as index:1 in the message storage) 
10. Type "AT+CMSS=1" and press Enter (It'll show something like "+CMSS: 219". "219" is the reference no of the sent message) 
11. If it shows "OK" at the end, it means the message is successfully sent.


Q: How To Receive SMS Using Computer 
A:
1. Plug In Your GSM/GPRS modem
2. Find out which COM Port the modem is connecting 
3. Start-> Accessories-> Communication-> Hyperterminal
4. Open new connection
5. "Connect using:" the correct COM port, you will see a
windows->change Bits per second to "9600" (for GSM) "115200" (for GPRS) 
6. Type "AT" and press Enter (it'll show "ok")
7. Type "AT+CMGF=1" and press Enter (it'll show "ok". It is to set the GSM / GPRS modem to operate in SMS text mode. )
8. Type "AT+CMGL="ALL" " and press Enter (there is message received, it'll show 
" +CMGL: 1,"REC READ", "+651234567",,"01/08/13,11:26:20+12
Hi, Love You !!! " ) 



Q: How To Check SMS Delivery Status Report & Newly Received Message
A:
1. Follow the Step 1 To 6 as  mentioned above 
2. At The Hyper Terminal, Type The Following AT Command

AT+CSMP=49,167,0,0 
OK
AT+CNMI=2,2,0,1,0 
OK
AT+CMGS="Mobile Number" 
> Message content displayed (Ctrl+Z)
+CMGS: 72
OK
+CDS: 6,228,"Mobile Number",129,"08/10/22,10:08:35+32","13/08/22,12:55:38+32",0
+CMT: "Mobile Number",,"13/10/22,12:56:17+32"
testing



Q: How To Change the Baud Rate of the Modem using AT Commands

A: 
To Change Baud Rate from xxxx to yyyyyy
1. Start-> Accessories-> Communication-> Hyperterminal
2. Open new connection
3. "Connect using:" the correct COM port, you will see a
windows->change Bits per second to "xxxx"
4. Type "ATE1" and press Enter (it'll show "ok")
5. Type "AT+IPR=yyyyyy" and press Enter (it'll show "ok")
6. Click on "disconnect" icon
7. Go to Properties and change the Bits per second to "yyyyyy"
8. Type "AT&W" and press Enter (it'll show "ok")
Then it'll be changed to yyyyyy


here : xxxx can be 5600 and  yyyyy : 115200

Monday, July 8, 2013

40 Tricks ..We must know


Could not help posting this website's page over here..


http://gizmodo.com/5970610/40-tricks-you-must-know-for-a-perfect-2013/