Python 学习一


1、按照好Python后,查看以下:

      a)进入命令行,输入python,查看版本号,help(list) 查看对象使用方法

      b)开始---》程序---》Python查看使用手册等

      c)进入Python安装目录,Lib目录下有安装的包等

2、OpenVisualizer软件需要包(在Lib\site-packages目录下)

    a)PySerial:用于串口收发

    b)PyDispatcher:事件框架

    python官网:https://www.python.org/ 可以查看

3、pip工具

  安装python包,在命令行下 pip --help

  显示具体使用 ,如 install、list。。

  OpenVisualizer软件需要的包写在requirements.txt中:pip install -r requirements.txt

4、scons是自动化构建工具

   SCons 是一个开放源代码、以 Python 语言编写的下一代的程序建造工具。

  其中SConstruct,Sconstruct,sconstruct,SConscript是scons的配置文件,具体参考:

 http://blog.csdn.net/sealyao/article/details/6402257

  SCons官网:

http://www.scons.org/?cm_mc_uid=17140723764814489334560&cm_mc_sid_50200000=1449726885

查看使用手册


5、Web框架: Bottle

   网址:http://bottlepy.org/docs/dev/index.html


6、多生产者-多消费者信号调度框架:PyDispatcher

   网址:http://pydispatcher.sourceforge.net/


7、Wireshark抓包工具(开源的)

   IEEE802.15.4e Wireshark dissectors:  https://github.com/openwsn-berkeley/dissectors

   Wireshark-win64-1.99.7-6tisch_0.2.exe(可执行文件):
https://github.com/openwsn-berkeley/dissectors/releases/tag/6tisch_0.2


8、 MoteHandler类

     1)查看OpenVisualizerApp类

     # in "simulator" mode, motes are emulated
         sys.path.append(os.path.join(self.datadir, 'sim_files'))
         import oos_openwsn
            
         MoteHandler.readNotifIds(os.path.join(self.datadir, 'sim_files', 'openwsnmodule_obj.h'))
         self.moteProbes       = []
      for _ in range(self.numMotes):

        moteHandler       = MoteHandler.MoteHandler(oos_openwsn.OpenMote())
        self.simengine.indicateNewMote(moteHandler)
        self.moteProbes  += [moteProbe.moteProbe(emulatedMote=moteHandler)]

     MoteHandler类相当于跑openwsn协议栈节点,将其传到simengine、moteProbe类中

      2)MoteHandler调用了仿真BspEmulator包中大部分类BspRadio、BspUart、HwCrystal等

     相当于MoteHandler类的驱动层跑的是仿真驱动(而真实节点跑在硬件上)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值