@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.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/dist/client.d.ts +20 -0
  3. package/dist/client.js +37 -0
  4. package/dist/constants.d.ts +2 -0
  5. package/dist/constants.js +8 -0
  6. package/dist/generated/Api.d.ts +991 -0
  7. package/dist/generated/Api.js +614 -0
  8. package/dist/generated/data-contracts.d.ts +644 -0
  9. package/dist/generated/data-contracts.js +12 -0
  10. package/dist/generated/http-client.d.ts +60 -0
  11. package/dist/generated/http-client.js +171 -0
  12. package/dist/hex.d.ts +2 -0
  13. package/dist/hex.js +20 -0
  14. package/dist/index.d.ts +10 -7
  15. package/dist/index.js +16 -22
  16. package/dist/mmpd.d.ts +54 -0
  17. package/dist/mmpd.js +323 -0
  18. package/dist/sdo.d.ts +15 -0
  19. package/dist/sdo.js +212 -0
  20. package/dist/somanet.d.ts +5 -0
  21. package/dist/somanet.js +15 -0
  22. package/dist/web-socket-connection.d.ts +69 -0
  23. package/dist/web-socket-connection.js +206 -0
  24. package/package.json +29 -39
  25. package/.vscode/launch.json +0 -23
  26. package/README.md +0 -118
  27. package/box.config.json +0 -7
  28. package/dist/cli.d.ts +0 -3
  29. package/dist/cli.d.ts.map +0 -1
  30. package/dist/cli.js +0 -1433
  31. package/dist/cli.js.map +0 -1
  32. package/dist/index.d.ts.map +0 -1
  33. package/dist/index.js.map +0 -1
  34. package/dist/motion-master-client-web-socket-connection.d.ts +0 -43
  35. package/dist/motion-master-client-web-socket-connection.d.ts.map +0 -1
  36. package/dist/motion-master-client-web-socket-connection.js +0 -91
  37. package/dist/motion-master-client-web-socket-connection.js.map +0 -1
  38. package/dist/motion-master-client.d.ts +0 -105
  39. package/dist/motion-master-client.d.ts.map +0 -1
  40. package/dist/motion-master-client.js +0 -348
  41. package/dist/motion-master-client.js.map +0 -1
  42. package/dist/motion-master-notification-subscribe-data.d.ts +0 -8
  43. package/dist/motion-master-notification-subscribe-data.d.ts.map +0 -1
  44. package/dist/motion-master-notification-subscribe-data.js +0 -3
  45. package/dist/motion-master-notification-subscribe-data.js.map +0 -1
  46. package/dist/motion-master-notification-web-socket-connection.d.ts +0 -56
  47. package/dist/motion-master-notification-web-socket-connection.d.ts.map +0 -1
  48. package/dist/motion-master-notification-web-socket-connection.js +0 -115
  49. package/dist/motion-master-notification-web-socket-connection.js.map +0 -1
  50. package/dist/motion-master-notification.d.ts +0 -31
  51. package/dist/motion-master-notification.d.ts.map +0 -1
  52. package/dist/motion-master-notification.js +0 -44
  53. package/dist/motion-master-notification.js.map +0 -1
  54. package/dist/util.d.ts +0 -16
  55. package/dist/util.d.ts.map +0 -1
  56. package/dist/util.js +0 -24
  57. package/dist/util.js.map +0 -1
  58. package/licenses.format.json +0 -4
  59. package/motion-master-client.config.json +0 -7
  60. package/smm_data_dic.json +0 -1213
  61. package/src/cli.ts +0 -1361
  62. package/src/index.ts +0 -7
  63. package/src/motion-master-client-web-socket-connection.ts +0 -104
  64. package/src/motion-master-client.ts +0 -468
  65. package/src/motion-master-notification-subscribe-data.ts +0 -7
  66. package/src/motion-master-notification-web-socket-connection.ts +0 -143
  67. package/src/motion-master-notification.ts +0 -51
  68. package/src/util.ts +0 -22
  69. package/test.sh +0 -122
  70. package/tsconfig.json +0 -63
  71. 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
@@ -1,7 +0,0 @@
1
- {
2
- "pingSystemInterval": 200,
3
- "motionMasterHeartbeatTimeoutDue": 1000,
4
- "serverEndpoint": "tcp://192.168.1.41:62524",
5
- "notificationEndpoint": "tcp://192.168.1.41:62525",
6
- "identity": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
7
- }
package/dist/cli.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}