linux ´®¿Ú¶àÏß³ÌÎÊÌâ £¨100£©
ÏÂÃæÊÇÁ½¸öỊ̈߳¬tty_handleÊǶÁ£¬tty_testÊÇд£¨ÕâÀïÖ÷Òª×öÒ»¸ö²âÊÔд¹¦ÄÜ£©£¬
add_data_to_link_listÖ÷ÒªÊǰÑÊý¾Ý¼ÓÈë¶ÓÁÐÖУ¬µ«ÊÇÔËÐÐÒ»¶Îʱ¼äºó·¢ÏÖÖ»ÊÇ
ºìÉ«²¿·ÖΪ³ö´íµÄ¿ªÊ¼£¬ºÃÏñдÊý¾Ý¿ªÊ¼³ö´í£¬µ«ÊǽÓÊÜÏß³ÌÊÇÕý³£µÄ
×¢£ºµ±tty stop ·¢ËͳöÈ¥ºó´®¿ÚµÃµ½Ò»¸ö12×Ö½Ú³¤µÄÊý¾Ý£¬ºóÃæÊý¾ÝûÓнÓÊܵ½£¬ÕâÊÇΪʲô£¿
write 7 bytes to tty left
write 7 bytes to tty stop
Get data from tty and length is 12 :
[21]
[1]
[42]
[5]
[da]
[41]
[2c]
[1]
[70]
[a8]
[3b]
[ff]
write 7 bytes to tty left
write 7 bytes to tty stop
write 7 bytes to tty left
write 7 bytes to tty stop
write 7 bytes to tty left
write 7 bytes to tty stop
write 7 bytes to tty left
C/C++ code:
/************************************************************************************
* tty_handle() To read the data from tty and write into the queue.
************************************************************************************/
void tty_handle(void )
{
int length;
int k = 0,j=0;
unsigned char buffer[MAX_LEN];
if (DEBUG)
printf("Init tty handle thread\n");
if (fd_tty < 0)
{
printf("The tty port error while handing the tty\n");
exit(1);
}
memset(buffer,
Ïà¹ØÎÊ´ð£º
ÔÚLINUX裏°²裝 CURL 時,³ö現ÈçÏÂ報錯
checking for SSL support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something ......
linux ÏÂusbÉ豸£¬ÔÚrootȨÏÞÏ£¬É豸¿ÉÒÔÕý³£ÕÒµ½Çý¶¯£¬
µ«ÔÚÆÕͨÓû§ÏÂÕÒ²»µ½É豸Çý¶¯£¬
ÔõÑù²Å¿ÉÒÔÔÚÆÕͨÓû§ÏÂʹÓÃusbÉ豸£¿
Çë¸ßÊÖÖ¸½Ì
°ï¶¥Ï¡¢
ûÓöµ½¹ý£¬ÎÒÓõÄfedoraÆÕͨÓû§Ä¬ÈϵÄÒ²ÄÜÓðɣ ......
ÔÚlinuxÏÂʹÓÃEclipse+CDT£¬Èç¹ûÒª²é¿´ÏµÍ³ÌṩµÄһЩº¯ÊýµÄ¶¨Òå¡¢ÉùÃ÷£¬¸ÃÈçºÎ×öÄØ¡£
F3ºÃÏñÊÇ¿ÉÒԲ鿴º¯ÊýÉùÃ÷µÄ£¬µ«°´ÁËÒÔºóûʲô·´Ó¦¡£ÊDz»ÊÇÐèÒªÔÚEclipseÖÐÉèÖÃÒ»ÏÂÏàÓ¦µÄ·¾¶²Å¿ÉÒÔ¡£
ʹÓÃEclipse½¨Á¢Ò» ......
ÎÒµÄÏîÄ¿ËùÔڵĻ·¾³ÊÇphp+apache+linux
ÏÖÎÒÖØÆô·þÎñÊÇ service httpd restart
ÏÖÎÒÏë¶¨Ê±ÖØÆô´ËÏî·þÎñ£¨¶¨ÔÚÿÌìÏÂÎç4µã£© ÔõôʵÏÖѽ£¬¶àл
crontab
* 16 * * * service httpd restart
ѧϰ + d ......
ÇëÎÒÓÃFCKÉÏ´«Îļþ,ÔÚ±¾µØµÄwindows»úÉϲâÊÔ¿ÉÒÔ£¬µ«²¿Êðµ½linux·þÎñÆ÷ÉϾÍÉÏ´«²»ÁËÎļþ£¬ÉÏ´«Îļþʱһֱ¿¨ÔÚÄÇÀï¡£Íû¸÷λ´óϺָµã£¬Ð»Ð»£¡
·¹ý£¬°ïÄ㶥һϡ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
ÉÏ´«ÎļþµÄ·¾¶ÎÊÌ⣬ ......