2007年2月28日星期三

新年好

 大家新年好!新的一年开始了,我们又投入了紧张而又充满挑战与机遇的日常工作当中,在此我预祝大家在新的一年里个个都有新发展,人人都有新收获!

2007年2月25日星期日

邮件发送文章到博客失败了

前段时间可以通过邮件发送文章到我自己的博客上,可这些天发不出去了,这是怎么回事呢?我已经配置好了许可用户,就是不行,郁闷!

策划

下自己的蛋,让别人去说吧!
会下蛋的公鸡,公鸡中的战斗鸡,Oh,Yeah!!
你真是太有才了

2007年2月24日星期六

MMSLITE MVL

MVL=MMS Virtual Light ?

Or MVL=MMS Virtual Lite ?

 

什么是MMS-EASE Lite?

SISCOMMS-EASE Lite(Embedded Application Service Element嵌入应用服务元件)是制造业报文协议(MMS)C语言API。包括源于MMS-EASE产品线的源程序模块,也包括了为小系统应用的优化新文件集。他们独立于编译器和操作系统。它提供了一种为应用软件编码和解码MMS PDU(MMS协议数据单元)的机制,它共享了MMS-EASE数据结构和完整的MMS-EASE API修改子集,另外,有一易用的高级应用架构(MVL)去加速开发过程。

 

中国人


2007年2月21日星期三

2007中国年

2007年到来了,shenlan51祝愿大家新年愉快,万事如意!

时尚




Posted by Picasa

2007年2月14日星期三

All Rise

歌手:blue

 

Your honour please,

Gotta believe me what I say,

What I will tell,

Happened just the other day.

I must confess,

Cause I've had about enough,

I need your help,

Gotta make this here thing stop.

 

Baby I swear I'll tell the truth,

About all the things you used to do,

And if you thought you had me fooled.

I'm telling you now, objection overruled.

 

One for the money and the, free rides,

It's two for the lie that you, denied,

All rise, All rise.

 

Three for the calls that you've, been making,

It's four all the times you've been faking,

All rise, All rise.

 

You're on the stand,

With your back against the wall,

Nowhere to run,

And nobody you can call. (oh no)

I just can't wait,

Now the case is open wide,

You'll try to pray,

But the jury will decide.

 

Baby I swear I'll tell the truth,

About all the things you used to do,

And if you thought you had me fooled,

I'm telling you now, objection overruled.

Oh baby.

One for the money and the, free rides,

It's two for the lie that you, denied,

All rise, All rise.

 

Three for the calls that you've, been making,

It's four all the times you've been faking,

All rise, All rise.

 

So step back,

Cos you don't know this cat.

I know deep down that,

You don't want me to react.

I'll lay low,

Leaving all my options open,

The decision of the jury,

Has not been spoken.

Step in my house,

You find that your stuff has gone,

But in reality,

To whom does the stuff belong.

I bring you into court,

To preach my order,

Any you know that,

You overstepped the border.

 

One for the money and the, free rides,

It's two for the lie that you, denied,

All rise, All rise.

 

Three for the calls that you've, been making,

It's four all the times you've been faking,

All rise, All rise.

 

What you say,(One for the money and the, free rides)

