Hello together,
 
I tried to read "settings" from a BackPack+ with the following, but w/o success
 
10 REM read settings from BackPack/BackPack+
20 REM set variables
21 MAXFILES=2:DEFSTR A-K
22 CP="COM:98N1ENN"
30 REM open COM: for I/O
31 OPEN CP FOR OUTPUT AS 1
32 OPEN CP FOR INPUT AS 2
40 REM turn-on CLI mode
41 PRINT#1,STRING$(4,13)
50 REM send "set" command to BackPack/BackPack+
51 PRINT#1,"set";CHR$(13)
60 REM read data from BackPack (set returns 9? values)
61 INPUT#2,A,B,C,D,E,F,G,H,I
70 REM show "settings"
71 PRINT A,B,C,D,E,F,G,H,I
80 REM turn-off CLI mode
81 PRINT#1,"bye"
99 END
 
What is wrong in the above? Any idea?
 
btw this works:

10 REM read data from BackPack/BackPack+
20 REM set variables
21 MAXFILES=2:DEFSTR A-K
22 CP="COM:98N1ENN"
30 REM open COM: for I/O
31 OPEN CP FOR OUTPUT AS 1
32 OPEN CP FOR INPUT AS 2
40 REM read from BackPack/BackPack+ (Date=A, Time=B, Day=C)
41 PRINT#1,"FF";chr$(7);chr$(13)
42 INPUT#2,A,B,C
50 REM print values
51 PRINT A,B,C
99 END
 
Thanks for your help

Reply via email to