Skip to main content

Posts

Featured Post

Product Design of a 4 wheel differential drive robot

How to send AT commands?

For details about AT commands refer this link . If you are using windows you can use hyperterminal to communicate with any modem. In this case the GSM modem. Find a method to connect your GSM modem to the PC  (Refer this Link  ). You can use a USB2TTL converter to directly interface your GSM modem to PC. After interfacing the modem go to device manager and find the com port no: assigned to your GSM modem. After identifying the port number open hyperterminal. You need to download Hyperterminal or copy the files from windows XP. You can also use putty for this purpose.  Type a name and click OK. Then select the com port you are using and press ok. Change the boadrate to 9600(you can choose other also. Higher boadrates may not work with some GSM modem) and let other options remain unchanged. After that type AT and press Enter. If you get a response showing OK. Then everything is fine. As a default typed character are not shown in the terminal. You can enab...

AT Commands

AT commands are used for communicating with a modem. AT is the abbreviation of ATtention commands. Every command start with AT. Some of the useful AT commands are listed below. You can call a number, attend a call, hang a call, send sms, read sms, and the list goes on with the features of a particular provider. Some commands are specific to some models. GSM modems can be bought and can be integrated to Micro-controllers or directly to PC. Following list may be helpful to hobbyist or others working on GSM modems for project works. AT The response will be OK. This means that the modem is up and ready. ATD94xxxxxxxx This command will initiate a voice call to the no 94xxxxxxxx. The semicolon indicates that it is a voice call. If you want to run any USSD codes like *123# for balance enquirey, do the same without semicolon. ATD*123# Other Call control commands Command Description ATA Answer command ATD Dial command ATH Hang up call   Sending an SMS...

How to hide and unhide files in Linux?

If you are new to linux OS, it's a common mistake to add a (.) in front of your files and suddenly the file disappears. In Linux filenames starting with a dot (.) are hidden. You can intentionally make a folder or file hidden by renaming it. mv filename .filename If you want to view you hidden files or folders, first go to the location where the file resides using cd command. cd /root/Desktop/ Then list all files and folders using ls command. ls -a If you want to permanently unhide then use mv command again. mv .filename filename

Linux: How to find your serial (any connected) device?

In Linux all devices that are connected to the system are listed in /dev If you connect your mouse to your system it will detect it as hidraw. Other serial devices will be named as tty0, tty1,etc. So if you connect a serial (any) device and you want to know it's name ( for ex: you want to connect it via minicom ), first go to /dev using cd /dev Then list the contents of folder using ls But it will be hard to figure out the name of your device from the long list. So here is a trick for it. Disconnect the device and type this in terminal. ls > removed.txt Connect your device again and type ls >connected.txt Your device's name will be on the connected.txt file. But how to know filter it? Compare both list and the odd one will be your device. Type this. diff removed.txt connected.txt You will get the name of your device.

Serial Port Communication in Linux using Minicom

First of all install minicom using apt-get install minicom or directly download the .deb package from  https://packages.debian.org/sid/minicom  and install it using dpkg -i <package name> After install type minicom -s to setup the minicom for using your serial port. Select Serial Port Setup and type A to select serial device. It will be shown as /dev/modem replace modem with  your serial device. Press Enter twice to save. You can also setup boadrate and all those stuff in the Serial Port Setup. After that you can save your configurations. Select Save Setup as. Then type a name and press enter to save it. If you wan't to open your configuration later, type minicom <configuration name>

www.ieeegecskp.in

  After a weeks hard work www.ieeegecskp.in is now up and running.This site was designed for the IEEE Student Branch wing of my college (Govt. Eng College Sreekrishnapuram). This site was created using HTML 5 standard and used CSS 2 for designing. Jquery is used for simple animations. All rights reserved for the content and code used for making this website. This site deals with dynamic data and used MySQL database. Browser support were tested and this site works perfectly in Chrome, Firefox, Opera and Internet Explorer. No browser dependent functions are necessary for proper working of this site. Source code will be posted on githhub soon.

Use Matlab to read serial data

  Matlab is one big tool which you can play with.. Matlab can be configured to read serial data that can be send through a microcontroller. Here is the code for Matlab to read a single line and print. Assume that you are sending ascii character values through microcontroller separated by new line. Here is the Matlab code to receive the data. 1: obj1 = instrfind( 'Type', 'serial', 'Port', 'COM13', 'Tag', ''); 2: % Create the serial port object if it does not exist 3: % otherwise use the object that was found. 4: if isempty(obj1) 5: obj1 = serial( 'COM13'); 6: else 7: fclose(obj1); 8: obj1 = obj1(1) 9: end 10: obj1.BaudRate=4800; 11: set (obj1, 'Parity', 'even'); 12: set (obj1, 'StopBits', 2.0); 13: fopen(obj1); 14: data1=fscanf(obj1, '%s'); 15: data1=fscanf(obj1, '%s'); %Assume that you are sending characters and 8 bit binary no....