顯示具有 bluetooth 標籤的文章。 顯示所有文章
顯示具有 bluetooth 標籤的文章。 顯示所有文章

2014年1月28日 星期二

開發Android藍芽程式 出現閃退

發現是執行到mBluetoothAdapter.startDiscovery();出現閃退現象

利用logcat的Error Log level發現以下錯誤

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.SecurityException: Need BLUETOOTH_ADMIN permission: Neither user 10148 nor current process has android.permission.BLUETOOTH_ADMIN.
            at android.os.Parcel.readException(Parcel.java:1425)
            at android.os.Parcel.readException(Parcel.java:1379)
            at android.bluetooth.IBluetooth$Stub$Proxy.startDiscovery(IBluetooth.java:1966)
            at android.bluetooth.BluetoothAdapter.startDiscovery(BluetoothAdapter.java:795)
            at com.nelson.app.FullscreenActivity.CommunicationWithBtDevice(FullscreenActivity.java:248)
            at com.nelson.app.FullscreenActivity.onActivityResult(FullscreenActivity.java:214)
            at android.app.Activity.dispatchActivityResult(Activity.java:5274)
            at android.app.ActivityThread.deliverResults(ActivityThread.java:3158)
            at android.app.ActivityThread.handleSendResult(ActivityThread.java:3205)
            at android.app.ActivityThread.access$1100(ActivityThread.java:136)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1249)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4881)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
            at dalvik.system.NativeStart.main(Native Method)
01-28 23:06:03.001      522-676/? E/InputDispatcher﹕ channel '42ec6e68 com.nelson.app/com.nelson.app.FullscreenActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
01-28 23:06:03.462     830-1318/? E/ExternalAccountType﹕ Unsupported attribute readOnly


解決方法:
打開AndroidManifest.xml
加上
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"></uses-permission>

就不會出現閃退現象嚕

透過Facebook分享

2011年1月17日 星期一

Write Bluetooth AP on Android

參考網站

所有的bluetooth API都在android.bluetooth  package下

BluetoothAdapter
允許你查詢local的資料(ex. MAC address), 搜尋設備, 初始化連線

首先使用BluetoothAdapter的getDefaultAdaper得到local device的handle
用意在於確認local設備是否存在(or 你可以使用getAddress得到local device MAC address)

之後得到的handle就可以使用startDiscovery
官方說會預設12秒搜尋時間

你可以先註冊兩個message
ACTION_FOUND and ACTION_DISCOVERY_FINISHED
註冊用意在於
ACTION_FOUND:有找到設備的時候通知
ACTION_DISCOVERY_FINISHED: 搜尋結束的時候通知



        // Register for broadcasts when a device is discovered
        IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);
        this.registerReceiver(mReceiver, filter);

        // Register for broadcasts when discovery has finished
        filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
        this.registerReceiver(mReceiver, filter);




此外寫個接收端

private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();
            if (BluetoothDevice.ACTION_FOUND.equals(action)) {
            } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
            }
}






透過Facebook分享

2011年1月3日 星期一

Android 2.2 bt連線手機出現paired but not connected

可以與手機(sony erisson k510i) pair但是無法建立connection, 會出現paired but not connected

可以與耳機建立連線
與HBH-DS229可以連線. 連線成功後顯示 Connected to phone and media audio與WBS-802可以連線. 連線成功後顯示 Connected to phone and media audio

From http://source.android.com/porting/bluetooth.html
可以知道目前2.2版支援HFP的程度

  • Handsfree Profile 1.5 in Audio Gateway role
    • Three-way calling
    • Phonebook over AT commands
    • Volume synchronization
    • eSCO
    • Extensive bug fixes and compatibility improvements

From
http://www.bluetooth.com/English/Technology/Works/Pages/HFP.aspx


Getting Technical

The HFP defines two roles, that of an Audio Gateway (AG) and a Hands-Free unit (HF):
  • Audio Gateway (AG) – This is the device that is the gateway of the audio, both for input and output, typically a mobile phone.
  • Hands-Free Unit (HF) – This is the device acting as the Audio Gateway's remote audio input and output mechanism. It also provides some remote control means.


包含audio gateway(AG)以及控制端的HF兩個部份

所以應該是Hands-Free Unit的部份尚未實做 所以會得到paired but not connected的結果

Vincent說 3rd party會處理此部份

ps.
bluetooth profile應用的介紹
http://en.wikipedia.org/wiki/Bluetooth_profile
for Auron

透過Facebook分享

2010年12月21日 星期二

Pair and unpair bt phone on android

點選Setting
 點選 Wireless &networks
 點 Bluetooth settings
 點 Scan for devices
然後選擇你要連線的裝置
 填入input pin code
點輸入框
 填入數字 (方便手機輸入)

ex.
0000
點Done
 點OK
 此時手機端需要輸入0000
進行pair

接下來進行unpair
長按前bt連線裝置

點選Unpair
 就成功嚕

Reference:

透過Facebook分享

2009年11月9日 星期一

2008年8月25日 星期一

develop anritsu source code

安裝ni488225



安裝visa420runtime



安裝InstallBlueSuite2.0







copy all files in C:\Program Files\Anritsu\BlueTest2\Source Code\Backup to C:\Program Files\Anritsu\BlueTest2\Source Code







open C:\Program Files\Anritsu\BlueTest2\Source Code\Anritsu BlueTest2.sln and build it







error message



Error 21 Type 'DAO.Database' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 76 27 Anritsu BlueTest2Error 22 Type 'DAO.DBEngine' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 77 28 Anritsu BlueTest2Error 23 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12209 25 Anritsu BlueTest2Error 24 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12220 29 Anritsu BlueTest2Error 25 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12246 41 Anritsu BlueTest2Error 26 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12250 45 Anritsu BlueTest2Error 27 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12261 41 Anritsu BlueTest2Error 28 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12267 41 Anritsu BlueTest2Error 29 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12643 28 Anritsu BlueTest2Error 30 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12644 27 Anritsu BlueTest2Error 31 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12645 27 Anritsu BlueTest2Error 32 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12646 27 Anritsu BlueTest2Error 33 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12655 23 Anritsu BlueTest2Error 34 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12662 23 Anritsu BlueTest2Error 35 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12669 23 Anritsu BlueTest2Error 36 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12697 28 Anritsu BlueTest2Error 37 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12698 28 Anritsu BlueTest2Error 38 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12699 28 Anritsu BlueTest2Error 39 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12700 28 Anritsu BlueTest2Error 40 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12701 28 Anritsu BlueTest2Error 41 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12702 28 Anritsu BlueTest2Error 42 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12703 28 Anritsu BlueTest2Error 43 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12704 29 Anritsu BlueTest2Error 44 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12705 29 Anritsu BlueTest2Error 45 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12706 29 Anritsu BlueTest2Error 46 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12707 29 Anritsu BlueTest2Error 47 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12708 29 Anritsu BlueTest2Error 48 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12709 29 Anritsu BlueTest2Error 49 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12788 29 Anritsu BlueTest2Error 50 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12789 27 Anritsu BlueTest2Error 51 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12790 27 Anritsu BlueTest2Error 52 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12791 27 Anritsu BlueTest2Error 53 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12792 27 Anritsu BlueTest2Error 54 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12793 27 Anritsu BlueTest2Error 55 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12794 27 Anritsu BlueTest2Error 56 Type 'DAO.Field' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12795 27 Anritsu BlueTest2Error 57 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12804 23 Anritsu BlueTest2Error 58 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12811 23 Anritsu BlueTest2Error 59 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12818 23 Anritsu BlueTest2Error 60 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12825 23 Anritsu BlueTest2Error 61 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12832 23 Anritsu BlueTest2Error 62 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12839 23 Anritsu BlueTest2Error 63 Name 'DAO' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12846 23 Anritsu BlueTest2Error 64 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12876 27 Anritsu BlueTest2Error 65 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12877 26 Anritsu BlueTest2Error 66 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12878 27 Anritsu BlueTest2Error 67 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12879 31 Anritsu BlueTest2Error 68 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12881 29 Anritsu BlueTest2Error 69 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12882 28 Anritsu BlueTest2Error 70 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12883 29 Anritsu BlueTest2Error 71 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12884 33 Anritsu BlueTest2Error 72 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12942 27 Anritsu BlueTest2Error 73 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12943 26 Anritsu BlueTest2Error 74 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12944 27 Anritsu BlueTest2Error 75 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12945 31 Anritsu BlueTest2Error 76 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12947 29 Anritsu BlueTest2Error 77 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12948 28 Anritsu BlueTest2Error 78 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12949 29 Anritsu BlueTest2Error 79 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12950 33 Anritsu BlueTest2Error 80 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13007 27 Anritsu BlueTest2Error 81 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13008 26 Anritsu BlueTest2Error 82 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13009 27 Anritsu BlueTest2Error 83 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13010 31 Anritsu BlueTest2Error 84 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13012 29 Anritsu BlueTest2Error 85 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13013 28 Anritsu BlueTest2Error 86 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13014 29 Anritsu BlueTest2Error 87 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13015 33 Anritsu BlueTest2Error 88 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13072 27 Anritsu BlueTest2Error 89 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13264 44 Anritsu BlueTest2Error 90 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13271 51 Anritsu BlueTest2Error 91 Type 'DAO.TableDef' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13289 43 Anritsu BlueTest2Error 92 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13300 55 Anritsu BlueTest2Error 93 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13351 54 Anritsu BlueTest2Error 94 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13375 55 Anritsu BlueTest2Error 95 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13398 59 Anritsu BlueTest2Error 96 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13466 55 Anritsu BlueTest2Error 97 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13509 54 Anritsu BlueTest2Error 98 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13543 55 Anritsu BlueTest2Error 99 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13566 59 Anritsu BlueTest2Error 100 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13605 55 Anritsu BlueTest2Error 101 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13644 54 Anritsu BlueTest2Error 102 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13660 55 Anritsu BlueTest2Error 103 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13683 59 Anritsu BlueTest2Error 104 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13747 55 Anritsu BlueTest2Error 105 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13785 54 Anritsu BlueTest2Error 106 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13809 55 Anritsu BlueTest2Error 107 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13832 59 Anritsu BlueTest2Error 108 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13912 55 Anritsu BlueTest2Error 109 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13950 54 Anritsu BlueTest2Error 110 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13974 55 Anritsu BlueTest2Error 111 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 13997 59 Anritsu BlueTest2Error 112 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 14075 55 Anritsu BlueTest2Error 113 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 14113 54 Anritsu BlueTest2Error 114 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 14128 55 Anritsu BlueTest2Error 115 Type 'DAO.Fields' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 14151 59 Anritsu BlueTest2Error 127 Type 'MessageBasedSession' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 19 25 Anritsu BlueTest2Error 128 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 56 33 Anritsu BlueTest2Error 129 Type 'MessageBasedSession' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 56 83 Anritsu BlueTest2Error 130 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 116 19 Anritsu BlueTest2Error 143 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\frmMain.vb 15252 25 Anritsu BlueTest2Error 153 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\frmMain.vb 15786 25 Anritsu BlueTest2Error 223 Maximum number of errors has been exceeded.





