182
Platforms
©2000-2008 Tibbo Technology Inc.
dim
s
as
string
dim
x
as
byte
...
s=
"0.2.123.124.220.240"
'supposing, we want to set this MAC
...
...
s=chr(
6
)+ddval(s)
'added first byte (always 6) and coverted
readable MAC into bytes
x=
255
-strsum(s)
'calculated checksum and assigned the
result to a BYTE variable (!!!)
s=s+chr(x)
'now our string is ready
stor.base(
1
)
'will access EEPROM from the bottom
x=stor.set(s,
1
)
'save data
if
x<>len(s)
then
'it is a good programming practive to check the
result
'failed
else
sys.reboot
'new MAC set, reboot!
end
if
...
There are limitations on what MAC you can set. When loading the MAC into the
Ethernet controller the device always resets the first byte of this address to 0. For
example, if you set the MAC to 1.2.3.4.5.6 then the actual MAC used by the device
will be 0.2.3.4.5.6.
If you write incorrect MAC data (wrong first byte or error in checksum
calculation) the device will ignore it and boot up with default MAC,
which is 0.1.2.3.4.100.
Available network interfaces
The DS1206 platform only has one network interface -- the Ethernet port. The
property refers to this interface as "NET".
Also see the
enum which is used by
and
properties.
Miscellaneous
property and the
event generation period depends on the value of this property.
Common Information
(T1000-based devices)
(T1000-based devices)
327
145
359
331
212
220
220
183
183
184
185
186