Hello world and goodbye!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

This is also my last post here, please visit http://palmmicro.com/woody/blog.html instead.

Posted in Uncategorized | 1 Comment



1. 下载一份AR1688软件API。

2. 把下载文件解压缩到c:sdcc。

3. 进入命令行下c:sdccbin。

4. 执行命令: "getopt xxx.xxx.xxx.xxx"。

5. 修改options.txt文件中"admin_pin"(保存密码位置)的部分。

6. 执行命令: "setopt xxx.xxx.xxx.xxx"。



1. 设置好"片上IP地址"后点击Palmtool的"话机设置"直接连接设备。如果可以连接上,就可以在设置对话框中直接修改。

2. 当"调试级别"选项是关闭的时候,Palmtool连不上设备,用户会得到如"Can not connect to Palm1"这样的提示。

3. 然而在安全模式下调试级别设置总是打开的。用户可以在按下*号键的同时加电起动2次,此时设备的IP地址会是缺省的192.168.1.100(MAC地址缺省是00-09-45-00-00-00)。再次使用Palmtool连接修改即可。



Posted in Palmmicro | Leave a comment

Forgot Password?

There is a login password on AR1688 web interface. We did not pay much attention on the security of AR1688 devices, and the password was either set as 12345678 or simply left it completely blank. And it is also very easy to hack it in case user forgot, just following the steps below:

1. Download an AR1688 software API.

2. Extract the compressed file to c:sdcc.

3. Enter command line c:sdccbin.

4. Run cmd: "getopt xxx.xxx.xxx.xxx".

5. Modify "admin_pin" field (where password is stored) in the options.txt file.

6. Run cmd: "setopt xxx.xxx.xxx.xxx".

Both getopt.bat and setopt.bat use tftp.exe, make sure your Windows system had it installled.

There are 2 passwords used on PA1688 web interface. Settings on service provider information is not available if entered with normal password, users need use "super" password to access all web settings. However, both password can be hacked by Palmtool.exe:

1. Set the "IP Address in Chip" and use Palmtool "Phone Settings" to access the device directly. If it can connect, users can simply change those password in the settings dialog.

2. When "debug" option is disabled. Palmtool can not be used to access the device. Users will get error information like "Can not connect to Palm1".

3. However, debug is always enabled in safe mode. Users can enter safe mode by press and hold * key and power on twice, then the device will have default IP address (with default MAC as 00-09-45-00-00-00). Palmtool can be used to change both passwords now.

What happens if our web site login password is forgotten? Just visit password reminder page, a new password will be generated and sent to the registered email address.

Why generate a new password instead of send the old password back? Because we do not have the password in the database. What we actually store in database password field is a string encrypted by MD5 based on the password. In theory MD5 cannot be decrypted, this means we can not get original password from the encrypted one.

Finally I have to admit that although this blog is partly enlightened by an AR1688 user who wish to hack the password, the major purpose is to suggest people register account on our web site and publish blog comments. This is why it is put in "Palmmicro" category.
Posted in Palmmicro | Leave a comment


今天下午的时候,我在我的老Sony PCG-K23上编译几个西班牙文的PA168V升级软件,同时在又一次抱怨微软的自动升级如何成功的在20个月内把一台好好的计算机搞得这么慢。突然一下我想到,其实我们对PA1688软件也一直在做同样的事情。





当这一切优化和测试搞完的时候已经接近午夜。我上传了新编译的PA168V文件到网页,然后邮件通知日前从网上花6美元一个购买来这个"Soyo 1681" PA168V的主人。跟他上次花150美元购买的50个"Soyo 668W" PA168S网络电话相比,这个单口网关居然贵得翻了一倍的价格。
Posted in PA1688 | Leave a comment

A Hard Day’s Night

I was compiling some PA168V Spanish upgrade files on my old Sony PCG-K23 this afternoon, and complaining for another time how MS automatic updating had successfully made a working PC so slow in 20 months. Suddenly it occurred to me that we had done just the same thing with PA1688 software.

Every time we added some thing new, it became slower.

When we added iLBC support, in order to put the code to existing flash space, we had to compress all DSP code in flash, and uncompress them when boot-up, thus made the boot-up progress slower than an embeded linux.

And when we added dial-up modem support in some of PA1688 hardware, to prevent fork on our software, we wrapped a lot of function calls which would definitely hurt the software performance for all PA1688 devices.

With this idea in my mind, I started to separate dial-up modem and other code at once. A new OEM_MODEM compile option is added, and most modem related code will not be included in normal upgrade files unless OEM_MODEM is defined. The means dial-up modem users need special software version from 1.65.005 (for example pa168s_sip_us_modem_165005.bin), but most ethernet users will benefit from the improved software performance.

It was close to midnight when all those optimization and test work finished. I uploaded the newly built PA168V files to web site and sent email notification to the "Soyo 1681" PA168V owner, who recently bought the device on internet for 6 USD each. Compared with his previous purchase of 50 "Soyo 668W" PA168S ip phone for a total 150 USD, the 1-port FXS PA168V had magically doubled the price.
Posted in PA1688 | Leave a comment






Posted in Entertainment | Leave a comment

My First PHP Application

The first time I heard about PHP was from an AR1688 developer. He told me he had written some PHP script in AR1688 web pages to calculate the total size of the pages in bytes, so the web interface would not fail silently when oversized. Now I knew he was wrong about the PHP part, maybe he meant Javascript.

Some time later, Yahoo web hosting service which hosted palmmicro website prompted me to upgrade from PHP4 to PHP5. For the second time, I realized that PHP was in my life.

Two months ago I got to know an E-Commercial startup, when I asked what development language they were using, again I had PHP in the answers. I was so happy that I was not completely blank on the phrase, at least I had heard it twice before.

With so many knowledge about PHP, when PA6488 camera manager software CamMan need user management function, I started with PHP on our website at once. Now users can register account here. As PA6488 based camera is not available in market yet. Users can test the user management function by posting comments on this blog right now. Only registered user can post comment.

And this is my first PHP application: user and blog comment CRUD (Create/Retrieve/Update/Delete).
Posted in Entertainment | Leave a comment