新聞中心

        EEPW首頁 > 汽車電子 > 設計應用 > 藍牙車載產品的兼容性設計

        藍牙車載產品的兼容性設計

        作者:馬建輝 單鐵城 山東省科學院自動化研究所山東省汽車電子重點實驗室 馬共立 哈爾濱威克科技 時間:2010-05-07 來源:電子產品世界 收藏

          對于號碼字段的提取,關鍵字不僅是HOME、WORK、CELL、CAR,還要把PREF、VOICE作為可以被識別的關鍵字,而且有手機不帶關鍵字,把不帶關鍵字的處理為CELL即手機屬性即可。

        本文引用地址:http://www.104case.com/article/108773.htm

          呼叫時間,其字段以X-IRMC-CALL-DATETIME表示,其標準格式舉例如下:20080112T1212,年四個字節,月和日分別兩個字節,但對于部分手機,其月和日沒有嚴格遵循該規范,月+日字段共兩個字節或共三個字節,這就需要根據月和日的特性進行特殊處理了。處理代碼如下,月日字節數為temp_month_date_length,存放在temp_month_date數組中,

        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;
         }
         }
        }

          結語

          兼容性是產品開發中的難點問題,本文分析了兼容性問題出現的原因,并結合具體實例分析其解決方法,有很好的借鑒意義。


        上一頁 1 2 3 下一頁

        關鍵詞: 汽車電子 藍牙

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 阳西县| 浦东新区| 泰宁县| 贵州省| 陇川县| 凤翔县| 芜湖市| 巫溪县| 财经| 景德镇市| 安化县| 盈江县| 清苑县| 如皋市| 浙江省| 嘉兴市| 丹阳市| 龙岩市| 汾西县| 乾安县| 建昌县| 富裕县| 博乐市| 南宫市| 米林县| 宜都市| 长垣县| 牡丹江市| 浠水县| 塔城市| 苍梧县| 瓦房店市| 云阳县| 合肥市| 那曲县| 新巴尔虎右旗| 阿图什市| 西峡县| 马龙县| 望都县| 出国|