Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Wednesday, March 11, 2009

Setting up gammu with smsd

Gammu is the most popular program to build customized sms  server. It can connect to various of handset, from the oldest model until recently launched model.  Also it support populars os(es) such as Microsoft Windows and Linux Ubuntu. 


To setup gammu under windows simply download win32 binary from gammu site. For Ubuntu, even easier.

$ sudo apt-install gammu

That's all.

Once installed try edit gammurc (gammu config files). Windows version, config file will be in same folder as gammu.exe. For Ubuntu version, the config file is in /etc. Edit where needed.
My working setting is :


[gammu]

port = /dev/ttyS1
;model = 6110
connection = at19200
;synchronizetime = yes
logfile = /home/says/gammulog
logformat = textall
;use_locking = yes
;gammuloc = locfile
;startinfo = yes
;gammucoding = utf8
;rsslevel = teststable
;usephonedb = yes


To test out :

$ gammu --identify


On success connection it should display our gsm modem properties.

Manufacturer : Nokia
Model : 6150 (NSM-1)
Firmware : 4.12 E (02-12-98)
Hardware : 2320
IMEI : 493002107068660
Original IMEI : 493002107068660
Manufactured : 1298
Product code : 0502690
Simlock 1 : MCC+MNC 00101, opened, factory, counter 0
Simlock 2 : GID1 0000, opened, factory, counter 0
Simlock 3 : GID2 0000, opened, factory, counter 0
Simlock 4 : MSIN 0000000001, opened, factory, counter 0
MSID : 823c21bb67cc5d6aab0f3caae6
MCU checksum : 4057
DSP ROM : 4


Next is configure smsd engine. Create a smsd config file. Ussually named smsdrc. Edit where needed. Put the file in same folder as we running Gammu. I strongly recommend using files style, as you can easily to customize the system.

[smsd]
PIN = 327426
logfile = /home/says/sms/logs/smsdlog
commtimeout = 10
sendtimeout = 20
#receivefrequency = 0
#resetfrequency = 0
deliveryreport = log
phoneid = mdsms

inboxpath = /home/says/sms/inbox/
outboxpath = /home/says/sms/outbox/
sentsmspath = /home/says/sms/sent/
errorsmspath = /home/says/sms/error/
inboxformat = standard
transmitformat = auto

The main part of the system just to read incoming sms save it to /inbox, send any message that we put in /outbox. Next gammu smsd able to do the rest.

Next, create an agent just to read message source to be send out, and retrieve incoming msg in inbox to store in your database. last thing is create nice fancy interface, of course dont forget the user authentication. Then hola, your own sms server is ready to serve.


Download : php agent to read & delete files

Tuesday, December 16, 2008

Sharing USB files on Ubuntu

USB flash disk is no doubt industry standard for portable storage. Everybody carrying one or more, even that's a "pure" USB flash disk or any portable device with storage, since most these modern gadget has USB Mass Storage profile.

To share these files on Ubuntu for other users, you may use Samba file sharing. Samba is file sharing server act just like Windows share, for sharing files and printer. To install samba on ubuntu as simple as installing other program.

> sudo apt-get install samba

Once installed, start sharing folder by right-click on a folder name opened using Nautilus (the de-facto file manager) -> Sharing. Make sure the file you going to share has appropriate permission. To be able to read, at least has read privileges on "other". Chmod them to 644.

To be able to share USB files, you need to change default privileges of USB flash disk files. As it auto-mounted when you insert it, USB flash disk get file permission setting from gnome setting editor. Change them with :

> gconf-editor


