UMEHOSHI ITA TOP PAGE    COMPUTER SHIEN LAB

[UMEHOSHI ITA]の「.umh」ファイル:umehoshiアプリを介した遠隔操作

androidのスマフォを介した遠隔操作のページで示したapp_pwm.cをビルドして作ったコードです。
このコードは、次のように「 umehoshi アプリ」との間で、Wifi通信(TCP)による転送ファイルです。


これを利用した実行例のムービーです。


以下がこの操作用ボタンの「.umh」ファイル群です。

「u_LoadPWM.umh」ロード用の初期プログラムと初期実行のコード

PWM_LOAD
S048000800000FFDF000083
S048000800400FFFF00007D
S04800080080000050000CC
S048000800C00CEFFFFFF1A
S04800080100032000000D3
S04800080140000000000D4
S04800080180000000000D0
S1080005B0000E8FFBD271400BFAF1000BEAF21F0A00305
S1080005B100088BF023C00020324341043AC0180023C9D
S1080005B20001480428C010043240180023C148043ACB6
S1080005B30000180023C1480438C0180023C0880428CA8
S1080005B40002A10620007004014000000008016000CFB
S1080005B50000000000088BF033C20616294C47B027C8D
S1080005B6000206162A40180023C0C80428C1C004104A7
S1080005B7000000000000180023C1880428C01004424E4
S1080005B80000180033C188064AC1500410400000000D5
S1080005B90000100042480BF033C00306294C47B827C84
S1080005BA000003062A480BF033C00386294C47B827C5F
S1080005BB000003862A42120000080BF033C00366294A7
S1080005BC000C47B827C003662A480BF033C003462945B
S1080005BD000C47B827C003462A41D170008000000009C
S1080005BE0000180023C0C80428C2200410400000000CE
S1080005BF0000180023C1080428C1E00401800000000C9
S1080005C00002120000080BF033C00306294C47B827C92
S1080005C1000003062A480BF033C00386294C47B827C6E
S1080005C2000003862A40100042480BF033C00366294B0
S1080005C3000C47B827C003662A480BF033C003462946A
S1080005C4000C47B827C003462A40180023C1880438C7C
S1080005C50000180023C1080428C2A10430005004010D7
S1080005C6000000000000180023C0C80438C0180023CC7
S0480005C7000188043AC86
S1080005C740021E8C0031400BF8F1000BE8F1800BD2742
S0880005C84000800E0030000000019
S108000560000E8FFBD271400BFAF1000BEAF21F0A00311
S10800056100000A0023CA84142340000428C0180033CC1
S1080005620000080638C2120600009F8400000000000F5
S1080005630000180023C0080428C001043240100023CE5
S1080005640002A1062000F004010000000000180023CFD
S1080005650000080428C001043240180023C008043ACC9
S10800056600000A0023CA44142340000428C0080033CC1
S1080005670006C52642409F8400000000000A8150008D0
S1080005680000000000000A0023CA44142340000428CE0
S1080005690000080033C7852642409F8400000000000DE
S10800056A00088BF023C2061428C008042300100422CA1
S10800056B000FF00443088BF033C20616294C47B827C4D
S10800056C000206162A421E8C0031400BF8F1000BE8F59
S0C800056D0001800BD270800E003000000005B
S108000580000E8FFBD271400BFAF1000BEAF21F0A0030F
S10800058100000A0023CA84142340000428C0180033CBF
S1080005820000480638C2120600009F8400000000000EF
S1080005830000180023C0480428C001043240100023CDF
S1080005840002A1062000F004010000000000180023CFB
S1080005850000480428C001043240180023C048043ACBF
S10800058600000A0023CA44142340000428C0080033CBF
S108000587000A852642409F840000000000028160008DC
S1080005880000000000000A0023CA44142340000428CDE
S1080005890000080033CB452642409F8400000000000D5
S10800058A00088BF023C2061428C008042300100422C9F
S10800058B000FF00443088BF033C20616294C47B827C4B
S10800058C000206162A421E8C0031400BF8F1000BE8F57
S0C800058D0001800BD270800E0030000000059
S108000570000E8FFBD271400BFAF1000BEAF21F0A00310
S10800057100000A0023CA84142340000428C0180033CC0
S1080005720000080638C2120600009F8400000000000F4
S1080005730000180023C0080428C00F042240F004004CB
S108000574000000000000180023C0080428C00F04324E7
S1080005750000180023C008043AC00A0023CA4414234AF
S1080005760000000428C0080033C8852642409F84000BE
S10800057700000000000E61500080000000000A0023CFF
S108000578000A44142340000428C0080033C98526424BF
S08800057900009F84000000000001D
S10800057980088BF023C2061428C008042300100422CA0
S10800057A800FF00443088BF033C20616294C47B827C45
S10800057B800206162A421E8C0031400BF8F1000BE8F51
S0C800057C8001800BD270800E0030000000053
S108000590000E8FFBD271400BFAF1000BEAF21F0A0030E
S10800059100000A0023CA84142340000428C0180033CBE
S1080005920000480638C2120600009F8400000000000EE
S1080005930000180023C0480428C00F042240F004004C5
S108000594000000000000180023C0480428C00F04324E1
S1080005950000180023C048043AC00A0023CA4414234A9
S1080005960000000428C0080033CC452642409F84000B5
S10800059700000000000661600080000000000A0023C0B
S108000598000A44142340000428C0080033CD4526424B6
S08800059900009F84000000000001B
S10800059980088BF023C2061428C008042300100422C9E
S10800059A800FF00443088BF033C20616294C47B827C43
S10800059B800206162A421E8C0031400BF8F1000BE8F4F
S0C800059C8001800BD270800E0030000000051
S108000500000E8FFBD271400BFAF1000BEAF21F0A00317
S10800050100088BF023C0C600324246143AC00A0023C8B
S108000502000C84042340080033C00506334000043ACD0
S1080005030000000000088BF023C00020324641043ACCB
S10800050400000A0023C504042340080033C005B6334D4
S108000505000000043AC80BF023CFF8F0334200843AC5E
S10800050600088BF023C00020324681043AC00A0023C9B
S108000507000B84042340000428C09F8400001000424D6
S10800050800080BF033C0008629401000424C47B827C92
S108000509000000862A40180023C148040AC88BF033C8A
S10800050A00020616294C47B027C206162A421E8C00388
S10800050B0001400BF8F1000BE8F0800E0031800BD2764
S108000520000E8FFBD271400BFAF1000BEAF21F0A00315
S1080005210000180023C148040AC010004243014000CE0
S10800052200000000000010004245714000C000000002C
S10800052300088BF023C2061428C008042300100422CB3
S108000524000FF00443088BF033C20616294C47B827C5F
S108000525000206162A421E8C0031400BF8F1000BE8F6B
S0C80005260001800BD270800E003000000006D
S108000530000E8FFBD271400BFAF1000BEAF21F0A00314
S1080005310000180023C148040ACFFFF04243014000C88
S10800053200000000000FFFF04245714000C00000000D4
S10800053300088BF023C2061428C008042300100422CB2
S108000534000FF00443088BF033C20616294C47B827C5E
S108000535000206162A421E8C0031400BF8F1000BE8F6A
S0C80005360001800BD270800E003000000006C
S108000540000E8FFBD271400BFAF1000BEAF21F0A00313
S1080005410000180023C148040AC010004243014000CDE
S10800054200000000000FFFF04245714000C00000000D3
S10800054300088BF023C2061428C008042300100422CB1
S108000544000FF00443088BF033C20616294C47B827C5D
S108000545000206162A421E8C0031400BF8F1000BE8F69
S0C80005460001800BD270800E003000000006B
S108000550000E8FFBD271400BFAF1000BEAF21F0A00312
S1080005510000180023C148040ACFFFF04243014000C86
S10800055200000000000010004245714000C0000000029
S10800055300088BF023C2061428C008042300100422CB0
S108000554000FF00443088BF033C20616294C47B827C5C
S108000555000206162A421E8C0031400BF8F1000BE8F68
S0C80005560001800BD270800E003000000006A
S1080005A0000F8FFBD270400BEAF21F0A0032110000052
S1080005A100080BF033C203462AC80BF033C203662AC4F
S1080005A200080BF033C203062AC80BF033C203862AC50
S1080005A300021E8C0030400BE8F0800BD270800E00375
S0480005A400000000000C7
S10800050C000F8FFBD270400BEAF21F0A0030800C4AF0E
S10800050D0000180023C148040AC80BF023C203840AC78
S10800050E00080BF023C203040AC0800C38F0100022490
S10800050F0000A006214000000000180023C0080428CE1
S1080005100002118400080BF023C203843AC80BF023C86
S108000511000203040AC52140008000000000800C38FE0
S108000512000FFFF0224080062140000000080BF023C9F
S108000513000203840AC0180023C0080428C21184000CC
S10800051400080BF023C203043AC21E8C0030400BE8F63
S0C80005150000800BD270800E0030000000070
S108000515C00F8FFBD270400BEAF21F0A0030800C4AF08
S108000516C000180023C148040AC80BF023C203640AC74
S108000517C0080BF023C203440AC0800C38F0100022486
S108000518C000A006214000000000180023C0480428CD7
S108000519C002118400080BF023C203643AC80BF023C6C
S10800051AC00203440AC79140008000000000800C38FB0
S10800051BC00FFFF0224080062140000000080BF023C7C
S10800051CC00203640AC0180023C0480428C21184000A7
S10800051DC0080BF023C203443AC21E8C0030400BE8F3C
S0C800051EC000800BD270800E003000000004D
S0C8000526C00204C6566742055500D0A000041
S108000527800204C6566742046554C4C0D0A00000000AA
S108000528800204C65667420444F574E0D0A00000000A4
S108000529800204C656674204D696E696D756D0D0A0059
S0C800052A8002052696768742055500D0A003E
S10800052B4002052696768742046554C4C0D0A000000A0
S10800052C40020526967687420444F574E0D0A0000009A
S10800052D4005269676874204D696E696D756D0D0A0051
S108000536C00008000801400000001000000FFDF0000D7
S108000537C00FFFF000000050000CEFFFFFF3200000034
S108000538C001480008008000000000000000000000024
R00800050000061

