
B2Èí¼þÉè¼ÆÊֲ᣺http://www.usr.cn/Down/USR-WIFI232-B2-software-V1.0.5.pdf
±¾°¸Àý»ùÓÚSTAģʽµÄÎÞÏßÍøÂçÅäÖãº
±¾°¸Àý²âÊÔ˵Ã÷£ºÓÃmodbus slaveÈí¼þÄ£Äâmodbus rtuÐÒéµÄ´®¿ÚÉ豸£»
Êý¾ÝÁ÷Ïò£ºmodbus slaveÈí¼þ----A2/B2-----galaxyÒøºÓ¹ú¼ÊÔÆ£¨×é̬ÏÔʾ£©
¹Ë¿Íʵ¼ÊÓ¦Óãºmodbus rtuÉ豸---A2/B2---galaxyÒøºÓ¹ú¼ÊÔÆ£¨×é̬ÏÔʾ£©
²âÊÔʹÓÃ232´®¿Ú£¬ µ×°åÌøñĬÈÏλÖÃÔÚ485λÖã¬ÐèÒªÐÞ¸ÄÌøñ°²·ÅλÖá£
¾ßÌå»·½ÚÈçÏ£º
1¡¢µÇ¼galaxyÒøºÓ¹ú¼ÊÔÆ£¨Èç¹ûûÓÐÕ˺ÅÏÈÉêÇëͨÐÅÖ¤£¬£©
2¡¢Ä¿Ç°Ö»ÄÜͨ¹ýÊÖ»úºÅÀ´×¢²áͨÐÐÖ¤ÕË»§
3¡¢×¢²áÍê´Ë£¬Óɴ˽øÈëgalaxyÒøºÓ¹ú¼ÊÔƽçÃæ
4¡¢¿ÉÒÔÖØд´½¨ÔÆ×é̬£¬Èç¹ûÒÔǰʹÓùý͸´«ÔÆ¿ÉÒÔÖ±½Ó°ó¶¨Í¸´«ÔƵÄÕ˺ţ¬Óɴ˽çÃæ°ó¶¨ÒøºÓGALAXY¹Ù·½ÍøÕ¾Íø¿¨Æ½Ì¨£¬¹¤µ¥ÏµÍ³£¬ÔƼì²â£¬ºÍÉ̳ǣ»
5¡¢±¾´Î°¸ÀýÊÇA2/B2Á¬galaxyÒøºÓ¹ú¼ÊÔƽøÐÐÊý¾ÝÏÔʾ£¬¿ÉÒÔ½øÈëÔÆ×é̬£¬Ñ¡ÔñÌí¼ÓÉ豸£»
6¡¢ÉèÖÃÉ豸Ãû³Æ£¬ºÍ¼Æ»®·Ö×飬A2/B2Ä¿Ç°Ö»ÄÜʹÓÃID·½Ê½Ìí¼ÓÉ豸id£»É豸idºÍÃÜÂëÉèÖÃĬÈϾͿÉÒÔ£¬Ñ¡ÔñÔÆ×é̬£¬Ìí¼ÓÊý¾ÝÄ£°å£»
7¡¢Ä£°å¸ü¸ÄÃû³Æ£¬Ñ¡Ôñmodbus rtuÐÒ飬µã»÷±£´æ
8¡¢µã»÷ÏÂÒ»²½ÅäÖôӻúºÍ±äÁ¿
9¡¢ÉèÖôӻúÃû³Æ£¬´Ó»úµØÖ·ÊǽÓÔÚA2/B2µÄ´®¿ÚÉϵÄÖÕ¶ËÉ豸µÄ´Ó»úµØÖ·£¨Èç¹û²»Çå³þ£¬¿ÉÒÔ×ÉѯÖÕ¶ËÉ豸µÄ³§¼Ò£©
10¡¢ÉèÖÃÊý¾Ý½ÚµãµÄÃû³Æ£¬¼Ä´æÆ÷µØÖ·£¬Êý¾Ý¸ñʽ£¬²É¼¯ÆµÂÊ£¨×îµÍÖ»ÄÜÊÇÒ»·ÖÖÓ£¬£©£»
¼Ä´æÆ÷µØÖ·Ìîд¹æÔò£º
¸ñʽΪ ¹¦ÄÜÂë+¼Ä´æÆ÷µØÖ·£¨ÐèÒª16½øÖÆתΪ10½øÖÆ£©+1
Óë×é̬Èí¼þµÄ¼Ä´æÆ÷д·¨Ïàͬ£¬ÌîÊ®½øÖƼĴæÆ÷µØÖ·£¬¼Ä´æÆ÷ΪÆðʼµØÖ·+1¡£
È磺
¹¦ÄÜÂë03H»ò06H£¬ÆðʼµØÖ·0000H£¬ÔòÌ40001£»
ÒÔÕâ¸öΪÀý£¬²Ù×÷Ϊֻ¶Á¾ÍÊǹ¦ÄÜÂëΪ03Ôò¾ÍÊÇ4£¬¼Ä´æÆ÷µØÖ·16½øÖÆת»»Îª10½øÖƾÍÊÇ0000£¬È»ºó+1
ËùÒÔ×é̬µØÖ·¾ÍÊÇ40001£»
11¡¢ÏÂÃæÉèÖÃA2/B2,µçÄÔÁ¬½ÓA2/B2µÄWiFi
ÄÚÖÃÍøÒ³µÄÕ˺źÍÃÜÂ붼ÊÇadmin£¬½øÈëÒÔºóÑ¡ÔñģʽѡÔñģʽѡÔñΪstaģʽ£¬µã»÷È·¶¨£»£¨ÏȲ»ÒªÖØÆô£¬µÈÉèÖÃÍêËùÓеIJÎÊýÔÙÖØÆôÉ豸£©
13¡¢½øÈëÎÞÏßÖÕ¶ËÉèÖã¬ËÑË÷ÒªÁ¬½ÓµÄWiFi£¬Ñ¡ÖÐÒÔºóµã»÷È·¶¨£¬ÊäÈëÃÜÂ룬ÉèÖÃÍê³ÉºóͬÑùÐèÒªµã»÷È·¶¨
14¡¢½øÈëµ½´®¿Ú¼°ÍøÂç²ÎÊýÉèÖ㬴®¿Ú²ÎÊýÉèÖÃΪºÍÄúÖÕ¶ËÉ豸µÄ´®¿Ú²ÎÊýÒ»Ö¡£×¢²á°üÑ¡Ôñ͸´«ÔÆ£¬ÌîÉÏ͸´«ÔÆÉÏн¨Á¢µÄÉ豸id£¬ºÍÃÜÂ루ÈçÏÂͼËùʾ£©£¬µã»÷±£´æ
15¡¢ÔÚ´®¿Ú¼°ÍøÂç²ÎÊýÖеÄÍøÂçÉèÖÃÉÏÉèÖÃΪTcp Client,͸´«ÔƵÄÓòÃûΪclouddata.usr.cn£¬Í¸´«ÔƵĶ˿ÚΪ15000£¬ÉèÖÃÍêµã»÷±£´æ£»
17¡¢ÉèÖÃÍêËùÓеIJÎÊýÒªÖØÆôÉ豸£¬ÉÔµÈÒ»»á£¬ÔÚgalaxyÒøºÓ¹ú¼ÊÔƽçÃ棬Äú»á¿´µ½É豸ÒѾÉÏÏß
18¡¢´ò¿ªmodbusÈí¼þ£¬µã»÷Á¬½Ó¡£Ñ¡Ôñ´®¿Úcom41£¨B2µÄ´®¿ÚÓÃusbת232½Óµ½µçÄÔÉϵģ©£¬´®¿Ú²ÎÊýÒªºÍB2Ò»Ö¡£
×¢£ºÈôÊÇB2Á¬½Ó485´®¿ÚÏߣ¬Ê¹ÓÃ485´®¿ÚÏßʱ£¬ ÐèÒªÏÖ½«Ä£¿éµÄ´ò¿ª485¹¦ÄÜ£¬¿ÉÔÚÄÚÖÃÍøÒ³»òATÖ¸ÁîÅäÖÃAT+FUDLX¿ªÆô485¹¦ÄÜ,¸ÃÃüÁîʹÄÜ»ò½ûÖ¹ 485 ¿ØÖƹ¦ÄÜ£¬Ä¬ÈÏ RS485 Êǹرյģ¬485 ¿ØÖÆÒý½ÅΪ RTS¡£¸ÃÃüÁîÉèÖúó»Ö¸´³ö³§Éè ÖÃÉúЧ¡£ AT+UARTÅäÖÃÓ²¼þÁ÷¿Ø£¬ÖØÆôÉúЧ£¬Ö¸ÁîÏêÇé¿É¿´²úÆ·Èí¼þÉè¼ÆÊÖ²áATÖ¸ÁîÏêÇ鲿·Ö¡£
modbusÒª¹´Ñ¡RTS Toggle