Thursday, March 31, 2005

Squeezebox2 : It is a networked player. The media server is written in Perl and released as a open source software. It seem that the media server doesn't support UPnP but it can import iTunes library easily.

Twonkeyvision : It is a implementation for UPnP Media server. It can scan the installed hard disk for music content in MP3, WMA or WAV format and build the logical tree automatically.

Wednesday, March 30, 2005

AKI-PIC Programmer v3.5 : I bought the PIC writer with the upgrade kit to start the programming, and assembled the writer. I bought some parts such as XPort, LCD display module, SC1602BSLB, and MP3 decorder chip, VS1001 too. Using the parts, I will create the networked speaker and the remote control such as AirPort Express or MusicCAST.

Sunday, March 27, 2005

CppUnit : I found some tiny test unit libraries such as CppUnit-x and CUnit, but I tried and ported the standard test unit library to for T-Engine platform as following.
$ cd /usr/local
$ tar xvfz arc/cppunit-1.10.2.tar.gz
$ cd cppunit-1.10.2/
$ ./configure
$ vi include/cppunit/config-auto.h
--- config-auto.h.org 2005-03-24 10:29:04.000000000 +0900
+++ config-auto.h 2005-03-24 10:29:34.000000000 +0900
@@ -58,7 +58,7 @@

/* define if the compiler supports Run-Time Type Identification */
#ifndef CPPUNIT_HAVE_RTTI
-#define CPPUNIT_HAVE_RTTI 1
+/* #define CPPUNIT_HAVE_RTTI 1 */
#endif

/* Define if you have the shl_load function. */
$ export CPPUNITROOT=/usr/local/cppunit-1.10.2
$ vi Makefile
......
USE_CPP = 1
REL_TYP=q
......
CPPFLAGS += -D__USE_THREADS
CPPFLAGS += -D__USE_IOSTREAMS
......
CFLAGS += -I$(CPPUNITROOT)/include
......
LOADLIBES += -lstlport
......
CPPUNITSRC =
$(CPPUNITROOT)/src/cppunit/AdditionalMessage.cpp
$(CPPUNITROOT)/src/cppunit/Asserter.cpp
$(CPPUNITROOT)/src/cppunit/BeOsDynamicLibraryManager.cpp
$(CPPUNITROOT)/src/cppunit/BriefTestProgressListener.cpp
$(CPPUNITROOT)/src/cppunit/CompilerOutputter.cpp
$(CPPUNITROOT)/src/cppunit/DefaultProtector.cpp
$(CPPUNITROOT)/src/cppunit/Exception.cpp
$(CPPUNITROOT)/src/cppunit/Message.cpp
$(CPPUNITROOT)/src/cppunit/Protector.cpp
$(CPPUNITROOT)/src/cppunit/ProtectorChain.cpp
$(CPPUNITROOT)/src/cppunit/RepeatedTest.cpp
$(CPPUNITROOT)/src/cppunit/ShlDynamicLibraryManager.cpp
$(CPPUNITROOT)/src/cppunit/SourceLine.cpp
$(CPPUNITROOT)/src/cppunit/StringTools.cpp
$(CPPUNITROOT)/src/cppunit/SynchronizedObject.cpp
$(CPPUNITROOT)/src/cppunit/Test.cpp
$(CPPUNITROOT)/src/cppunit/TestAssert.cpp
$(CPPUNITROOT)/src/cppunit/TestCase.cpp
$(CPPUNITROOT)/src/cppunit/TestCaseDecorator.cpp
$(CPPUNITROOT)/src/cppunit/TestComposite.cpp
$(CPPUNITROOT)/src/cppunit/TestDecorator.cpp
$(CPPUNITROOT)/src/cppunit/TestFactoryRegistry.cpp
$(CPPUNITROOT)/src/cppunit/TestFailure.cpp
$(CPPUNITROOT)/src/cppunit/TestLeaf.cpp
$(CPPUNITROOT)/src/cppunit/TestNamer.cpp
$(CPPUNITROOT)/src/cppunit/TestPath.cpp
$(CPPUNITROOT)/src/cppunit/TestPlugInDefaultImpl.cpp
$(CPPUNITROOT)/src/cppunit/TestResult.cpp
$(CPPUNITROOT)/src/cppunit/TestResultCollector.cpp
$(CPPUNITROOT)/src/cppunit/TestRunner.cpp
$(CPPUNITROOT)/src/cppunit/TestSetUp.cpp
$(CPPUNITROOT)/src/cppunit/TestSuccessListener.cpp
$(CPPUNITROOT)/src/cppunit/TestSuite.cpp
$(CPPUNITROOT)/src/cppunit/TestSuiteBuilderContext.cpp
$(CPPUNITROOT)/src/cppunit/TextOutputter.cpp
$(CPPUNITROOT)/src/cppunit/TextTestProgressListener.cpp
$(CPPUNITROOT)/src/cppunit/TextTestResult.cpp
$(CPPUNITROOT)/src/cppunit/TextTestRunner.cpp
$(CPPUNITROOT)/src/cppunit/TypeInfoHelper.cpp
$(CPPUNITROOT)/src/cppunit/XmlDocument.cpp
$(CPPUNITROOT)/src/cppunit/XmlElement.cpp
$(CPPUNITROOT)/src/cppunit/XmlOutputter.cpp
$(CPPUNITROOT)/src/cppunit/XmlOutputterHook.cpp