前進のボタン用です。コード内の0x80005200番地にあるforward関数を実行する時に使う「uGoForward.umh」を示します。

Forward
R0080005200005F

後進のボタン用です。コード内の0x80005300番地にあるgoback関数を実行する時に使う「uGoBack.umh」を示します。

Back
R0080005300005E

右回転のボタン用です。コード内の0x80005400番地にあるright関数を実行する時に使う「uGoRight.umh」を示します。

Right
R0080005400005D

左回転のボタン用です。コード内の0x80005500番地にあるleft関数を実行する時に使う「uGoLeft.umh」を示します。

Left
R0080005500005C

左モータのPWDデューティ幅のアップ用です。コード内の0x80005600番地にあるupleft関数を実行する時に使う「uLeftUp.umh」を示します。

UpLeft
R0080005600005B

左モータのPWDデューティ幅のダウン用です。コード内の0x80005700番地にあるdownleft関数を実行する時に使う「uLeftDown.umh」を示します。

DownLeft
R0080005700005A

右モータのPWDデューティ幅のアップ用です。コード内の0x80005800番地にあるupright関数を実行する時に使う「uRightUp.umh」を示します。

UpRight
R00800058000059

右モータのPWDデューティ幅のダウン用です。コード内の0x80005900番地にあるdownright関数を実行する時に使う「uRightDown.umh」を示します。

DownRight
R00800059000058

すべてのモータの停止用です。コード内の0x80005A00番地にあるstop()関数を実行する時に使う「uStop.umh」を示します。

Stop
R0080005A000050