@synapticon/motion-master-client 2.2.2 → 6.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/client.d.ts +20 -0
- package/dist/client.js +37 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +8 -0
- package/dist/generated/Api.d.ts +991 -0
- package/dist/generated/Api.js +614 -0
- package/dist/generated/data-contracts.d.ts +644 -0
- package/dist/generated/data-contracts.js +12 -0
- package/dist/generated/http-client.d.ts +60 -0
- package/dist/generated/http-client.js +171 -0
- package/dist/hex.d.ts +2 -0
- package/dist/hex.js +20 -0
- package/dist/index.d.ts +10 -7
- package/dist/index.js +16 -22
- package/dist/mmpd.d.ts +54 -0
- package/dist/mmpd.js +323 -0
- package/dist/sdo.d.ts +15 -0
- package/dist/sdo.js +212 -0
- package/dist/somanet.d.ts +5 -0
- package/dist/somanet.js +15 -0
- package/dist/web-socket-connection.d.ts +69 -0
- package/dist/web-socket-connection.js +206 -0
- package/package.json +29 -39
- package/.vscode/launch.json +0 -23
- package/README.md +0 -118
- package/box.config.json +0 -7
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -1433
- package/dist/cli.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/motion-master-client-web-socket-connection.d.ts +0 -43
- package/dist/motion-master-client-web-socket-connection.d.ts.map +0 -1
- package/dist/motion-master-client-web-socket-connection.js +0 -91
- package/dist/motion-master-client-web-socket-connection.js.map +0 -1
- package/dist/motion-master-client.d.ts +0 -105
- package/dist/motion-master-client.d.ts.map +0 -1
- package/dist/motion-master-client.js +0 -348
- package/dist/motion-master-client.js.map +0 -1
- package/dist/motion-master-notification-subscribe-data.d.ts +0 -8
- package/dist/motion-master-notification-subscribe-data.d.ts.map +0 -1
- package/dist/motion-master-notification-subscribe-data.js +0 -3
- package/dist/motion-master-notification-subscribe-data.js.map +0 -1
- package/dist/motion-master-notification-web-socket-connection.d.ts +0 -56
- package/dist/motion-master-notification-web-socket-connection.d.ts.map +0 -1
- package/dist/motion-master-notification-web-socket-connection.js +0 -115
- package/dist/motion-master-notification-web-socket-connection.js.map +0 -1
- package/dist/motion-master-notification.d.ts +0 -31
- package/dist/motion-master-notification.d.ts.map +0 -1
- package/dist/motion-master-notification.js +0 -44
- package/dist/motion-master-notification.js.map +0 -1
- package/dist/util.d.ts +0 -16
- package/dist/util.d.ts.map +0 -1
- package/dist/util.js +0 -24
- package/dist/util.js.map +0 -1
- package/licenses.format.json +0 -4
- package/motion-master-client.config.json +0 -7
- package/smm_data_dic.json +0 -1213
- package/src/cli.ts +0 -1361
- package/src/index.ts +0 -7
- package/src/motion-master-client-web-socket-connection.ts +0 -104
- package/src/motion-master-client.ts +0 -468
- package/src/motion-master-notification-subscribe-data.ts +0 -7
- package/src/motion-master-notification-web-socket-connection.ts +0 -143
- package/src/motion-master-notification.ts +0 -51
- package/src/util.ts +0 -22
- package/test.sh +0 -122
- package/tsconfig.json +0 -63
- package/tslint.json +0 -118
package/README.md
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# Motion Master Client
|
|
2
|
-
|
|
3
|
-
Library and CLI tool for interacting with [Motion Master](https://github.com/synapticon/motion-master).
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
sudo npm --unsafe-perm=true install -g @synapticon/motion-master-client
|
|
8
|
-
|
|
9
|
-
## Command line usage
|
|
10
|
-
|
|
11
|
-
See the examples in [test.sh](test.sh).
|
|
12
|
-
|
|
13
|
-
Usage: cli [options] [command]
|
|
14
|
-
|
|
15
|
-
Options:
|
|
16
|
-
-V, --version output the version number
|
|
17
|
-
-c, --config <path> path to JSON config file to read and replace the default values with
|
|
18
|
-
-d, --device-address <address> device address (uint32) generated by Motion Master - takes precedence over
|
|
19
|
-
device position
|
|
20
|
-
-f, --output-format <json|yaml> if left unspecified the output format is the default colored message
|
|
21
|
-
inspect
|
|
22
|
-
-p, --device-position <position> used when device address is not specified (default: 0)
|
|
23
|
-
-h, --help display help for command
|
|
24
|
-
|
|
25
|
-
Commands:
|
|
26
|
-
request [options] <type> [args...]
|
|
27
|
-
upload [options] [params...]
|
|
28
|
-
download [paramValues...]
|
|
29
|
-
getDeviceFileContent <filename>
|
|
30
|
-
getDeviceLogContent
|
|
31
|
-
getCoggingTorqueDataContent
|
|
32
|
-
startCoggingTorqueRecording [options]
|
|
33
|
-
startOffsetDetection
|
|
34
|
-
startPlantIdentification <durationSeconds> <torqueAmplitude> <startFrequency> <endFrequency> <cutoffFrequency>
|
|
35
|
-
startSystemIdentification <durationSeconds> <torqueAmplitude> <startFrequency> <endFrequency>
|
|
36
|
-
startCirculoEncoderNarrowAngleCalibrationProcedure <encoderOrdinal>
|
|
37
|
-
monitor [options] <topic> [params...]
|
|
38
|
-
help [command] display help for command
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### request
|
|
42
|
-
|
|
43
|
-
Usage: cli request [options] <type> [args...]
|
|
44
|
-
|
|
45
|
-
Options:
|
|
46
|
-
-i, --interval <value> sending interval in microseconds (default: 1000000)
|
|
47
|
-
-h, --help display help for command
|
|
48
|
-
|
|
49
|
-
Request <type>s:
|
|
50
|
-
pingSystem
|
|
51
|
-
getSystemVersion
|
|
52
|
-
getDeviceInfo
|
|
53
|
-
getDeviceParameterInfo
|
|
54
|
-
getDeviceParameterValues
|
|
55
|
-
getMultiDeviceParameterValues
|
|
56
|
-
setDeviceParameterValues
|
|
57
|
-
setMultiDeviceParameterValues
|
|
58
|
-
getDeviceFileList
|
|
59
|
-
getDeviceFile
|
|
60
|
-
setDeviceFile
|
|
61
|
-
deleteDeviceFile
|
|
62
|
-
resetDeviceFault
|
|
63
|
-
stopDevice
|
|
64
|
-
startDeviceFirmwareInstallation
|
|
65
|
-
getDeviceLog
|
|
66
|
-
startCoggingTorqueRecording
|
|
67
|
-
getCoggingTorqueData
|
|
68
|
-
startOffsetDetection
|
|
69
|
-
startPlantIdentification
|
|
70
|
-
startSystemIdentification
|
|
71
|
-
computeAutoTuningGains
|
|
72
|
-
setMotionControllerParameters
|
|
73
|
-
enableMotionController
|
|
74
|
-
disableMotionController
|
|
75
|
-
setSignalGeneratorParameters
|
|
76
|
-
startSignalGenerator
|
|
77
|
-
stopSignalGenerator
|
|
78
|
-
startMonitoringDeviceParameterValues
|
|
79
|
-
stopMonitoringDeviceParameterValues
|
|
80
|
-
getEthercatNetworkState
|
|
81
|
-
setEthercatNetworkState
|
|
82
|
-
startNarrowAngleCalibration
|
|
83
|
-
setSystemClientTimeout
|
|
84
|
-
getCirculoEncoderMagnetDistance
|
|
85
|
-
startCirculoEncoderNarrowAngleCalibrationProcedure
|
|
86
|
-
getDeviceCiA402State
|
|
87
|
-
setDeviceCiA402State
|
|
88
|
-
getSystemLog
|
|
89
|
-
startDeviceSiiRestore
|
|
90
|
-
startOpenLoopFieldControl
|
|
91
|
-
computeFullAutoTuningGains
|
|
92
|
-
startFullAutoTuning
|
|
93
|
-
stopFullAutoTuning
|
|
94
|
-
startCirculoEncoderConfiguration
|
|
95
|
-
stopCirculoEncoderNarrowAngleCalibrationProcedure
|
|
96
|
-
startOsCommand
|
|
97
|
-
|
|
98
|
-
### monitor
|
|
99
|
-
|
|
100
|
-
Usage: monitor [options] <topic> [params...]
|
|
101
|
-
|
|
102
|
-
Options:
|
|
103
|
-
-i, --interval <value> sending interval in microseconds (default: 1000000)
|
|
104
|
-
-h, --help output usage information
|
|
105
|
-
|
|
106
|
-
## Library usage
|
|
107
|
-
|
|
108
|
-
const input = new rxjs.Subject<Buffer>();
|
|
109
|
-
const output = new rxjs.Subject<Buffer>();
|
|
110
|
-
const motionMasterClient = new MotionMasterClient(input, output);
|
|
111
|
-
const messageId = v4(); // '4e4d938e-1021-4b68-ad01-38c7ed2c5ee4'
|
|
112
|
-
const getSystemVersion: motionmaster.MotionMasterMessage.Request.IGetSystemVersion = {};
|
|
113
|
-
motionMasterClient.sendRequest({ getSystemVersion }, messageId);
|
|
114
|
-
motionMasterClient.systemVersion$.subscribe(console.log);
|
|
115
|
-
|
|
116
|
-
## Publish
|
|
117
|
-
|
|
118
|
-
npm publish --access=public
|
package/box.config.json
DELETED
package/dist/cli.d.ts
DELETED
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|