安裝office 2003

選擇"完整安裝"


rebuild again


Error 17 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12209 25 Anritsu BlueTest2Error 18 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12220 29 Anritsu BlueTest2Error 19 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12246 41 Anritsu BlueTest2Error 20 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12250 45 Anritsu BlueTest2Error 21 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12261 41 Anritsu BlueTest2Error 22 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12267 41 Anritsu BlueTest2Error 34 Type 'MessageBasedSession' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 19 25 Anritsu BlueTest2Error 35 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 56 33 Anritsu BlueTest2Error 36 Type 'MessageBasedSession' is not defined. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 56 83 Anritsu BlueTest2Error 37 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\VisaUtils.vb 116 19 Anritsu BlueTest2Error 50 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\frmMain.vb 15252 25 Anritsu BlueTest2Error 60 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\frmMain.vb 15786 25 Anritsu BlueTest2


//沒用

針對Error 50 Name 'ResourceManager' is not declared. C:\Program Files\Anritsu\BlueTest2\Source Code\frmMain.vb 15252 25 Anritsu BlueTest2

根據MS

http://msdn.microsoft.com/zh-tw/library/system.resources.resourcemanager(VS.80).aspx

應該需要 add the path of mscorlib.dll to project

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (dependent on your system)



需要一些額外套件- you can download from

