propeller bell202modem object , I can not receive data
RPLO
Posts: 8
Dear Philip,
I just download the propeller bell modem object and I have some problems to work with the Object .
1.- I am not using a Backpack board
2.- I use a two separated boards one as a transmitter , and one as a receiver , we add the resistors an capacitors defined in the manual, like diagram attached 81731
3.- I dowload the into the transmitter the Bell202_modem_demo_transmitter.spin ( attached 81733)
and into the receiver the modem_monitor_modificadorlo.spin ( attached 81735)
3.- to check and adjust the link , we run the monitor.exe programm and I can adjust the system to near de 5 and we can see the data that we are sending in the right window. diagram attached 81732
it does mean that the transmiter and receiver are working ok
4.- then I load the Bell202_modem_demo_modificadorlo.spin to the receiver ( attached 81733)
, but we can not receive any data. It indicate Nothing received.
What we are doing wrong?
modem_monitor_modificadorlo.spinbell202_modem_demo_transmiter.spinmodem monitor software test view.odttest modem diagram.odgbell202_modem_demo_modificadoRLO.spin
I just download the propeller bell modem object and I have some problems to work with the Object .
1.- I am not using a Backpack board
2.- I use a two separated boards one as a transmitter , and one as a receiver , we add the resistors an capacitors defined in the manual, like diagram attached 81731
3.- I dowload the into the transmitter the Bell202_modem_demo_transmitter.spin ( attached 81733)
and into the receiver the modem_monitor_modificadorlo.spin ( attached 81735)
3.- to check and adjust the link , we run the monitor.exe programm and I can adjust the system to near de 5 and we can see the data that we are sending in the right window. diagram attached 81732
it does mean that the transmiter and receiver are working ok
4.- then I load the Bell202_modem_demo_modificadorlo.spin to the receiver ( attached 81733)
, but we can not receive any data. It indicate Nothing received.
What we are doing wrong?
modem_monitor_modificadorlo.spinbell202_modem_demo_transmiter.spinmodem monitor software test view.odttest modem diagram.odgbell202_modem_demo_modificadoRLO.spin
Comments
Welcome to the forum!
In your modified program, you have the line:
If you're not using the Backpack, USING_BP should be set to false.
-Phil
But I put the USING_BP = false and still Nothing Received
-Phil
CON
XMT = false '─────── Set true for transmit demo, false for receive demo.
USING_BP = false '─────── Set true for Propeller Backpack, false for simple setup.
RCVPIN = 0 '┐
XMTPIN = 2 '┼────────── Change, as needed, for non-Backpack use.
PTTPIN = 3 '┘
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
mdm : "bell202_modem"
num : "simple_numbers"
ser : "FullDuplexSerial"
VAR
byte strbuf[64]
PUB main
mdm.start_simple(RCVPIN, XMTPIN, PTTPIN, 0)
'mdm.start_explicit(|<0,0,0,|<3, |<2,|<3,0,0,|<3,mdm#LVL8)
mdm.receive
mdm.set(mdm#HYST, $0200_0000)
mdm.set(mdm#SLICE, $ff20_0000)
mdm.set(mdm#NOISE, $1000_0000)
if (XMT)
do_transmit
else
do_receive
PUB do_transmit | i
i~
repeat
mdm.transmit
mdm.outstr(string("!Testing "))
mdm.outstr(num.decf(i++, 4))
mdm.outstr(string(" de YOUR CALLSIGN", 13)) '─────── callsign here if using radio transmission.
mdm.standby
waitcnt(cnt + clkfreq * 2)
PUB do_receive | timeout
ser.start(31, 30, 0, 9600)
ser.str(string("Beginning reception...", 13))
repeat
timeout~~
'if (mdm.waitstr(string("!Testing "), 4000))
if (mdm.waitstr(string("qwerty "), 4000))
ser.str(string("detectado", 13))
if (mdm.inpstr(@strbuf, 13, 60, 4000))
ser.str(@strbuf)
timeout~
if(timeout)
ser.str(string("Nothing received.", 13))
Or just attach the Spin file, like you did before.
Also, what is your transmitter transmitting? Is it actually sending the "qwerty" that the receiver is waiting for?
-Phil
Yes I am sending qwerty string,
Now I take the modem_monitor.spin that had receiving and I modified to receive the data that I want and it work fine. to see it I am sending character to character to debug.
I have attached the modifications.
I still tryng to know what is wrong with the first programm.
modem_monitor_modificadopara_receiver_rlo.spin
RPLO
-Phil