Games you play,(It's two for the lie that you, denied)

What you've done.(All rise, All rise)

 

What you say,(Three for the calls that you've, been making)

Games you play,(It's four all the times you've been faking)

What you've done,(All rise, All rise)

When you're gone

 

One for the money and the, free rides,

It's two for the lie that you, denied,

All rise, All rise.

Three for the calls that you've, been making,

It's four all the times you've been faking,

All rise, All rise.

I rest my case

 

试听All Rise        试听月亮之

2007年2月13日星期二

2007年2月12日星期一

谷歌博客网志

"Google 是彩色的"也许每个人对这句话都有着不同的理解。彩色是 Google Logo 的变化无穷;彩色是 Google 带来的一个个惊喜;对于坐在 Google 新办公室里的员工而言,也许有着更多的含义:彩色是 Google 漂亮的地毯;彩色是 Google 丰富的"厨房";彩色是 Googler 每天激情的工作;彩色是 Googler 每个奇思妙想。

2007年2月11日星期日

函数指针数组

理解函数指针的概念:
1 int funtion( int x, int y );
2 void main ( void )
 {
3    int (*fun) ( int x, int y );
4    int a = 10, b = 20;
5    function( a, b );
6    fun = function;
7    (*fun)( a, b );
8     ……
  }正确使用函数指针数组的前提条件是,这若干个需要通过函数指针数组保存的函数必须有相同的输入、输出值。
首先定义256个处理函数(及其实现)。
void funtion0( void );
……..
void funtion255(void );
其次定义函数指针数组,并给数组赋值。
void (*fun[256])(void);
fun[0] = function0;
…….
fun[255] = function();
最后,MyFunction()函数可以修改如下:void MyFuntion( char* buffer, int length )
{
    __int8 nStreamType = buffer[0];
    (*fun[nStreamType])();
}

61850...

12 3 4 ...NN+1...PP+1...END
LIFixed PartViariable PartData Field

HASH算法

在61850规约处理中,可能会有大量的字符串需要处理,为了提高字符串的检索速度,建议采用一些经典算法,下面是网路上的HASH算法。
Hash,一般翻译做"散列",也有直接音译为"哈希"的,就是把任意长度的输入(又叫做预映射, pre-image),通过散列算法,变换成固定长度的输出,该输出就是散列值。这种转换是一种压缩映射,也就是,散列值的空间通常远小于输入的空间,不同的输入可能会散列成相同的输出,而不可能从散列值来唯一的确定输入值。 数学表述为:h = H(M) ,其中H( )--单向散列函数,M--任意长度明文,h--固定长度散列值。 在信息安全领域中应用的Hash算法,还需要满足其他关键特性,需要知道更多?google呀!baidu.

61850.PACKET HEADER

8 位位组1

8 位位组2

8 位位组3~4

8位位组4~n

版本=3

(vrsn)

保留
(reserved)

报文长度,ISO传输
层报文长度+4

(packet length)

ISO传输层报文

(data)

where:
vrsn 8 bits,This field is always 3 for the version of the protocol described inthis memo.packet length 16 bits (min=7, max=65535),This field contains the length of entire packet in octets,including packet-header. This permits a maximum TPDU size of 65531 octets. Based on the size of the data transfer (DT) TPDU,this permits a maximum TSDU size of 65524 octets.The format of the TPDU is defined in [ISO8073]. Note that onlyTPDUs formatted for transport class 0 are exchanged (different transport classes may use slightly different formats).

61850.TPDU

header length

code credit

TPDU-NR and EOT

user data

一个字节

一个字节,code占高四位,credit占低四位

一个字节

n个字节

After the credit field (which is always ZERO on output and ignored
on input), there is one additional field prior to the user data.TPDU-NR and EOT 8 bits Bit 7 (the high-order bit, bit mask 1000 0000) indicates the end of a TSDU. All other bits should be ZERO on output and ignored on input.Note that the TP specification limits the size of an expedited
transport service data unit (XSDU) to 16 octets.

交叉网线

步骤1:利用斜口错剪下所需要的双绞线长度,至少0.6 米,最多不超过100 米。然后再利用双绞线剥线器(实际用什么剪都可以)将双绞线的外皮除去2-3 厘米。有一些双绞线电缆上含有一条柔软的尼龙绳,如果您在剥除双绞线的外皮时,觉得裸露出的部分太短,而不利于制作RJ-45 接头时,可以紧握双绞线外皮,再捏住尼龙线往外皮的下方剥开,就可以得到较长的裸露线。步骤2:接下来就要进行拨线的操作。将裸露的双绞线中的橙色对线拨向自己的前方,棕色对线拨向自己的方向,绿色对线拨向左方,蓝色对线拨向右方。步骤3:将绿色对线与蓝色对线放在中间位置,而橙色对线与棕色对线保持不动,即放在靠外的位置。步骤4:按照EIA/TIA 568B 规定,最好的接线方法应该是:左起:白橙/橙/白绿/蓝/白蓝/绿/白棕/棕;而另一端的接法应该是:左起:白绿/ 绿/白橙/蓝/白蓝/橙/白棕/棕。
以上是标准做法,简易做法很easy:不看颜色,直接1和3对调,2和6对调,搞定!
1,2是发送线;3,6是接受线

TCP/IP 与 ISO OSI 模型的对应关系


需要了解WinPcap

Winpcap(windows packet capture)是Windows平台下一个免费、公共的网络访问系统,它为win32应用程序提供访问网络底层的能力。,Winpcap不能阻塞、过滤或控制其他应用程序数据报的发收,它仅仅只是监听共享网络上传送的数据报。 它提供了以下的各项功能,这些功能均有助于以太网数据流监视软件功能的实现: (1) 捕获原始数据报,包括在共享网络上各主机发送/接收的以及相互之间交换的数据报; (2)在数据报发往应用程序之前,按照自定义的规则将某些特殊的数据报过滤掉; (3)在网络上发送原始的数据报; (4)收集网络通信过程中的统计信息。

Happy New Year

 
Nina Liu
 
Happy New Year & Best Wishes

If you have any questions, please contact with me freely.

2007年2月10日星期六

No blog, no sex

网络上游荡,看了一个夫妻间关于BLOG的帖子,深感博客背后的魅力真是无法可档:
In an effort to encourage me to revive this blog, my wife has imposed this “No blog, No sex” rule. The rule is simple: I am supposed to blog at least once a week in exchange for love-making. The hornier I get, the more blog entries I get to post. I don’t know where the hell she got this idea (but I think it must have been from one of her blogger friends: Abe, Noemi, Javyee, Rico.) I’ve always wanted to become a blogger ever since Gail, my wife, has introduced me to this sport a couple of years ago. I just did not have the time and I guess proper motivation to keep going. Attending the Blog Parteeh (wherein our web design company Sheero Media was one of the sponsors), made me realize how amazing Pinoy bloggers are and that blogging is by itself a worthwhile venture. This is the end of this blog entry, bye for now. Time for me to claim my prize. Arrrghh!! Meeowww!!

钱哪

GOOGLE的广告无处不在,想上网遛遛找个赚钱的路,发现一个调客网,网上调查赚钱,以前也干过这事,都是半途而废,登陆http://www.freesurvey.com.cn/index.asp ,经不住诱惑,又注册一个,然后期待着一个个硬币排着队从网线里爬过来。老天还真给机会,一个调查180块,被我给撞上了,吭哧吭哧答完了,对方说你前后不一致回答不专业,下次欢迎再来。
下次?BYEBYE了您哪!

IEC61850,One World,One Technology,One Standard

IEC61850标准是基于通用网络通信平台的变电站自动化系统唯一国际标准,它是由国际电工委员会第57技术委员会(IECTC57)的 3个工作组10,11,12(WG10/11/12)负责制定的。此标准参考和吸收了已有的许多相关标准,其中主要有:IEC870-5-101远动通信协议标准;IEC870-5-103继电保护信息接口标准;UCA2.0(Utility Communication Architecture2.0)(由美国电科院制定的变电站和馈线设备通信协议体系); ISO/IEC9506制造商信息规范MMS(Manufacturing Message Specification)。变电站通信体系IEC61850将变电站通信体系分为3层:变电站层、间隔层、过程层。在变电站层和间隔层之间的网络采用抽象通信服务接口映射到制造报文规范(MMS)、传输控制协议/网际协议(TCP/IP)以太网或光纤网。在间隔层和过程层之间的网络采用单点向多点的单向传输以太网。变电站内的智能电子设备(IED,测控单元和继电保护)均采用统一的协议,通过网络进行信息交换。IEC61850的特点是1)面向对象建模; 2)抽象通信服务接口; 3)面向实时的服务; 4)配置语言; 5)整个电力系统统一建模。IEC61850建模了大多数公共实际设备和设备组件。这些模型定义了公共数据格式、标识符、行为和控制,例如变电站和馈线设备(诸如断路器、电压调节器和继电保护等)。自我描述能显著降低数据管理费用、简化数据维护、减少由于配置错误而引起的系统停机时间。IEC61850作为制定电力系统远动无缝通信系统基础能大幅度改善信息技术和自动化技术的设备数据集成,减少工程量、现场验收、运行、监视、诊断和维护等费用,节约大量时间,增加了自动化系统使用期间的灵活性。它解决了变电站自动化系统产品的互操作性和协议转换问题。采用该标准还可使变电站自动化设备具有自描述、自诊断和即插即用(Plug and Play)的特性,极大的方便了系统的集成,降低了变电站自动化系统的工程费用。在我国采用该标准系列将大大提高变电站自动化系统的技术水平、提高变电站自动化系统安全稳定运行水平、节约开发验收维护的人力物力、实现完全的互操作性。

