<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁(yè) > 汽車(chē)電子 > 設(shè)計(jì)應(yīng)用 > 藍(lán)牙車(chē)載產(chǎn)品的兼容性設(shè)計(jì)

          藍(lán)牙車(chē)載產(chǎn)品的兼容性設(shè)計(jì)

          作者:馬建輝 單鐵城 山東省科學(xué)院自動(dòng)化研究所山東省汽車(chē)電子重點(diǎn)實(shí)驗(yàn)室 馬共立 哈爾濱威克科技 時(shí)間:2010-05-07 來(lái)源:電子產(chǎn)品世界 收藏

            對(duì)于號(hào)碼字段的提取,關(guān)鍵字不僅是HOME、WORK、CELL、CAR,還要把PREF、VOICE作為可以被識(shí)別的關(guān)鍵字,而且有手機(jī)不帶關(guān)鍵字,把不帶關(guān)鍵字的處理為CELL即手機(jī)屬性即可。

          本文引用地址:http://www.ex-cimer.com/article/108773.htm

            呼叫時(shí)間,其字段以X-IRMC-CALL-DATETIME表示,其標(biāo)準(zhǔn)格式舉例如下:20080112T1212,年四個(gè)字節(jié),月和日分別兩個(gè)字節(jié),但對(duì)于部分手機(jī),其月和日沒(méi)有嚴(yán)格遵循該規(guī)范,月+日字段共兩個(gè)字節(jié)或共三個(gè)字節(jié),這就需要根據(jù)月和日的特性進(jìn)行特殊處理了。處理代碼如下,月日字節(jié)數(shù)為temp_month_date_length,存放在temp_month_date數(shù)組中,

          if(temp_month_date_length==2)
          {
           temp_month=temp_month_date[0]-0x30;
           temp_date=temp_month_date[1]-0x30;
          }
          else if(temp_month_date_length==3)
          {
           if(temp_month_date[0]>0x31)//then the character must be month
           {
                 //214-2 14
                temp_month=temp_month_date[0]-0x30;
              temp_date=(unsigned char)((temp_month_date[1]
          -0x30)*10+(temp_month_date[2]-0x30));
           }
           else if(temp_month_date[1]>0x32)
           {
                //130-1 30
                temp_month=temp_month_date[0]-0x30;
              temp_date=(unsigned char)((temp_month_date[1]
          -0x30)*10+(temp_month_date[2]-0x30));   
           }
           else
           {
                //114 to month=11 date=4
                temp_month=(unsigned char)((temp_month_date[0]
          -0x30)*10+(temp_month_date[1]-0x30));
                temp_date=temp_month_date[2]-0x30;
                if(temp_month>=11)
                {
            temp_month=0;
            temp_date=0;
           }
           }
          }

            結(jié)語(yǔ)

            兼容性是產(chǎn)品開(kāi)發(fā)中的難點(diǎn)問(wèn)題,本文分析了兼容性問(wèn)題出現(xiàn)的原因,并結(jié)合具體實(shí)例分析其解決方法,有很好的借鑒意義。


          上一頁(yè) 1 2 3 下一頁(yè)

          關(guān)鍵詞: 汽車(chē)電子 藍(lán)牙

          評(píng)論


          相關(guān)推薦

          技術(shù)專(zhuān)區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();