ʵÏÖÎÞÏß´«¸ÐÆ÷ÍøÂçµÄÏà¹ØÐÒé²ã³ö²»ÇÈçºìÍâ¡¢À¶ÑÀ¡¢ZigBee¡¢Wi-FiµÈ¡£µ«ÊÇÄ¿Ç°ÕâЩÐÒ鶼´æÔÚÖÖÖÖÎÊÌ⣬ÀýÈçºìÍâ¼¼ÊõÓöµ½ÕÏ°Îï¾ÍʧÁ飬À¶ÑÀ±È½ÏºÄµç£¬ZigBeeÐÒé±È½Ï¸´Ôӵȵȡ£Õë¶ÔÕâЩÎÊÌ⣬Cypress¹«Ë¾ÍƳöÁËCyFiµÍ¹¦ºÄÎÞÏß½â¾ö·½°¸£¬Í¬Ê±»¹ÍƳöÁËÕë¶ÔÐÂÊÖµÄPSoC FirstTouchÈëÃÅÌ×¼þCY3271ÒÔ¼°ÆäËûÀ©Õ¹Ì×¼þ¡£±¾ÎÄʹÓôËÌ×¼þ×齨CyFiÎÞÏß´«¸ÐÆ÷ÍøÂ磬²¢ÔÚPC»úÉÏͨ¹ýUSB½Ó¿ÚʵÏÖ½ÚµãµÄ°ó¶¨¼°Êý¾ÝµÄ²É¼¯¡£
1 CyFi¼ò½é
Cypress¹«Ë¾ÏÈÇ°ÍƳöµÄWirelessUSB¼¼ÊõÒѱ»¹ã·ºÓ¦ÓÃÓÚÎÞÏßÊó±ê¡¢¼üÅÌ¡¢ÓÎÏ·ÊÖ±úµÈ²úÆ·ÖС£ÔÚ´Ë»ù´¡Ö®ÉÏ£¬Cypress¹«Ë¾ÓÖÍƳöÁËÕë¶ÔǶÈëʽ¿ØÖÆÁìÓòµÄÒ»¿îµÍ³É±¾¡¢µÍ¹¦ºÄ¡¢¸ß¿É¿¿ÐÔµÄÎÞÏßÉäƵ½â¾ö·½°¸——CyFi¡£CyFiµÄÊг¡¶¨Î»Ê¹Æä¾ßÓпɿ¿¡¢¼ò»¯¡¢µÍ¹¦ºÄ¡¢¶àÐŵÀµÈÌص㡣
¢Ù¿É¿¿¡£Í¨¹ýʹÓÃÖ±½ÓÐòÁÐÀ©Æµ(DSSS)µ÷ÖƼ¼Êõ£¬CyFiÄܹ»Ê¹´«ÊäµÄÊý¾Ý´Ó¿ÉÄܵĴíÎóÖлָ´»ØÀ´£¬´Ó¶øÌṩ³öÉ«µÄÁ¬½Ó¿É¿¿ÐÔ¡£¶ÔÓÚÀ´×ÔͬÑù¹¤×÷Ôڷdz£Óµ¼·µÄ2£®4 GHzƵ¶ÎµÄWi—Fi¡¢À¶ÑÀ¡¢ZigBeeµÈÆäËûÎÞÏß¼¼ÊõµÄ¸ÉÈÅ£¬CyFiµÄÌøƵ¼¼ÊõÄÜÒÔÔ¤ÉèµÄƵ¶Î¼ä¸ô×Ô¶¯ËÑË÷¸É¾»µÄÐŵÀ½øÐÐͨÐÅ£¬Èçͼ1Ëùʾ¡£Í¬Ê±£¬CyFiµÄÁ´½Ó¹ÜÀí¹¦ÄÜ¿ÉÒÔ¸ù¾ÝÍøÂç»·¾³½«·¢É书ÂÊ¡¢´«ÊäËÙÂÊ×Ô¶¯µ÷Õûµ½±£Ö¤¿É¿¿Á´½ÓµÄ×îÓÅÅäÖÃÉÏ¡£DSSSµ÷ÖÆ¡¢ÌøƵ¼¼ÊõºÍ³ÉÊìµÄÁ´½Ó¹ÜÀíË㷨ʹµÃCyFi³ÉΪ2£®4 GHzƵ¶ÎµÄ¸ß¿É¿¿ÐÔÎÞÏß½â¾ö·½°¸¡£
¢Ú¼ò»¯¡£CyFiÌṩµÄÇáÁ¿¼¶ÐÇÐÍÐÒéÕ»CYFISNP³ß´ç·Ç³£Ð¡£¬Ó¦ÓÃÓÚHub½öÕ¼ÓÃ8 KB£¬¶øÓ¦ÓÃÓÚ½Úµã½öΪ6 KB£¬Èçͼ2Ëùʾ¡£CYFISNPÐÒéÕ»¿ÉÖ±½ÓÔÚPSoCDesignerÖÐʹÓã¬ÆäËùÌṩµÄÓû§Ä£¿éʹ¿ª·¢ÕßÖ»Ðè¼òµ¥µÄÍϷż´¿ÉʵÏÖ´´ÐµÄÎÞÏßÉè¼Æ£¬Óû§ÎÞÐè×ÔÐбàдÈκÎͨÐÅÐÒé»ò±àÂ룬ÓëPSoC¿É±à³ÌƬÉÏϵͳµÄ½áºÏʹÆäÔÚÑз¢¹ý³ÌµÄÈκν׶ζ¼¿É½øÐÐÖØбà³Ì¡£
¢ÛµÍ¹¦ºÄ¡£ÎªÁËʵÏֵ͹¦ºÄ£¬CyFi¾¡Á¿¹¤×÷ÔÚ˯Ãßģʽ¡£ÕâÒâζ×ÅÔÚ¸ÉÈŽÏÈõµÄÇé¿öÏ£¬CyFi½«ÒÔ¾¡¿ÉÄÜ¿ìµÄËÙ¶È(1 Mbps)´«Ê䣬ÒÔËõ¶Ì´«Êäʱ¼ä£»¶øÔÚ¸ÉÈŽÏÇ¿µÄÇé¿öÏ£¬½«ÆôÓÃDSSSµ÷ÖƼ¼Êõ²¢Ìá¸ßRF·¢É书ÂÊÒÔ250 kbpsµÄËÙÂÊ´«Ê䣬´Ó¶ø¼õÉÙÖØ´«µÄ¿ÉÄÜ¡£µ±½ÚµãÓëHubµÄ¾àÀë½Ï½üʱ£¬½ÚµãÒ²ÄܽµµÍ·¢É书ÂÊ´Ó¶ø¼õС¹¦ºÄ¡£ÕâÖÖÓÐЧµÄµçÔ´¹ÜÀí»úÖÆʹµÃ²ÉÓÃCyFiµÄµäÐÍ´«¸ÐÆ÷Ó¦ÓÃÖ»¿¿2½ÚAAµç³Ø¾Í¿ÉʹÓÃ4ÄêÖ®¾Ã¡£
¢Ü¶àÐŵÀ¡£ÓÉÓÚCyFi½öÕ¼ÓÃ1 MHzµÄ´ø¿í£¬¹Ê¿ÉÓÃÐŵÀ¶à´ï80¸ö£¬¶øZigBeeµÈ½öÄÜʹÓÃ16¸ö5 MHzµÄÐŵÀ¡£
2 CY3271¼ò½é
CY3271ÊÇCypress¹«Ë¾Õë¶ÔÐÂÊÖÍƳöµÄÒ»¿î´øCyFiµÄµÍ³É±¾USB½Ó¿ÚÌ×¼þ£¬°üÀ¨PSoC¼¯³É¿ª·¢»·¾³PSoCDesigner¡¢ÓÃÓÚÊý¾Ý²É¼¯µÄ¸ÐÓ¦¿ØÖÆÈí¼þSCD¡¢´øRF¹¦ÄܵÄPCÇÅFTPC¡¢¶à¹¦ÄÜ°åFTMF¡¢Ö§³Ö³¤¾àÀëÎÞÏßÓ¦Óò¢´ø¹¦ÂÊ·Å´óÆ÷µÄRFÀ©Õ¹°åFTRF£¬ÒÔ¼°2¸öµç³Ø°å¡£ÆäÖУ¬PCÇÅFTPC×÷ΪCyFiµÄHubÉ豸ʹÓã»RFÀ©Õ¹°åFTRF×÷ΪCyFiµÄ½ÚµãÉ豸ʹÓã¬Í¬Ê±´øÓÐÒ»¸ö³¬µÍ¹¦ºÄµÄζȴ«¸ÐÆ÷£»¶ø¶à¹¦ÄÜ°åFTMFÖдøÓÐCapSense´¥Ãþ´«¸ÐÆ÷¡¢½Ó½üʽ´«¸ÐÆ÷¡¢Î¶ȴ«¸ÐÆ÷¡¢¹â´«¸ÐÆ÷ºÍºì¡¢»Æ¡¢À¶3¸öLEDµÆ¡£±¾ÎÄÖнöÒÔCapSense´¥Ãþ´«¸ÐÆ÷ΪÀý¡£
3 Ó²¼þ½á¹¹
ÓÉÓÚCyFiʹÓõÄÊÇÐÇÐ͹㲥ʽÍøÂçÐÒ飬ËùÓÐÏûÏ¢ÐèÒª¾¹ýÖÐÐÄHub£¬¹ÊʵÏÖ½ÚµãAµ½½ÚµãBÊý¾ÝͨÐŵĹý³ÌÈçÏ£º½ÚµãAͨ¹ýI2CÐÒé²É¼¯¶à¹¦ÄÜ°åAµÄCapSense´¥Ãþ»¬¿éµÄλÖá¢3¸öLEDµÆµÄÁÁÃðÇé¿öµÈÊý¾Ý£¬²¢ÓëÄ¿±ê½ÚµãBµÄIDºÅÒ»Æðͨ¹ýRF·¢ËͳöÈ¥£»Hub¼ì²âµ½ÍøÂçÖÐÓÐÏûÏ¢ºó£¬ÔÙ¸ù¾ÝÏûÏ¢ÖеÄÄ¿±ê½ÚµãID½«ÏûϢת·¢³öÈ¥£¬Í¬Ê±½«Êý¾Ý±£´æµ½»º´æÖеȴýPC»ú¶ÁÈ¡£»½ÚµãB½ÓÊÕµ½ÏûÏ¢Ö®ºó¸ù¾ÝÏûÏ¢ÖеÄÊý¾Ý£¬Í¬Ñùͨ¹ýI2CÐÒé¿ØÖƶ๦ÄÜ°åBÉϵÄ3¸öLEDµÆµÄÁÁÃð¡£ÆäÖÐHubËùÔÚÉ豸FTPCÓÐ2¸öPSoCÄںˣºÖ÷ÄÚºËʵÏÖUSB—I2Cת»»ºÍ¸÷¸ö°å¿¨(°üÀ¨´ÓÄÚºË)µÄ±à³Ì¹¦ÄÜ£»´ÓÄÚºËʵÏÖHub¹¦ÄÜ£¬Í¬Ê±Í¨¹ýI2CÓëÖ÷ÄÚºËÁ¬½Ó¡£ÏµÍ³¹¦ÄÜ¿òͼÈçͼ3Ëùʾ¡£
4 Èí¼þÉè¼Æ
4£®1 PSoCÈí¼þÉè¼Æ
CY3271Ì×¼þµÄ¹âÅÌÖÐÌṩÁ˸÷¸öPSoCµÄÉè¼ÆÑùÀý£¬±¾ÎÄÖÐPSoC²¿·ÖµÄÉè¼Æ¾ÍÊÇÔÚÕâЩÑùÀýµÄ»ù´¡ÉÏÐ޸Ķø³ÉµÄ¡£ÎªÁËʵÏÖÉÏÊö¹¦ÄÜ£¬ÐèÒªÔÚ½ÚµãA·¢Ë͵ÄÏûÏ¢ÖÐÌí¼ÓÄ¿µÄ½ÚµãBµÄIDÐÅÏ¢£¬ÒÔ±ãHub½«½ÓÊÕµ½µÄÏûÏ¢ÔÙת·¢³öÈ¥¡£Ã¿¸öCyFiÊÕ·¢Æ÷ÓÐ2ÖÖID£»Ò»ÖÖΪ6×Ö½ÚµÄRadio ID£¬´ËIDÔÚÊÕ·¢Æ÷³ö³§Ê±ÉÕÈ룬²»¿É¸ü¸ÄÇÒÈ«ÇòΨһ£»ÁíÒ»ÖÖΪ1×Ö½ÚµÄNode ID£¬´ËIDÔÚ½Úµã°ó¶¨Ê±È·¶¨£¬¿ÉÒÔÊÂÏÈÖ¸¶¨Ò²¿ÉÒÔÓÉHub¶¯Ì¬·ÖÅä¡£ÓÉÓÚRa-dio ID½Ï¸´ÔÓ£¬¿ª·¢ÈËÔ±ÔÚ¿ª·¢¹ý³ÌÖпÉÒÔºöÂÔRadioID£¬¶øÖ»¹Ø×¢Node ID¡£
¶ÔÓڶ๦ÄÜ°åA¿ÉÖ±½ÓʹÓùâÅÌÉϵÄMF_CS_SLIDEÑùÀý£¬²»ÐèÒªÐ޸ġ£¶ÔÓÚ½ÚµãAʹÓõÄRF_12C_BRIDGEÑùÀý£¬Ö÷º¯ÊýÖÐÐèÐ޸ĵ÷ÓÃCyFiSNP_BindStart()º¯ÊýʱµÄ²ÎÊý£¬ÈçÏ£º