首 页文档资料下载资料维修视频包年699元
请登录  |  免费注册
当前位置:精通维修下载 > 文档资料 > 家电技术 > 维修教程知识 > 单片机栏
Bluetooth to 1-Wire communication using the DS9097U
来源:本站整理  作者:佚名  2010-02-28 23:04:16




  • From the Connect To dialog, select the COM port configured in step 16 and press OK.

    Windows XP SP3 setup procedure

  • From the COM# Properties dialog select the following options and press OK.

    Windows XP SP3 setup procedure

  • HyperTerminal may show as connected even when the adapter connection has not been established. If the adapter's green light is flashing slowly, disconnect and reconnect the battery. Reestablish the Bluetooth connection by double clicking the BlueSnap icon in My Bluetooth Places (step 6). Once the connection has been established, disconnect and reconnect using the phone icons in the HyperTerminal tool bar.
  • From the HyperTerminal File menu, select BlueSnap Properties.
  • From the properties dialog, click the ASCII Setup...button.

    Windows XP SP3 setup procedure

  • Make the following ASCII setup selections.

    Windows XP SP3 setup procedure

  • Close all dialog boxes by clicking OK.
  • In the HyperTerminal window type $$$; the device will respond with CMD. The CMD confirms that you are now in command mode. The BlueSnap LED changes from a solid green to flashing quickly.
  • In the terminal type ST,255. This changes the timeout for discovery from 60 seconds to infinity. The adapter responds with <AOK>.
  • To launch, the newly created HyperTerminal connection can be found at: Start Programs Accessories Communications HyperTerminal BlueSnap.ht.
  • The device is now configured to stay in discovery mode once power is applied without any timeout.
  • Windows Mobile pairing procedure

    1. Use the Connection Wizard to search for the BlueSnap Bluetooth adapter.

      Windows Mobile pairing procedure

    2. Select the BlueSnap device.

      Windows Mobile pairing procedure

    3. Select the SPP service.

      Windows Mobile pairing procedure

    4. Enter the device pin number (0000 or 1234) and press the green checkmark.

      Windows Mobile pairing procedure

    5. When prompted to register a Bluetooth serial port, select Yes.

      Windows Mobile pairing procedure

    6. Select Bluetooth serial-port name BTS from the Name dropdown box. Input an index number of zero. The index is similar to a COM port. Press the green check to accept changes. If an index number other than zero is used, the example code will need this portion of code modified in order to open the appropriate port.

      Windows Mobile pairing procedure

    7. The Bluetooth Manager confirms that the port successfully registered.

      Windows Mobile pairing procedure

    8. The available COM ports are listed in the manager.

      Windows Mobile pairing procedure

    9. The BlueSnap adapter has successfully paired. Upon opening the BTS0 port, a connection between the mobile device and the BlueSnap device is established.

    Windows application

    Because the BlueSnap adapter cannot toggle the RTS and DTR lines, the OneWireLinkLayer.dll is not used in this example. Instead, the DS9097U 1-Wire COM Port Adapter (see Figure 1) is accessed directly with serial commands.

    Download (ZIP) the sample project. Figure 2 shows the application running on a Windows Mobile device. The project contains a simple class with calls to commonly-used functions (including Search ROM).

    Figure 2. Application running on Windows Mobile.
    Figure 2. Application running on Windows Mobile.

    上一页  [1] [2] 

    关键词:

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分)

    推荐阅读

    图文阅读

    热门阅读

    Copyright © 2007-2017 down.gzweix.Com. All Rights Reserved .
    页面执行时间:34,703.13000 毫秒