flandre/cmd_example.ipynb
2025-05-13 19:41:56 +08:00

153 lines
3.9 KiB
Plaintext

{
"cells": [
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:40:48.125519Z",
"start_time": "2025-05-13T11:40:32.719269Z"
}
},
"cell_type": "code",
"source": "!flandre device connect",
"id": "b9a1cfa42427ea58",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\"/home/lambda/source/scarlet/flandre/flandre/nodes/Device.py:67\" [2025-05-13 19:40:35.965] WARNING - retry DeviceCmd.SetConnectionOn\r\n",
"\"/home/lambda/source/scarlet/flandre/flandre/nodes/Device.py:67\" [2025-05-13 19:40:38.968] WARNING - retry DeviceCmd.SetConnectionOn\r\n",
"\"/home/lambda/source/scarlet/flandre/flandre/nodes/Device.py:67\" [2025-05-13 19:40:41.971] WARNING - retry DeviceCmd.SetConnectionOn\r\n",
"\"/home/lambda/source/scarlet/flandre/flandre/nodes/Device.py:67\" [2025-05-13 19:40:44.974] WARNING - retry DeviceCmd.SetConnectionOn\r\n",
"\"/home/lambda/source/scarlet/flandre/flandre/nodes/Device.py:67\" [2025-05-13 19:40:47.977] WARNING - retry DeviceCmd.SetConnectionOn\r\n",
"\"/home/lambda/source/scarlet/flandre/flandre/BusClient.py:102\" [2025-05-13 19:40:47.978] WARNING - timeout\r\n",
"\"/home/lambda/source/scarlet/flandre/flandre/nodes/Device.py:83\" [2025-05-13 19:40:47.978] ERROR - Device msg: timeout\r\n"
]
}
],
"execution_count": 25
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:36:04.715332Z",
"start_time": "2025-05-13T11:36:01.555254Z"
}
},
"cell_type": "code",
"source": "!flandre device upload fakename config/device/max-256-120,U=120,M=PWI,S=\\(256\\ 6002\\).txt",
"id": "ac406034e9609c90",
"outputs": [],
"execution_count": 21
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:40:49.715961Z",
"start_time": "2025-05-13T11:40:48.691066Z"
}
},
"cell_type": "code",
"source": "!flandre device enable",
"id": "ab586d49c1b1ba92",
"outputs": [],
"execution_count": 26
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:38:34.478865Z",
"start_time": "2025-05-13T11:38:32.692081Z"
}
},
"cell_type": "code",
"source": "!flandre device disable",
"id": "ca701d64ece107ad",
"outputs": [],
"execution_count": 23
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:38:37.102263Z",
"start_time": "2025-05-13T11:38:35.000899Z"
}
},
"cell_type": "code",
"source": "!flandre device disconnect",
"id": "43b7940521fe2281",
"outputs": [],
"execution_count": 24
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:32:13.810739Z",
"start_time": "2025-05-13T11:32:13.065558Z"
}
},
"cell_type": "code",
"source": "!flandre mi on c1",
"id": "bd2895e5dacbaeb8",
"outputs": [],
"execution_count": 6
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:32:05.715847Z",
"start_time": "2025-05-13T11:32:04.786438Z"
}
},
"cell_type": "code",
"source": "!flandre mi off c1",
"id": "b58d3d068ddc33e7",
"outputs": [],
"execution_count": 2
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-13T11:32:18.968005Z",
"start_time": "2025-05-13T11:32:18.047624Z"
}
},
"cell_type": "code",
"source": "!flandre mi status c1",
"id": "11a05cd3e0992fd9",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"True\r\n",
"14\r\n"
]
}
],
"execution_count": 9
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}