A JeeNode (which is an Arduino compatible board + RFM12B radio module) receives data from my weather station.

maximite_serial_002

The JeeNode listens to an 868MHz radio link and is connected to the serial port of the Maximite.

 

Jeenode          Maximite
GND      -----   GND
+5V      -----   +5V
RX       -----   Pin15
TX       -----   Pin16

maximite_serial_001

print "opening com1..."
open "com1:9600" as #1
print "waiting for incoming data..."
dat$ = ""
avail = 0

while(1)

  if ( LOC(#1) >= 55 ) then
    while ( not EOF(#1) )
      dat$ = dat$ + input$(1, #1)
    wend  
    if ( len(dat$) >= 55 ) then
      avail = 1
    endif  
  endif  

  if ( avail = 1 ) then
    ' cut off leading #13#10 
    dat$ = mid$(dat$, instr(dat$, "RECV:"), 55)
    print time$ + " " + dat$
    dat$ = ""
    avail = 0
  endif

  pause 100   

wend
close #1
Advertisements