博客 页面 32

Arduino驱动安装需要的缺失文件

用于32位系统 mdmcpq.inf_x86

用于64位系统 mdmcpq.inf_amd64

Arduino视频课程体系

Arduino简介与基本程序结构
本课程将指导大家安装并配置Arduino环境,然后编写你的第一个arduino程序——让LED灯闪烁起来;再通过该程序,给大家开启Arduino编程之路。
1.Arduino环境安装与Arduino型号介绍
2.IDE基本使用讲解
3.Hello Arduino
4.Arduino程序基本结构

数字信号与数字I/O口控制
数字信号的控制是所有电子开发的基础,本节课程将讲解Arduino的数字I\O口控制,并带领大家制作一个简单的红外报警器。
1.数字信号简介
2.数字IO的使用
3.人体红外感应报警器制作

模拟信号与模拟I/O口控制
在电子世界里除了0101的数字信号外,还有由连续的电压变化构成的模拟信号,在arduino上我们也可以读取
1.模拟信号简介
2.PWM输出
3.RGB LED调光实验
4.模拟输入
5.简易电子温度计

Arduino与计算机通信——串口通信基础

Arduino I/O口的高级应用

使用和编写Arduino类库
Arduino的优势之一就是社区贡献了数量庞大的类库,大部分情况下,我们使用的模块、传感器都已经有人编写好了类库,我们要做的仅仅是找到这些类库,然后导入使用。当然,为了方便我们的开发工作,我们也得自己使用编写一些类库。
1.类库的使用
2.编写Arduino类库

串口的高级使用
1.串口输出
2.串口输入

IIC、SPI通信简介

数据存储(一)——EEPROM存储

数据存储(二)——SD卡存储

红外无线通信

LCD的使用(一)——1602字符液晶的使用

LCD的使用(二)——12864图形点阵液晶的使用

USB模拟鼠标操作

USB模拟键盘操作

Arduino Ethernet基本使用方法

Arduino Ethernet搭建简易服务器

Nginx+PHP上传大文件设置

nginx的修改

send_timeout 60;

fastcgi_connect_timeout 300;

fastcgi_send_timeout 300;

fastcgi_read_timeout 300;

client_max_body_size 30m; 可以全局设置也可以每个网站单独设置

php的修改

upload_max_filesize 10M

post_max_size 15M 该项应该要大于 upload_max_filesize

max_input_time 300

max_execution_time 300

php-fpm注意参数

request_terminate_timeout 300

request_slowlog_timeout 如果多数为上传大文件则设置较大值,这个根据自身情况设置

这两个参数如果设置过小的话会导致文件传输了一部分后连接关闭。

最大时间根据用户带宽计算,不建议设置为 0 无限制,避免意外宕机。

==========================================================

由于看到网上很多配置帖子中说要把 nginx.conf 中的 keepalive_timeout 时间设置加大才行

我的服务器上设置为:

keepalive_timeout 60; 默认 大概 75s 我设置的是 60,

所以

经过实际测试,本地限速 34KB/s 上传 9MB 文件,用时270秒左右,上传成功,

表明实际上传不受 keepalive_timeout 时间影响,和该项配置无关

而且这个时间加长会严重影响 nginx 的并发

————————————————————————————————-

至于 send_timeout 我在网上查询了半天也没搞清楚到底是怎么个超时,同样也测试过,

将 send_timeout 设置为 60 后,

上传超过 170s 仍然上传成功,所以我理解的是该超时时间应该为 客户端上传时网络断流后超过 60s 则停止接收接收操作,中断连接。只要持续发送数据则不会断掉,可能是这样的吧

http://snailz.lofter.com/post/20a865_8bcab1

linux 下配置ap+station模式

http://blog.csdn.net/mirkerson/article/details/38276629

密码保护:项目分包记录

此内容受密码保护。如需查阅,请在下列字段中输入您的密码。

QQ机器人信息备份

问:mostfun官方网站
答:欢迎访问mostfun官方网站 http://www.mostfun.cc/

test windows server

test windows servertest windows servertest windows servertest windows servertest windows server
原本使用lnmp,为了挂QQ,现在换为了wnmp,感觉一切OK~

configure_edison用法

