basicStamp USB with STR-433 receiver problems.
inzomniac
Posts: 1
Hello people, i'm new at these forums, but i'm in desperate need for help.
I'm in the midle of a project that uses the BasicSTAMP USB module with a STR-433 receiver like this one:
http://www.sunrom.com/index.php?main_page=product_info&products_id=117
So, I have the Data output (digital, the second PIN...) pluged into the·PO in the USB module...the reception works but there's a big problem: we can only use fourteen bits (B0, B1,·B2...B13).·The data stream received is usually longer (in·the·protocol we use six bits only for labels, which means·another·only 8 additional for the data per se). This is the BIG problem. Those 8 Bytes (of my test data, but could be more than 8)·cannot be read, and there doesn't seem a way·of getting to·them...Is there any way to capture all the bytes that are being received? (another GOTO maybe, i don't know, I'm an expert in high-level languages, but low-level..ehm....not so much).
And when the cycle starts again (SERIN 0, T1200, sData) sData0 always receives 0. Like the cleaning of the buffer maybe...
this is my code, pretty simple and not too elegant....I use the·DEBUG instruction because i'm using the USB as an interface between the receiver and the PC.
' {$STAMP BS1}
' {$PBASIC 1.0}
SYMBOL· sData·· = B0
SYMBOL· sData1·· = B1
SYMBOL· sData2·· = B2
SYMBOL· sData3·· = B3
SYMBOL· sData4·· = B4
SYMBOL· sData5·· = B5
SYMBOL· sData6·· = B6
SYMBOL· sData7·· = B7
SYMBOL· sData8·· = B8
SYMBOL· sData9·· = B9
SYMBOL· sData10·· = B10
SYMBOL· sData11·· = B11
SYMBOL· sData12·· = B12
SYMBOL· sData13·· = B13
Main:
label:· SERIN 0, T1200, sData
· SERIN 0, T1200, sData
· SERIN 0, T1200, sData2
· SERIN 0, T1200, sData3
· SERIN 0, T1200, sData4
· SERIN 0, T1200, sData5
· SERIN 0, T1200, sData6
· SERIN 0, T1200, sData7
· SERIN 0, T1200, sData8
· SERIN 0, T1200, sData9
· SERIN 0, T1200, sData10
· SERIN 0, T1200, sData11
· SERIN 0, T1200, sData12
· SERIN 0, T1200, sData13
·· DEBUG sData
·· DEBUG sData1
·· DEBUG sData2
·· DEBUG sData3
·· DEBUG sData4
·· DEBUG sData5
·· DEBUG sData6
·· DEBUG sData7
·· DEBUG sData8
·· DEBUG sData9
···DEBUG sData10
···DEBUG sData11
···DEBUG sData12
···DEBUG sData13
· GOTO·label
· END
I'm desperate.
Please, anyone. Thanks in advance.
·
I'm in the midle of a project that uses the BasicSTAMP USB module with a STR-433 receiver like this one:
http://www.sunrom.com/index.php?main_page=product_info&products_id=117
So, I have the Data output (digital, the second PIN...) pluged into the·PO in the USB module...the reception works but there's a big problem: we can only use fourteen bits (B0, B1,·B2...B13).·The data stream received is usually longer (in·the·protocol we use six bits only for labels, which means·another·only 8 additional for the data per se). This is the BIG problem. Those 8 Bytes (of my test data, but could be more than 8)·cannot be read, and there doesn't seem a way·of getting to·them...Is there any way to capture all the bytes that are being received? (another GOTO maybe, i don't know, I'm an expert in high-level languages, but low-level..ehm....not so much).
And when the cycle starts again (SERIN 0, T1200, sData) sData0 always receives 0. Like the cleaning of the buffer maybe...
this is my code, pretty simple and not too elegant....I use the·DEBUG instruction because i'm using the USB as an interface between the receiver and the PC.
' {$STAMP BS1}
' {$PBASIC 1.0}
SYMBOL· sData·· = B0
SYMBOL· sData1·· = B1
SYMBOL· sData2·· = B2
SYMBOL· sData3·· = B3
SYMBOL· sData4·· = B4
SYMBOL· sData5·· = B5
SYMBOL· sData6·· = B6
SYMBOL· sData7·· = B7
SYMBOL· sData8·· = B8
SYMBOL· sData9·· = B9
SYMBOL· sData10·· = B10
SYMBOL· sData11·· = B11
SYMBOL· sData12·· = B12
SYMBOL· sData13·· = B13
Main:
label:· SERIN 0, T1200, sData
· SERIN 0, T1200, sData
· SERIN 0, T1200, sData2
· SERIN 0, T1200, sData3
· SERIN 0, T1200, sData4
· SERIN 0, T1200, sData5
· SERIN 0, T1200, sData6
· SERIN 0, T1200, sData7
· SERIN 0, T1200, sData8
· SERIN 0, T1200, sData9
· SERIN 0, T1200, sData10
· SERIN 0, T1200, sData11
· SERIN 0, T1200, sData12
· SERIN 0, T1200, sData13
·· DEBUG sData
·· DEBUG sData1
·· DEBUG sData2
·· DEBUG sData3
·· DEBUG sData4
·· DEBUG sData5
·· DEBUG sData6
·· DEBUG sData7
·· DEBUG sData8
·· DEBUG sData9
···DEBUG sData10
···DEBUG sData11
···DEBUG sData12
···DEBUG sData13
· GOTO·label
· END
I'm desperate.
Please, anyone. Thanks in advance.
·