http://cid-525f323c0700e1bd.skydrive.live.com/self.aspx/NFore/bin.zip



build again

Error 11 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12209 25 Anritsu BlueTest2Error 12 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12220 29 Anritsu BlueTest2Error 13 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12246 41 Anritsu BlueTest2Error 14 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12250 45 Anritsu BlueTest2Error 15 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12261 41 Anritsu BlueTest2Error 16 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\Module1.vb 12267 41 Anritsu BlueTest2Error 39 Overload resolution failed because no accessible 'Show' can be called without a narrowing conversion: 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'owner' narrows from 'String' to 'System.Windows.Forms.IWin32Window'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'caption' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'String'. 'Public Shared Function Show(owner As System.Windows.Forms.IWin32Window, text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'System.Windows.Forms.MessageBoxIcon' to 'System.Windows.Forms.MessageBoxButtons'. 'Public Shared Function Show(text As String, caption As String, buttons As System.Windows.Forms.MessageBoxButtons, icon As System.Windows.Forms.MessageBoxIcon) As System.Windows.Forms.DialogResult': Argument matching parameter 'buttons' narrows from 'Microsoft.VisualBasic.MsgBoxStyle' to 'System.Windows.Forms.MessageBoxButtons'. C:\Program Files\Anritsu\BlueTest2\Source Code\frmMain.vb 15786 25 Anritsu BlueTest2





//不行

something error about MessageBox.Show

from

http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox.aspx

是否需要 add System.Windows.Forms.dll's path to project



最後
這些MessageBox.Show造成的問題
似乎是overlap function的問題
所先用mark的方式處理

透過Facebook分享

2008年6月16日 星期一

Bluetooth DUN

DUN - dial-up network

設備A支援 DUN的bluetooth
手機 也要支援DUN的bluetooth

這樣子
設備A就可以透過手機上網啦

配對上之後
在進行連線的時候
我想應該需要輸入
username/password

Reference:
http://www.wisegeek.com/what-is-bluetooth-dun.htm

透過Facebook分享

2008年4月8日 星期二

1. Connect bt device (cellphone) with PC


2. build a connection via SPP (Serial Port Profile).


3. You need to input password.
After that, OS will assign a com port to you.
In here, OS assign COM5 to me.

4. OK!!



5. 打開終端機 選擇com5 (for me)

就可以輸入指令嚕

下ate0 (讓 bt device 不要echo data 回來)
ate1 恢復原狀

at+cpms = "me" (切換成sms store in cellphone)
//下 command 成功
at+cpms="me"
+CPMS: 196,200,2,15,196,200
OK

at+cmgd =1
at+cmgd =2
at+cmgd =3
at+cmgd =4


at+cpms = "sm" (切換成sms store in sim card)
//下 command 成功
at+cpms="sm"
+CPMS: 2,15,2,15,196,200
OK


at+cmgd =1
at+cmgd =2
at+cmgd =3
at+cmgd =4

at+cmgd 各個參數的意思 可以參考

Deleting SMS Messages from Message Storage


透過Facebook分享

2008年4月1日 星期二

update bt firmware if your bt module is using CSR chip by PSTool

首先
版子要接上SPI(這什麼東西??)
請硬體拉線

(請先安裝)
執行PSTool

record原本 bt module's address (待會更新完會有需要)



直接點選*.xdv
出現


發現error

charles說是線接的太長了

交給Ricky用短
結果error message 一樣

後來發現轉版上的chip需要供電
所以拉了一個5v的電

就可以erase flash



再去choose file and download


if you see the error message like this "It shows usable flase size :128 sectors, 8 megabit onlyl."

just press button "Stop Processor" then download.

Successful


最後
修改 bt address
最後要按下 button "Set"

工具不太好找
給個Link
InstallBlueSuiteCasira124

---------------------------------------------------------------
Update at 20080813
接上SPI
執行pstool
發現error message

error message
"Chip may be in a Deep Sleep mode, which may prevent the Stop command from being processed."

若執行Blue Flash
按下Stop Processor
則會產生
Processor Failed to Stop


