スマートコンセント(富士通 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:
1:3f2890d103fb
Parent:
0:606b230e5b4a
Child:
2:32a2d06f4fe2
--- a/AutoEvents.cpp	Sat Apr 10 00:30:24 2010 +0000
+++ b/AutoEvents.cpp	Wed Sep 26 06:29:47 2012 +0000
@@ -133,6 +133,12 @@
 //  Implemented in TestShell.cpp
 int OnBluetoothInsert(int device);
 
+//  Added by Y.Tauchi  ------------------------------------
+//  Implemented in usps.cpp 
+int OnUspsInsert(int device);
+//  -----------------------------------------------------------
+
+
 void OnLoadDevice(int device, DeviceDescriptor* deviceDesc, InterfaceDescriptor* interfaceDesc)
 {
     printf("LoadDevice %d %02X:%02X:%02X\n",device,interfaceDesc->bInterfaceClass,interfaceDesc->bInterfaceSubClass,interfaceDesc->bInterfaceProtocol);
@@ -154,6 +160,12 @@
             if (interfaceDesc->bInterfaceSubClass == 0x01 && interfaceDesc->bInterfaceProtocol == 0x01)
                 OnBluetoothInsert(device);    // it's bluetooth!
             break;
+        //  Added by Y.Tauchi  ------------------------------------
+        case CLASS_VENDOR_SPECIFIC:
+            if (interfaceDesc->bInterfaceSubClass == 0x01 && interfaceDesc->bInterfaceProtocol == 0x02)
+                OnUspsInsert(device);    // it's USPS! (FUJITSU FX-5204PS)
+            break;
+//  ----------------------------------------------------------
         default:
             StartAutoEvent(device,1,0);
             break;