Go to system>storage>default_options>vfat, double click "mount_options" on the right, click "add", enter the text "fmask=000", click ok. Also double click on umask need to change to "000" (that's triple zero). Remember that's masking code not the mode itself. So umask = 000 equal to 777 filemode. Save it then remount the volume.

Sunday, November 23, 2008

Mobile Platform war

Global economy is slowing down, but tech company and consortium seems not going to slow down their research for next generation mobile device platform.

Mobile platform is not as simple as just OS. But it more to whole system how it interact with user, security, how it connect to any protocol and service.

The platform leads market now is Symbian. Motored by Nokia with its S60, now symbian devices can be found also on other brand, like LG and Samsung. With a very user friendly interface and consume low processing power, this platform is most available on most middle class handset now.

Windows Mobile is emerging from WinCE, now become a mature platform that adopted by some high end smartphone brand, like HTC, O2, DOPOD, some Samsung Pda phone and now Sony Ericsson on its Xperia X1. Backed by user using Windows on their PC, the creator expect user will find it easier to enjoy Windows Mobile.

There are proprietary system develop by each manufacturer, but since maintained by single vendor only, no much application for download and improvement we can expect. But as it implemented on most lower-end handset, these platform still have big portion in the market. Apple Iphone, in my opinion, is in this category also, as it single vendor maintain and very-closed system.

The latest but feared to be next leader, is Google's architech Android. Android believed will be the next generation platform since it design and created based on latest mobile and internet technology. Still some years to come before this platform is widely available on market, especially when economy crisis strike like now.

Sunday, July 20, 2008

The highest software version you ever know


Now almost every offices desk equipped by a computer. Could be a PC, Mac, or just thin-client. But have you notice what is the version number of software you used most ? Have you ever think of it ? I made a personal investigation about it on some software products I know.

Microsoft at least has two product that proven long heritage and evolution line. Microsoft Windows is going to launch Windows 7 as precedesor of Vista. Vista also known as Windows NT 6. However, Microsoft office has a longer evolution history by its version number. Office 2007 formerly known as Office V.12 while Office 2003 is equal to Microsoft Office v.11. Some of you maybe still remember the days of Office 8 years ago.

Adobe also has a long software history from its popular Adobe Photoshop suite. At this moment Adobe has release the latest version Adobe CS 3 (Creative Suite) which is collaborate photo editing, web authoring, and graphic design tools, which include Photoshop ver 10.0. Previously, Adobe Photoshop CS2 is equal to Photoshop version 9. Adobe Acrobat also reach version number 9. Yahoo messenger also reach version number 9, even I can't recall when is the initial version released. Core Draw reach version 12 , but seems market choice has turn to Adobe Illustrator for same function.

Some remarkable software version is those exceed magic 10. Some we can mention here are :
3D Max Studio : version 11
AutoCAD : version 17
MYOB : Version 17


Version are divide into major, minor, and builds. From publisher & developer point of view, every increase of software version should have significant improvement while maintain its core function. But there's no fixed regulation to control software version numbering. It's all back to the developer itself.

So next time, if you open a software dont forget to take a glimpse at the software version number. Usually real version number is stated in menu Help -> About. Leave me a message if you found some interesting fact regarding software version number.

Tuesday, June 24, 2008

Repair Grub Entry after a Ubuntu Hardy Updates

Just few months after its official launch, Ubuntu Hardy Heron has release some kernel updates. Every kernel updates suggest us to create a new Grub menu. But unfortunately, if you choose wrong option, it might overwrite original grub menu entries, including non-ubuntu entries. I accidentally chosen let aptititute update whole list.

If this happen to you, no worry. No need reinstallation of OS. First is recover your lost non-Linux entries. Mostly user mixed with Microsoft OS, like Windows XP or Vista. Insert Windows XP or Vista installation CD. Upon setup option, instead of setup, select "Repair A Windows Installation". Choose command line repair. After a command line windows shows, type :
$ fixboot
$ fixmbr

For more command, your can type :
$ help

Close repair session, remove Windows CD, and then reboot. Now your box should be able to boot Windows. Next is repair grub entries. Insert Ubuntu Live CD, then reboot. Open a terminal session from Start Menu -> Accessories -> Terminal. Type :

$ sudo grub
grub >find /boot/grub/stage1

From given information, setup grub root and entries

grub> root (hd0,1)
grub> setup (hd0)
grub> quit


More reading about dual boot tips and emergency tips your may read Ubuntu official tutorial