root@mostfun:/tmp# configure_edison –help
usage: configure_edison [-h] [–server]
[[–setup | –name | –password | –wifi]
[–showWiFiIP | –version | –latest-version | –upgrade | –disableOneTimeSetup | –enableOneTimeSetup | –flash <version> [<release name> …]
| –showNames]

optional arguments:
-h, –help show this help message and exit
–server Starts the server (testing only)
–setup Goes through changing the device name, password, and
wifi options
–name Changes the device name
–password Changes the device password
–wifi Changes the wifi options
–showWiFiIP IP address associated with the wireless interface
–version Gets the current firmware version
–latest-version Gets the latest firmware version
–upgrade Downloads the latest firmware
–disableOneTimeSetup
Disable one-time setup and WiFi access point
–enableOneTimeSetup Enable one-time setup and WiFi access point
–flash <version> [<release name> …]
Downloads and flashes an image
–showNames Show device name and SSID

编译Yocto用到的工具

openembedded:https://github.com/openembedded/

入门:http://os.chinaunix.net/a2009/0116/990/000000990346.shtml

手册:http://blog.chinaunix.net/uid-25909619-id-3767317.html

opkg的使用

opkg must have one sub-command argument
usage: opkg [options…] sub-command [arguments…]
where sub-command is one of:

Package Manipulation:
update Update list of available packages
upgrade Upgrade installed packages
install <pkgs> Install package(s)
configure <pkgs> Configure unpacked package(s)
remove <pkgs|regexp> Remove package(s)
flag <flag> <pkgs> Flag package(s)
<flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
list List available packages
list-installed List installed packages
list-upgradable List installed and upgradable packages
list-changed-conffiles List user modified configuration files
files <pkg> List files belonging to <pkg>
search <file|regexp> List package providing <file>
info [pkg|regexp] Display all info for <pkg>
status [pkg|regexp] Display all status for <pkg>
download <pkg> Download <pkg> to current directory
compare-versions <v1> <op> <v2>
compare versions using <= < > >= = << >>
print-architecture List installable package architectures
depends [-A] [pkgname|pat]+
whatdepends [-A] [pkgname|pat]+
whatdependsrec [-A] [pkgname|pat]+
whatrecommends[-A] [pkgname|pat]+
whatsuggests[-A] [pkgname|pat]+
whatprovides [-A] [pkgname|pat]+
whatconflicts [-A] [pkgname|pat]+
whatreplaces [-A] [pkgname|pat]+

Options:
-A Query all packages not just those installed
-V[<level>] Set verbosity level to <level>.
–verbosity[=<level>] Verbosity levels:
0 errors only
1 normal messages (default)
2 informative messages
3 debug
4 debug level 2
-f <conf_file> Use <conf_file> as the opkg configuration file
–conf <conf_file>
–cache <directory> Use a package cache
-d <dest_name> Use <dest_name> as the the root directory for
–dest <dest_name> package installation, removal, upgrading.
<dest_name> should be a defined dest name from
the configuration file, (but can also be a
directory name in a pinch).
-o <dir> Use <dir> as the root directory for
–offline-root <dir> offline installation of packages.
–add-arch <arch>:<prio> Register architecture with given priority
–add-dest <name>:<path> Register destination with given path
–add-exclude <name> Register package to be excluded from install
–prefer-arch-to-version Use the architecture priority package rather
than the higher version one if more
than one candidate is found.

Force Options:
–force-depends Install/remove despite failed dependencies
–force-maintainer Overwrite preexisting config files
–force-reinstall Reinstall package(s)
–force-overwrite Overwrite files from other package(s)
–force-downgrade Allow opkg to downgrade packages
–force-space Disable free space checks
–force-postinstall Run postinstall scripts even in offline mode
–force-remove Remove package even if prerm script fails
–noaction No action — test only
–download-only No action — download only
–nodeps Do not follow dependencies
–no-install-recommends
Do not install any recommended packages
–force-removal-of-dependent-packages
Remove package and all dependencies
–autoremove Remove packages that were installed
automatically to satisfy dependencies
-t Specify tmp-dir.
–tmp-dir Specify tmp-dir.

regexp could be something like ‘pkgname*’ ‘*file*’ or similar
e.g. opkg info ‘libstd*’ or opkg search ‘*libop*’ or opkg remove ‘libncur*’

 

opkg update 更新可以获取的软件包列表
opkg upgrade 对已经安装的软件包升级
opkg list 获取软件列表
opkg install 安装指定的软件包
opkg remove 卸载已经安装的指定的软件包