Hi,
I have a module equivalent to:
I have a module equivalent to:
Code:
#Picaxe 14M2
# Edit Post Quick reply to this message Reply Reply With Quote Reply With Quote Multi-Quote This Message Blog this Post
Terminal 4800
Symbol TXpin = B.5
Symbol TXbaud = n1200
Symbol PreambleLength = 5
Symbol PreambleByte = $55
Symbol EOMbyte = $5C
Symbol Postamblebyte = $3A
Symbol Data1 = b0
Symbol Data2 = b1
Symbol Dato1 = w1
Symbol Dato2 = w2
Symbol FlashPin = B.3
MAIN: pause 1000
sertxd ("Start",cr,lf)
gosub Flash
BEGIN:
gosub Flash
Data1 = 11
Data2 = 1
'convert to word and transmit
Dato1 = Data1
Dato2 = Data2
pause 1000
serout TXpin,TXbaud,(PreambleByte,PreambleByte,PreambleByte,PreambleByte,PreambleByte,"FRIIS",b2,b3,b4,b5,EOMbyte,Postamblebyte,Postamblebyte,Postamblebyte,Postamblebyte)
sertxd ("RecTransTest: ",#b2," ",#b3," ",#b4," ",#b5,cr,lf)
sertxd ("RecTransTest: ",PreambleByte,"FRIIS"," ",#Dato1," ",#Dato2," ",EOMbyte,Postamblebyte,Postamblebyte,Postamblebyte,Postamblebyte,cr,lf)
pause 1000
goto BEGIN
Flash:
high FlashPin
pause 500 'flash
low FlashPin
return
/[code]
embedded in SUN and Sat (see the attached sketch).
When I run the above pgm I get in LOG:
RecLogging: 11 0 1 0
RecLogging: UFRIIS 11 1 \::::
RecLogging: 11 0 1 0
RecLogging: UFRIIS 11 1 \::::
RecLogging: 11 0 1 0
RecLogging: UFRIIS 11 1 \::::
RecLogging: 11 0 1 0
RecLogging: UFRIIS 11 1 \::::
RecLogging: 11 0 1 0
RecLogging: UFRIIS 11 1 \::::
It all looks normal.
When I run the systen shown in the sketch with the equivalent modules embedded in SUN and SAT, communications A, B, C, D are OK while E and F only work sometimes. My questions are:
1. Is there something wrong with the module above
2. Can the pgms in SUN and SAT have become too complicated (too many subroutines.....?) I dont think you would get anything out of seeing the pgm listings.
I have spent quite some time fiddling with the pgms in SUN and SAT, with antennas and placement of the breadboards (where it is all installed) without success.
best regards
torben
Attachments
-
24.3 KB Views: 20
Last edited: