Robert,
From where do you receive the 5 digits?
(Terminal program > Serial port)?
Luciano
Robert,
From where do you receive the 5 digits?
(Terminal program > Serial port)?
Luciano
Hi Luciano,
Yes, and no. Yes from the serial port, no from the terminal program, kinda. I'm using an RS232 chip into COM1. I'm using the serial window in IDE 'cause it's the only way I can transfer data down to the PIC. The reception variable is defined as VAR BYTE[5].
You probably know my opinion of HyperTerminal if you read my post in the other thread. LOL I'm trying RealTerm, but I don't know what I have to set. I get the COM1 8N1 thing done, but I must be missing other key parameters 'cause I can't get it to work.
My goal is to download a file in one instruction. Right now I'm sending parts of a record at a time manually. Good for testing, bad for final implementation. I have 2 sequential HSERINs for now:
HSERIN recordtype
IF recordtype = bla-bla-bla
HSERIN recordformat
ENDIF
When I send "recordtype-recordformat" in one SEND, it doesn't work. I'm still trying to figure what I'm missing. I can send both separately, but I can't chain them in a single string and have the program treat data section by section.
The plan is to add several other formats, and have them processed depending on the record type prefix. I'm still learning serial communication so I can quite easily have flaws in my approach. This works on main frames, but I'm not in Kansas any more.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Hi Robert!
The following will also work.
========================================
Pseudo-Code:
ee_address VAR WORD
SERIN2 RxPin,84,[DEC5 ee_address]
========================================
Type the decimal number 62347 in
your PC terminal program.
After receiving the 5 ASCII bytes
the SERIN2 command will store the
decimal value 62347 in the
variable ee_address.
See PBP manual for SERIN2 modifiers, works
also with command HSERIN and HSERIN2.
Luciano
Uhhh, so you're saying I'm doing this conversion for nothing?
Robert
LMAO!
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Indeed dude.Uhhh, so you're saying I'm doing this conversion for nothing?
go to 'pin' tab then uncheck RTS and DTR... you'll be in business. Chances are because you're using an ICD adapterI'm trying RealTerm, but I don't know what I have to set. I get the COM1 8N1 thing done, but I must be missing other key parameters 'cause I can't get it to work.and those pins force your chip to reset.... that's it IMHO. OR you type in text box... you can send number
pretty sure HSEROUT is not working also ?!?
you may need 1 or 2 extra flow control pin for that to avoid dumb or messy download. 1 to tell the pic you're going to receive data, one from the pic to the PC to confirm you receive a byte and you're ready to receive another.My goal is to download a file in one instruction. Right now I'm sending parts of a record at a time manually. Good for testing, bad for final implementation.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks, but oh poop...
I guess I'm not finished getting this darned RS232 download to work if I'm a couple pins short.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks