Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

»ùÓÚs3c2410ºÍǶÈëʽLinuxµÄD/Aת»»µÄʵÏÖ


1 ÒýÑÔ
ÔÚǶÈëʽӦÓÃϵͳÖУ¬ÌرðÊÇÖÇÄÜÒÇÆ÷¡¢ÒÇ±í¡¢»úµçÉ豸¼°×°ÖÿØÖÆÖУ¬ÐèҪʹÓÃA/Dת»»½«Ä£ÄâµÄµçÁ¿ÐźÅת»»ÎªÊý×ÖÐźŽøÐд¦Àí£¬¶øºóÔÙ½«´¦ÀíµÄ½á¹ûͨ¹ýD/Aת»»ÎªÄ£ÄâÁ¿ÊµÏÖ¶Ô±»¿Ø¹ý³ÌºÍ¶ÔÏóµÄ¿ØÖÆ[1]¡£
»ùÓÚARM920TÄں˵Äs3c2410ÊÇÒ»¿îµÍ¹¦ºÄ£¬¸ßÐԼ۱ȵĴ¦ÀíÆ÷[2]¡£Õâ¿î´¦ÀíÆ÷ÄÚ²¿¼¯³ÉÁ˶àÖÖ¿ØÖƽӿڣ¬×Ô´ø8·10λµÄA/Dת»»Æ÷[3]£¬ÓÃÓÚÖ§³Ö¶ÔÓÚ´¥ÃþÆÁÊäÈëµÄ¿ØÖÆ£¬¶øÇÒ×ãÒÔÂú×ãÍⲿģÄâÁ¿²É¼¯µÄÐèÒª£¬µ«ÊÇs3c2410ÄÚ²¿Ã»Óм¯³ÉD/Aת»»Æ÷£¬Òò´ËÔÚÉÏÊöÓ¦ÓÃÖУ¬¾ÍÐèÒª²ÉÓöÀÁ¢µÄD/Aת»»Ð¾Æ¬Óës3c2410ÅäºÏ£¬Âú×ãÓ¦ÓõÄÐèÒª¡£¶øMAX504Ò»¿îͨÓõÄ10λ´®ÐÐD/Aת»»Æ÷£¬¿ÉÒÔÂú×ãÒ»°ãÓ¦ÓöÔÓÚ·Ö±æÂʺ;«¶ÈµÄÒªÇ󣬲¢ÇÒ²ÉÓô®ÐÐͨÐÅ£¬Ð¾Æ¬Ãæ»ýС£¬Õ¼ÓõĴ¦ÀíÆ÷¹Ü½ÅÊýÉÙ£¬Òò´Ë±¾ÎÄÖÐÒÔs32410Íâ½ÓMAX504£¬²¢»ùÓÚLinux²Ù×÷ϵͳ£¬ÊµÏÖD/Aת»»µÄ¹¦ÄÜ¡£
2 ϵͳӲ¼þµç·
2.1 10λµÄD/Aת»»Æ÷MAX504[4]
MAX504ÊÇMAXIUM¹«Ë¾ÍƳöµÄµÍ¹¦ºÄ£¬µçѹÊä³ö£¬10λ´®ÐÐÊý×Ö/Ä£Äâת»»Ð¾Æ¬£¬Ö§³Ö+5Vµ¥¹©µçºÍ±5VË«¹©µç·½Ê½£¬²¢ÇÒ¸ÃоƬ¶ÔÓÚ°üÀ¨Æ«ÒÆ¡¢ÔöÒæºÍÏßÐÔÎó²îÔÚÄڵĸ÷ÏîÎó²î¾ùÒÔµ÷Õû£¬ËùÒÔÓ¦Ó÷dz£¼òµ¥£¬²»ÐèÒªÔÙ¶ÈУÕý¡£
MAX504²ÉÓõÄÊÇÈýÏß´®Ðнӿڣ¬ÓëSPI£¬QSPIºÍMicrowire±ê×¼¾ù¼æÈÝ¡£MAX504¿Éͨ¹ýдÈëÁ½¸ö8볤µÄÊý¾Ý½øÐбà³Ì£¬ÆäдÈëµÄÏȺó˳ÐòΪ£¬4¸öÌî³ä룬10¸öÊý¾ÝλºÍ×îµÍÁ½Î»µÄ0¡£´Ë´¦£¬×î¸ß4λµÄÌî³äλֻÓе±MAX504²ÉÓþջ¨Á´·½Ê½Á¬½Óʱ±ØÐëдÈ룬¶ø×îµÍµÄÁ½Î»0ÔòÒ»¶¨ÐèҪдÈë¡£µ±ÇÒ½öµ±CSƬѡÓÐЧʱ£¬Êý¾ÝÔÚSCLKµÄÉÏÉýÑØÖðλ´òÈëƬÄÚµÄ16λÒÆλ¼Ä´æÆ÷£¬²¢ÔÚCSÉÏÉýÑØ£¬½«ÓÐЧµÄ10λÊý¾Ý£¨µÚ2~µÚ11룩´«Ë͵½D/Aת»»¼Ä´æÆ÷ÖУ¬ÐÞ¸ÄÔ­¼Ä´æÆ÷ÄÚÈÝ¡£
MAX504оƬΪ14¹Ü½ÅµÄDIP»òÕßSO·â×°ÐÎʽ£¬³ýµçÔ´ºÍµØ¹Ü½ÅÍ⣬¹Ü½Å¿ÉÒÔ·ÖΪÁ½×飬һ×éÓë´¦ÀíÆ÷ÏàÁ¬½Ó£¬ÁíÒ»×é¹Ü½ÅµÄ²»Í¬Á¬½Ó¿ÉÒԸıäMAX504µÄ¹¤×÷ģʽ¡£
MAX504¾ßÓÐÈýÖÖ¹¤×÷ģʽ£¬·Ö±ðÊǵ¥¼«ÐÔÊä³ö£¬Ë«¼«ÐÔÊä³öºÍËÄÏóÏ޳˷¨Æ÷¡£Í¨¹ý½«MAX504µÄREIN,VOUT ,BIPOFFºÍRFB¼¸¸ö¹Ü½ÅµÄ²»Í¬Á¬½Ó·½Ê½£¬¿ÉÒÔ¸ù¾ÝÐèÒª½«MAX504¶¨ÒåΪÐèÒªµÄ¹¤×÷ģʽ¡£
2.2 MAX504ÓëS3c2410µÄÁ¬½Ó
   MAX504Óë´¦ÀíÆ÷Ö®¼ä¿ÉÒÔʹÓÃSPI£¬QSPIºÍMicrowireÖеÄÈκÎÒ»ÖÖ´®ÐÐͨÐÅ·½Ê½£¬¶øs3c2410´øÓÐÁ½¸öSPI½Ó¿Ú£¬ËùÒÔMAX504Óës32410Ö®¼äͨ¹ýSPI½øÐÐÁ¬½Ó·Ç³£·½±ã¡£µç·ÈçͼËùʾ
ͼ2.1 µç·Á¬½ÓÔ­Àíͼ
  MAX504Óë´¦ÀíÆ÷Á¬½ÓµÄÖ÷Òª¹Ü½ÅÓÐËĸö£¬·Ö±ðÊÇ£º
   (1) DIN—Êý¾ÝÊäÈë¶Ë£¬¸Ã¹Ü½ÅÓÃÓÚ½ÓÊÕ´®ÐÐͨ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

linuxÌí¼Ó·ÓÉ

linuxÌí¼Ó·ÓÉ
http://baikgd.blog.163.com/blog/static/35402495200972111353827/
·þÎñÆ÷ip(eth0)
[root@localhost net]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:E3:9A:15
inet addr:172.18.3.205 Bcast:172.18.3.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee3:9a15/64 Scope:Link
UP BR ......

×îÐÂTurboMailÓʼþ·þÎñÆ÷Linux_°²ÌÚ°æ±¾ÉÏÊÐ

Íز¨±ü³Ð²»¶Ï¿ªÍؽøÈ¡µÄ¾«Éñ£¬ÔÚ¼¼ÊõÑз¢ºÍÖ§³ÖÉϲ»¶ÏµÄͶÈëÈËÁ¦ÎïÁ¦£¬Á¦ÇóÔÚ²»¶Ï±ä»¯µÄÊг¡ÐèÇóÖУ¬´ïµ½100%µÄ¿Í»§ÂúÒâ¶È¡£ÔÚ¸Õ¸Õ̤Èë2010Ä꣬¸ù¾Ý¹ýÍùµÄÊг¡µ÷²é£¬½áºÏ¿Í»§µÄÐèÇóºÍ½¨Ò飬Íز¨ÓʼþϵͳÍƳöÁËLinux_°²ÌÚ°æ±¾£¬×÷ΪдºË͸ø¹ã´ó¿Í»§µÄµÚÒ»·ÝÀñÎï¡£
    °²ÌÚ´¦ÀíÆ÷ÊÇ×î½üÊ®Äê²ÅÖð½¥·¢Õ¹ÆðÀ´µ ......

Linux ½Å±¾±àд»ù´¡(Ò»)

1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·½ÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
µ±±à¼­ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
Ҫʹ½Å±¾¿ÉÖ´ÐУº
±àÒë chmod +x filename ÕâÑù²ÅÄÜÓÃ./filena ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