农民

很久没有看过英文了,有了blogger.com后,免不了也要浏览一下这个群体内的其他博客,老外的博客风格还有点和我们不太一样,颇有点审美不再疲劳的感觉,有那么点意思。

顺手摘了一个JEAN FOR ME的广告:

61850

 61850,你的时代到来了,我的时代需要重新规划了

两个学习ASN.1的网站

通过邮箱写BLOG

邮件写BLOG,用汉字的字体效果会很差,用Georgia字体倒还不错。附件现在还不能直接发送倒BLOG,要想其他办法。

我的gMail

google的邮箱出来以后,以摧枯拉朽之势迅速泛滥网罗哦界,费了好大周折申请才成功,感觉的确有一些优点:1、google搜索的使用很大程度上成就了gMail,可以安装google bar,将喜欢的网页整个发送到邮箱。 2、博客遍地开花的时代,好博客很多,但用邮箱可以发送到BLOG的还是第一个,工作之余可以直接将一些东西发送到BLOG上,就当网络笔记本使。 3、收到好听的MP3,直接就给播放了,这个也不错,不过播放的类型少了一些,君需继续努力。 4、google的盟友众多,外挂软件很多,省事不少。

RTU560 Tool PassWord

ID:GWU560
PSW:560SLI01

LOGIN:Load
Lpwd:Load
fomart:rtu