Updated in 2008/8/14
更新crystal頻率的方法
開PSTools
在Filter的部份 下crystal
最後選擇 crystal frequency
在畫面右手邊就可以填選相對應的頻率

當然 可以將這個部份做在bt firmware裡面也行

透過Facebook分享

2008年3月27日 星期四

bluetooth 打架了

兩個有一樣 bt address 的設備
如果跟第三個設備連線
會random發生不在預期的現象

KC說
會根據pin code and bt address 去計算 baseband
所以
如果都一樣
baseband會在同一個位置
就會打架了

透過Facebook分享

2008年1月29日 星期二

檢查封包是否有遺漏

用FTP via bluetooth來從手機下載檔案到PND
發現有時候收到的檔案大小不完整
用ultraedit來比對兩個檔案(原始檔 vs. 抓取檔)
很不容易看出差異性

我另外使用了 Araxis Merge來看
就可以看得出其中的差異性
這個軟體
可以單純的顯示多或少的地方在哪裡

因此我可以輕易的判斷
所抓下來的檔案
的確是有少資料的

透過Facebook分享

2007年11月22日 星期四

Bluetooth居然可以不用pair

太可怕了

對於bluetooth的認識
就是知道
兩台機器要認識彼此
一定要先做pair
然後再進行連線

今天
為了解一個bug

把pair要做的動作拿掉
居然也可以進行連線

But
我們可以事先知道對方的相關資訊 包含bt address
與pair存在的目的(就是要彼此交換資訊)
看來功能部份相同

拿掉pair理所當然

發生的bug也給他描述一下
這次發生的bug比較難抓
主要是因為
透過windows 的 connect function
去建立藍芽連線
所產生的bug

這個部份因為沒有source code
無法得知實做內容

所以必須透過WIDCOMM所提供的BTServer Spy Lite來查PC端的dongle
到底傳送或接收到什麼樣子的藍芽訊息

事後發現
RCVD Event from HCI. Name: HCI_Role_Change (Hex Code: 0x12 Param Len: 8)
角色改變做兩次
會發生time out的機會
RCVD Event from HCI. Name: HCI_Connection_Complete (Hex Code: 0x03 Param Len: 11)
Parameters
Status : Connection Timeout (0x08)
Connection Handle : 11 (0x000b)
BD_ADDR of remote : 00-0b-0d-77-0d-d4
Link Type : 1 (0x01)
Encryption Mode : 0 (0x00)

也就透過這個工具
可以得知connect這個function呼叫之後
會做什麼事情

最後解法就是拿掉pair
讓整個連線過程不會重複做(當然 Role_Change就不會發送兩次)

透過Facebook分享

2007年11月6日 星期二

build bt connection via MS

bluetooth連線需要做的動作

inquiry
這個部份
應該是需要知道周圍nodes的資料
才需要做的
如果有要連線的對象
可以直接到pair的部份做
pair
這個部份
需要呼叫到MS的BthCreateACLConnection
給他bt address and 一個handle (決定要連線還是要斷線的資訊)
connection
需要用MS的socket 先create a socket
再透過MS的connect 去達到connection的目的

from Vincent

透過Facebook分享

2007年11月1日 星期四

WIDCOMM 設定

進階組態設定
有本機服務 與用戶端應用程式
差別性在於 是 PC -> other device or other device -> PC
本機服務:電腦要提供其他Bluetooth裝置的服務
用戶端應用程式:指定此電腦如何存取其他Bluetooth裝置的服務


在本機服務中 有個耳機的服務可以做些設定
如果你不想顯示連線成功的資訊(dialog)
可以在通知的地方
選擇不用提供通知(取代原本的視覺通知跟音訊通知)

如何讓 pin 碼不要輸入呢
(或者是說 不要讓 輸入pic code的 dialog 顯示出來呢)
第一個 不要勾選安全連線
第二個 PND端 也要拿掉要做安全連線的部份

透過Facebook分享

2007年1月18日 星期四

Bluetooth Network: BlipNet

Bluetooth Network: BlipNet: "BlipNet



BlipNet is a Bluetooth based access system to be used by operators, enterprises and application developers. With BlipNet it is possible to extend business opportunities by delivering information and services to users of mobile phones, PDA's and other devices."

透過Facebook分享