![Yoctopuce Yocto-GPS Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557041.webp)
C:\>
YModule
all
describe
Each
xxx
property of the module can be obtained thanks to a command of the
get_xxxx()
type,
and the properties which are not read only can be modified with the
set_xxx()
command. For
example:
C:\>
YModule YGNSSMK1-12346 set_logicalName MonPremierModule
C:\>
YModule YGNSSMK1-12346 get_logicalName
Changing the settings of the module
When you want to change the settings of a module, simply use the corresponding
set_xxx
command. However, this change happens only in the module RAM: if the module restarts, the
changes are lost. To store them permanently, you must tell the module to save its current
configuration in its nonvolatile memory. To do so, use the
saveToFlash
command. Inversely, it is
possible to force the module to forget its current settings by using the
revertFromFlash
method.
For example:
C:\>
YModule YGNSSMK1-12346 set_logicalName MonPremierModule
C:\>
YModule YGNSSMK1-12346 saveToFlash
Note that you can do the same thing in a single command with the
-s
option.
C:\>
YModule -s YGNSSMK1-12346 set_logicalName MonPremierModule
Warning: the number of write cycles of the nonvolatile memory of the module is limited. When this
limit is reached, nothing guaranties that the saving process is performed correctly. This limit, linked to
the technology employed by the module micro-processor, is located at about 100000 cycles. In short,
you can use the
saveToFlash()
function only 100000 times in the life of the module. Make sure
you do not call this function within a loop.
6.5. Limitations
The command line API has the same limitation than the other APIs: there can be only one application
at a given time which can access the modules natively. By default, the command line API works in
native mode.
You can easily work around this limitation by using a Virtual Hub: run the VirtualHub
3
on the
concerned machine, and use the executables of the command line API with the
-r
option. For
example, if you use:
C:\>
YModule inventory
you obtain a list of the modules connected by USB, using a native access. If another command which
accesses the modules natively is already running, this does not work. But if you run a Virtual Hub,
and you give your command in the form:
C:\>
YModule -r 127.0.0.1 inventory
it works because the command is not executed natively anymore, but through the Virtual Hub. Note
that the Virtual Hub counts as a native application.
3
http://www.yoctopuce.com/EN/virtualhub.php
6. Using the Yocto-GPS in command line
www.yoctopuce.com
35
Содержание Yocto-GPS
Страница 1: ...Yocto GPS User s guide...
Страница 2: ......
Страница 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Страница 10: ...4 www yoctopuce com...
Страница 14: ...8 www yoctopuce com...
Страница 18: ...12 www yoctopuce com...
Страница 22: ...16 www yoctopuce com...
Страница 38: ...32 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 54: ...48 www yoctopuce com...
Страница 72: ...66 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 122: ...116 www yoctopuce com...
Страница 132: ...126 www yoctopuce com...
Страница 159: ...20 High level API Reference On failure throws an exception or returns a negative error code www yoctopuce com 153...
Страница 564: ...22 Characteristics 558 www yoctopuce com...
Страница 565: ......
Страница 566: ......