CPPUNITSRC_NOUSE =
$(CPPUNITROOT)/src/cppunit/DllMain.cpp
$(CPPUNITROOT)/src/cppunit/DynamicLibraryManager.cpp
$(CPPUNITROOT)/src/cppunit/DynamicLibraryManagerException.cpp
$(CPPUNITROOT)/src/cppunit/PlugInManager.cpp
$(CPPUNITROOT)/src/cppunit/PlugInParameters.cpp
$(CPPUNITROOT)/src/cppunit/UnixDynamicLibraryManager.cpp
$(CPPUNITROOT)/src/cppunit/Win32DynamicLibraryManager.cpp
......
SRC = ...... $(CPPUNITSRC)
......
Using the library, I could run the sample test cast on the platform, T-Engine SH7727, as following. The standard console is outed to the terminal console :-)
PMC T-Kernel/SH7727 + Extension Version 1.1.02
Copyright (C) 2002-2004 by Personal Media Corporation

** SegmentMgr OK
** ProcessMgr OK
** MemoryMgr OK
** MessageMgr OK
** TaskCommMgr OK
** GNameMgr OK
** DeviceMgr OK
** ClockMgr OK
** EventMgr OK
** FileMgr OK
** CardMgr OK
** UsbMgr OK
** ClockDrv OK
** SysDiskDrv OK

[/SYS]% cd skonno
[/SYS/skonno]% recv samptestunit
[/SYS/skonno]% ls
samptestunit
[/SYS/skonno]% samptestunit
SampleTestCase::testStringSize : OK
SampleTestCase::testStringTrimFunc : OK
SampleTestCase::testStringFindFunc : OK
SampleTestCase::testStringTokenizer : OK
OK (4)

Wednesday, March 23, 2005

HEW : I will use the C/C++ compiler for porting CyberLink C/C++ of ITRON, and I installed the compiler on my development PC. The look and feel is very similar to Microsoft's IDE such as the Visual Studio, and I could create the project easily. I tested to compile some sample codes, and I noticed the compiler doesn't support STL as default. To port some codes using STL, I will try and use SGI's STL with the compiler or rewrite the codes without STL like the Vector class of CyberX3D.

Saturday, March 12, 2005

VAIO typeF : I installed Fedora Core3 to the note PC at home, but the installer is aborted with the following messages.
Assertion (heads < 256) at disk_dos.c:486 in function
probe_partition_for_geom() failed.
I knew that many users had same problem at the Bugzilla of Redhat, and I decided to delete the recovery partition for the WindowsXP. I could run Fedora Core1 on the same PC, so I deleted the all partition. Then I started the installer of Fedora Core3, and I installed it with no problem :-)

