User's Manual
12 / 13
www.asiatelco.com
This command will simultaneously writes data to all CODE registers while updating all DAC registers. It means channel A and channel B
will simultaneously update to set value.
value: 0~4095 0~3.3V
USB Interface
Read
Source Code:
int fd ;
unsigned char buf[1024];
fd = open(“/dev/ ttyUSB0”, O_RDWR);
read (fd, buf,1024);
close(fd);
Write
Source Code:
int fd ;
unsigned char buf[1024];
fd = open(“/dev/ttyUSB0”, O_RDWR);
write (fd, buf,1024);
close(fd);
GPIO Interface
Switcher
Swith S1 GPIO number is “GPIO9”
Swith S2 GPIO number is “GPIO13”
Using methods refer to GPIO write.
• gpio w [num]: Set gpio high level. GPIO is output mode.
[num] 0 to 46
• gpio c [num]: Set gpio low level. GPIO is output mode.
[num] 0 to 46
GPS On/Off
GPIO number is “GPIO60” High Level: Open GPS Power
Current sensor On/Off
To achieve in the future
Light sensor On/Off
To achieve in the future
LED fixture On/Off
Channel 1: GPIO number is “GPIO9” High Level: Open GPS Power
Channel 2: GPIO number is “GPIO13” High Level: Open GPS Power
Indicator LED
Read LED: GPIO number is “GPIO41”
Yellow LED: GPIO number is “GPIO42”
Green1 LED: GPIO number is “GPIO43”
Green2 LED: GPIO number is “GPIO44”
NV Interface
NV Write Interface
nvram_set(RT2860_NVRAM, "UserStingID", "UserStingContent");
Instructions:
RT2860_NVRAM: fixed value.
"UserStingID": name of user sting.
"UserStingContent": content of user sting.
NV Read Interface
char * UserStingContent = nvram_get(RT2860_NVRAM, " UserStingID ");
Instructions:
RT2860_NVRAM: fixed value.
"UserStingID": name of user sting.
"UserStingContent": content of user sting.