スマートコンセント(富士通 FX-5204PS)をIEEE1888 StorageにWRITEするサンプルプログラムです。

Dependencies:   EthernetInterface FiapV2 HTTPClientForSOAP NTPClient TextLCD mbed-rtos mbed spxml

Fork of BlueUSB_f by Yasushi TAUCHI

スマートコンセント(富士通 FX-5204PS)をIEEE1888 StorageにWRITEするサンプルプログラムです。
USB HUBを使用して2台利用した例です。
表示のみは http://mbed.org/users/yueee_yt/code/BlueUSB_f/で公開しています。

BlueUSBより派生していますが、BluetoothとMass Storage Classは利用できません。

2台まで確認していますが、プログラム的には10台まで接続できるようにしています。
(RTOSとの整合により難しいかもしれません)

Revision:
5:96a70a8cebb9
Parent:
2:32a2d06f4fe2
--- a/AutoEvents.cpp	Sun Sep 30 05:44:10 2012 +0000
+++ b/AutoEvents.cpp	Sun Sep 30 07:41:28 2012 +0000
@@ -127,8 +127,6 @@
     return 0;
 }
 
-//  Implemented in main.cpp
-int OnDiskInsert(int device);
 
 //  Implemented in TestShell.cpp
 int OnBluetoothInsert(int device);
@@ -153,10 +151,6 @@
     
     switch (interfaceDesc->bInterfaceClass)
     {
-        case CLASS_MASS_STORAGE:
-            if (interfaceDesc->bInterfaceSubClass == 0x06 && interfaceDesc->bInterfaceProtocol == 0x50)
-                OnDiskInsert(device);    // it's SCSI!
-            break;
         case CLASS_WIRELESS_CONTROLLER:
             if (interfaceDesc->bInterfaceSubClass == 0x01 && interfaceDesc->bInterfaceProtocol == 0x01)
                 OnBluetoothInsert(device);    // it's bluetooth!