First, I installed the latest NVIDIA driver for the GeForce 6200 because the Fedora didn't recognize the new graphic chipset. According to the readme and the mailing list, I changed the Xorg configuration as the following.
# diff -ubBd /etc/X11/xorg.conf.nv /etc/X11/xorg.conf
--- xorg.conf.nv 2005-03-12 06:56:41.292116808 +0900
+++ xorg.conf 2005-03-12 04:58:21.292914376 +0900
@@ -27,7 +28,7 @@
Load "record"
Load "freetype"
Load "type1"
- Load "dri"
+# Load "dri"
EndSection

Section "InputDevice"
@@ -71,6 +72,13 @@
Option "Emulate3Buttons" "yes"
EndSection

+Section "Modes"
+ Identifier "16:10"
+ ModeLine "1680x1050" 147.1 1680 1784 1968 2256 1050 1051 1054 1087
+ ModeLine "1680x1050" 188.1 1680 1800 1984 2288 1050 1051 1054 1096
+ ModeLine "1680x1050" 214.5 1680 1800 1984 2288 1050 1051 1054 1103
+ ModeLine "1680x1050" 256.2 1680 1808 1992 2304 1050 1051 1054 1112
+EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
+ UseModes "16:10"
HorizSync 31.5 - 90.0
VertRefresh 60.0 - 60.0
Option "dpms"
@@ -82,9 +90,8 @@
EndSection

Section "Device"
Identifier "Videocard0"
- Driver "nv"
+ Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia GeForce 2 Go"
EndSection
@@ -93,7 +104,7 @@
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
+ Option "NoLogo" "true"
SubSection "Display"
Viewport 0 0
Depth 16
- Modes "1400x1050" "1280x1024" "1280x960" "1024x768" "800x600" "640x480"
+ Modes "1680x1050" "1280x1024" "1280x960" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Next, the wireless network card, Intel 2915ABG, wasn't recognized too. Then, I installed the wireless driver as the following steps.
# uname -a
Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux
# iwconfig --version
iwconfig Wireless-Tools version 27
Compatible with Wireless Extension v11 to v17.
Kernel Currently compiled with Wireless Extension v16.
# tar xvfz ipw2200-1.0.1.tgz
# cd ipw2200-1.0.1
# make
# make install
# tar xvfz ipw2200-fw-2.2.tgz
# cp *.fw /lib/firmware/
# reboot
........
Intel 2915ABG is recognized :-)
........
# system-config-network

Friday, March 11, 2005

PLC : In Japan, the power line communication haven't permitted yet for home network, but the government of Japan might permit by the end of this year. Then, Sumitomo Electric announced the 200Mbps modem as the development version.

In my home, I usually use the wireless network and the all rooms has a Ethernet connector at least using the combined power panel. However I am looking forward to be permitted the new network communication to connect classic home devices such as refrigerator and washer to home network easily :-)

Wednesday, March 09, 2005

WRITING SOLID CODE : I read the Japanese translated book again to write more solid codes. I read the book after an interval of ten years. I used to write source codes using assertion function only using C or C++, but I realized that I don't write using it recently. I implements my assertion function for Java because it doesn't support the function until J2SE 1.5, but I don't use the function enough. I can notice the critical error easily using the debugger and the test cases, so I may not use the assertion function recently. I checked my next target platform about the function. I knew that .NET Framework supports the function for all languages such as C#, but most of embedded platform such as ITRON might not support it because the platform has no the standard output by default.

iP4100R : I bought the new printer in my home. It is convenience for us not to connect my home note PCs and my old printer with a USB cable because it supports IEEE802.11b/g network :-)

Tuesday, March 08, 2005

JUMP to .NET : I knew a user of CyberLink for Java, Juan Pablo, converted the source codes to C# as the following.
From: TI6 Juan Pablo Cienfuegos Fernandez

Hello Satoshi!!

First of all, thanks for your great workt with Cyberlink. I�m doing my
Final Project in Germany (Fachohschule Ulm), and I have to develope an
application to synchronize the contents of two UPnP Media Servers.

I have used the Java Implementation of CyberLink and I have converted this
source to C# (with an automathic tool of .net)and now it is working nice.

............................
Microsoft Java Language Conversion Assistant : Then, I checked the conversion tool from Java to C#. I haven't checked the tool yet in more detail, but I would like to use it after I will do refactoring the Java source code more.

This page is powered by Blogger. Isn't yours?