RTU560 2.0 Add New Protocal

添加一个新的规约的步骤:

(一)、C:\Tornado\RTU560\protlnch.c 文件中添加;

(二)、C:\Tornado\RTU560\DBConfig\cfconval.c 文件中添加;

(三)、C:\Tornado\target\config\comps\vxWorks\50rtuprotocols.c 文件中添加;

(四)、:\Tornado\FirmwareVersion\SLI\WBLV2C000R4xxx\prjParams.c 文件中添加(自动加入);

RTU560 1.0 Add New Protocal

1、在路径 \USERS\ligenyuan\RTU560\incmod.mk下增加相关配置;在路径 \USERS\ligenyuan\RTU560\incmod.h 下增加相关配置;在路径 \USERS\ligenyuan\RTU560\protlnch.c 下增加相关配置;

2、在路径 \tornado1.0\host\resource\tcl\app-config\Tornado\01Project.win32.tcl 下增加相关配置;

3、在路径 \Archiv\RTU560\Develop\dv00.21_bf\rules.version 下增加相关文件配置

RTU560 1.0 MainBoard

1、用RTU560/OPEN MAKEFILE FOR RTU560 查看规约的路径配置用RTU560/OPEN MODULE CONFIGFILE 用来裁减规约(也就是USERS/LIGENYUAN/RTU560/INCMOD.MK中的内容)裁减时同时可裁减USERS/LIGENYUAN/RTU560/INCMOD.H中的内容

2、用RTU560/PROTOCOLS/"PTL"/CLEAR 清除规约老的编译结果;用RTU560/PROTOCOLS/"PTL"/BUILD 编译每个规约;

3、用RTU560/ALL/CLEAR 清除各个规约的联结结果;用RTU560/ALL/LINK RELATIVE 联结所有的定义中的规约;

4、联结后的结果在路径 USERS\ligenyuan\RTU560\rtu560_SLI_bf.o 下将rtu560_SLI_bf.o 拷贝到tornado\target\config\560.ReleaseSLI\User_app下执行 make 560 releasesli/common target/clean;然后make 560 releasesli/common target/vxWorks_low,会在tornado1.0\target\config\560.ReleaseSLI 下生成vxWorks_low文件,将其拷贝成wbloxx.bin; tgtsvr.exe 启动时时间限制2000.6.5--2000.7.5/user/ligenyuan/Rtu560 下有一个批处理文件叫 buildSLI.bat 可能和编译有很大关系


2007年2月9日星期五

我的google博客

google的功能真是强大,这么多简单实用的工具加上可利用的信息资源,完美结合,叹为管止!利用google,推进生活!