Return-Path: <adamsgl@cinci.rr.com>
Delivered-To: craig@sbc-85.com
Received: from gator4254.hostgator.com
	by gator4254.hostgator.com with LMTP
	id EFVEJCjvu2b9RwwAcizydQ
	(envelope-from <adamsgl@cinci.rr.com>)
	for <craig@sbc-85.com>; Tue, 13 Aug 2024 18:41:28 -0500
Return-path: <adamsgl@cinci.rr.com>
Envelope-to: craig@sbc-85.com
Delivery-date: Tue, 13 Aug 2024 18:41:28 -0500
Received: from p-impout004aa.msg.pkvw.co.charter.net ([47.43.26.135]:33749 helo=p-impout004.msg.pkvw.co.charter.net)
	by gator4254.hostgator.com with esmtps  (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.96.2)
	(envelope-from <adamsgl@cinci.rr.com>)
	id 1se18q-003Rwm-0W
	for craig@sbc-85.com;
	Tue, 13 Aug 2024 18:41:28 -0500
Received: from GeorgeAdams ([74.131.139.95])
	by cmsmtp with ESMTPA
	id e18esWwt93EPte18eskgfY; Tue, 13 Aug 2024 23:41:17 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cinci.rr.com;
	s=c20240129; t=1723592477;
	bh=Yd68NPEy/Zjfx0s0cYTWpbVtXc9BzAVjJ3AEKwRgNz0=;
	h=From:To:References:In-Reply-To:Subject:Date;
	b=o1llCk05AbBHzjHBO3Bey8Lnt0tgEeLILgzNqhBKy5VeubWcih5Pn6zvUOeoAc+FI
	 5DjaQjVKlTJEMKIrpMjbuTRxMiI1+S32qZlw9yQQ2J+ssRE4Ev9ujk48LLFTPOE3Jc
	 Ua//OaajpM4316Pe8hXext3jqfVNEUp4/zPJaOZXW6cfRSV9Sw0ZGEMQ6JkcCZeHmY
	 /DPwVWWXzSeiKVIqjdjhl/s/I5H+eN1V7TbqbtJotTxC77/xmWPK/+OnWckAENk0fl
	 DmKO9TasxUIuzD2Fr1aOZ9bRKgEYin4zur+oW93v+HtLQDAFC7Iu51iflEPUmfUVmC
	 VytmAeul9EzYw==
X-Authority-Analysis: v=2.4 cv=OKQh3zaB c=1 sm=1 tr=0 ts=66bbef1d
 a=hl8TJCE9z2sxp+2MqBjxnA==:117 a=hl8TJCE9z2sxp+2MqBjxnA==:17
 a=DAwyPP_o2Byb1YXLmDAA:9 a=HjitWDSJAAAA:8 a=ayC55rCoAAAA:8 a=_6GpL_ENAAAA:8
 a=0Ljr-g5-bLXMg9Abc8MA:9 a=QEXdDO2ut3YA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8
 a=4d2D4LtiAAAA:8 a=WV7S0afn1iRKiOUlOKUA:9 a=Q7F_4NcDyq0q_R2s:21
 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10
 a=lqcHg5cX4UMA:10 a=IB1QFG2aBfq3amWdyr0s:22 a=hJnrvW8ITIrk0Oi8sSDQ:22
From: <adamsgl@cinci.rr.com>
To: "'SBC-85'" <craig@sbc-85.com>
References: <000001daed23$62c09f00$2841dd00$@cinci.rr.com> <5209BAA1-9E66-4716-B4D8-74439C17A39F@sbc-85.com>
In-Reply-To: <5209BAA1-9E66-4716-B4D8-74439C17A39F@sbc-85.com>
Subject: RE: Serial dongle code (2708-27256 version)
Date: Tue, 13 Aug 2024 19:41:15 -0400
Message-ID: <000c01daedda$4a905f80$dfb11e80$@cinci.rr.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000D_01DAEDB8.C37FF800"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQIfRzP/y5L7CXAUjo/7Y9tj52RJYQJUisTPsYp/BxA=
Content-Language: en-us
X-Antivirus: Avast (VPS 240813-6, 8/13/2024), Outbound message
X-Antivirus-Status: Clean
X-CMAE-Envelope: MS4xfK4qbPahZiBqeosEVBANYuRbRW5xEaMk6ACkcBALKyhv3Bc7I69dw2wLDRnrxMy/AXXBs34S8FNmBZqIc2ZI84XkKc5+lDZXpfpqNNYOUqUjoZv1Cd33
 BcfRRD7jbxDRwxgIgLcTBB9P+VyLEnCmanh6pLTWoJWC3+XplGA0t54vuOp2s7D+zeTy4DQMKFl+cA==
X-Spam-Status: No, score=-4.3
X-Spam-Score: -42
X-Spam-Bar: ----
X-Spam-Flag: NO

This is a multipart message in MIME format.

------=_NextPart_000_000D_01DAEDB8.C37FF800
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Craig,

 

I managed to work thru the code issue and found that the macro I have in th=
e CI routine was coded incorrectly. It was causing the transmit line to tog=
gle in the middle of the character input bit loop. (SOAH used for read at t=
he start, then mistakenly using SOAL in the bit_loop section, causing the p=
roblem.)

Code works as designed with no delay between the CI and CO routines at 2400=
 baud.

 

I used the code in the 2k prom serial adapter manual as a starting point, a=
nd made changes as required to deal with the stop bits.

 

Thanks for your suggestions on what to try/test.

 

Regards,

 

George

 

 

From: SBC-85 <craig@sbc-85.com> 
Sent: Monday, August 12, 2024 10:48 PM
To: adamsgl@cinci.rr.com
Subject: Re: Serial dongle code (2708-27256 version)

 

Hi George

 

I will look for this code and send it to you.  I thought I had code include=
d or at least snippets in the manual but maybe that was something else.

 

Do you have a hearty delay between characters? Maybe the stop bit and start=
 bit are too close for the terminal to delimit.  Or as you suggest, maybe y=
ou are inadvertently leaving the line asserted between characters when doin=
g a CO.  When doing CI, you should always be reading from the address that =
leaves the line idle.

 

If you do not have a logic analyzer, send one character and halt. Then meas=
ure the line with a scope or voltmeter to confirm it is idle.

Read one character and make sure the output is not toggling at all and is a=
lways idle.

 

If I don=E2=80=99t send the code, please remind me.

 

Regards

Craig

 

On Aug 12, 2024, at 6:52=E2=80=AFPM, adamsgl@cinci.rr.com <mailto:adamsgl@c=
inci.rr.com>  wrote:

=EF=BB=BF

Craig,

 

I finally got around to the 2708-27256 project and am having an issue with =
the code I have developed. When the dongle is only sending data to RS232, i=
t works with no issues. When I read a character from the dongle, and try to=
 write it back, I causes framing errors on the other end. I figured out tha=
t the CI routine I have written is the cause, but it works as designed and =
reads the correct character from the dongle. It doesn=E2=80=99t seem to pla=
y well with the CO routine. The stop bit seems to be the issue.

 

The code is written to read a character, write the character and loop over =
and over. The looping and calling the CI routine is causing the framing err=
ors.

 

I think this is due to my choices of high/low, idle/mark but have not had m=
uch success with changing these without breaking the code.

 

Any chance you could share the code you show in you show in your video #114=
 so I can see your method of reading and writing to the dongle?

 

Any help would be appreciated.

 

Regards,

 

George

 


 <https://www.avast.com/sig-email?utm_medium=3Demail&utm_source=3Dlink&utm_=
campaign=3Dsig-email&utm_content=3Demailclient> 

Virus-free. <https://www.avast.com/sig-email?utm_medium=3Demail&utm_source=
=3Dlink&utm_campaign=3Dsig-email&utm_content=3Demailclient> www.avast.com

 



-- 
This email has been checked for viruses by Avast antivirus software.
www.avast.com
------=_NextPart_000_000D_01DAEDB8.C37FF800
Content-Type: text/html;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><!--[if =
!mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Aptos;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal>Hi Craig,<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>I managed to =
work thru the code issue and found that the macro I have in the CI =
routine was coded incorrectly. It was causing the transmit line to =
toggle in the middle of the character input bit loop. (SOAH used for =
read at the start, then mistakenly using SOAL in the bit_loop section, =
causing the problem.)<o:p></o:p></p><p class=3DMsoNormal>Code works as =
designed with no delay between the CI and CO routines at 2400 =
baud.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>I used the code in the 2k prom serial adapter manual =
as a starting point, and made changes as required to deal with the stop =
bits.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Thanks for your suggestions on what to =
try/test.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Regards,<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>George<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-family:"Calibri",sans-serif'>From:</span></b><span =
style=3D'font-family:"Calibri",sans-serif'> SBC-85 =
&lt;craig@sbc-85.com&gt; <br><b>Sent:</b> Monday, August 12, 2024 10:48 =
PM<br><b>To:</b> adamsgl@cinci.rr.com<br><b>Subject:</b> Re: Serial =
dongle code (2708-27256 version)<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>Hi =
George<span =
style=3D'font-size:12.0pt'><o:p></o:p></span></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>I =
will look for this code and send it to you. &nbsp;I thought I had code =
included or at least snippets in the manual but maybe that was something =
else.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Do you have a hearty delay between characters? Maybe =
the stop bit and start bit are too close for the terminal to delimit. =
&nbsp;Or as you suggest, maybe you are inadvertently leaving the line =
asserted between characters when doing a CO. &nbsp;When doing CI, you =
should always be reading from the address that leaves the line =
idle.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>If you do not have a logic analyzer, send one =
character and halt. Then measure the line with a scope or voltmeter to =
confirm it is idle.<o:p></o:p></p></div><div><p class=3DMsoNormal>Read =
one character and make sure the output is not toggling at all and is =
always idle.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>If I don=E2=80=99t send the code, please remind =
me.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Regards<o:p></o:p></p></div><div><p =
class=3DMsoNormal>Craig<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><blockquote =
style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>On Aug 12, 2024, at 6:52<span =
style=3D'font-family:"Arial",sans-serif'>=E2=80=AF</span>PM, <a =
href=3D"mailto:adamsgl@cinci.rr.com">adamsgl@cinci.rr.com</a> =
wrote:<o:p></o:p></p></blockquote></div><blockquote =
style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><div><p =
class=3DMsoNormal><span =
style=3D'font-family:"Tahoma",sans-serif'>=EF=BB=BF</span><span =
style=3D'font-size:12.0pt'><o:p></o:p></span></p><p =
class=3DMsoNormal>Craig,<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p class=3DMsoNormal>I finally =
got around to the 2708-27256 project and am having an issue with the =
code I have developed. When the dongle is only sending data to RS232, it =
works with no issues. When I read a character from the dongle, and try =
to write it back, I causes framing errors on the other end. I figured =
out that the CI routine I have written is the cause, but it works as =
designed and reads the correct character from the dongle. It =
doesn=E2=80=99t seem to play well with the CO routine. The stop bit =
seems to be the issue.<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p class=3DMsoNormal>The code is =
written to read a character, write the character and loop over and over. =
The looping and calling the CI routine is causing the framing =
errors.<o:p></o:p></p><p class=3DMsoNormal>&nbsp;<o:p></o:p></p><p =
class=3DMsoNormal>I think this is due to my choices of high/low, =
idle/mark but have not had much success with changing these without =
breaking the code.<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p class=3DMsoNormal>Any chance =
you could share the code you show in you show in your video #114 so I =
can see your method of reading and writing to the =
dongle?<o:p></o:p></p><p class=3DMsoNormal>&nbsp;<o:p></o:p></p><p =
class=3DMsoNormal>Any help would be appreciated.<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p =
class=3DMsoNormal>Regards,<o:p></o:p></p><p =
class=3DMsoNormal>&nbsp;<o:p></o:p></p><p =
class=3DMsoNormal>George<o:p></o:p></p><div =
id=3DDAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D1 cellspacing=3D3 cellpadding=3D0 =
style=3D'border:none;border-top:solid #D3D4DE 1.0pt'><tr><td width=3D55 =
style=3D'width:41.25pt;border:none;padding:9.75pt .75pt .75pt .75pt'><p =
class=3DMsoNormal><a =
href=3D"https://www.avast.com/sig-email?utm_medium=3Demail&amp;utm_source=
=3Dlink&amp;utm_campaign=3Dsig-email&amp;utm_content=3Demailclient" =
target=3D"_blank"><span =
style=3D'font-size:12.0pt;text-decoration:none'><img border=3D0 =
width=3D46 height=3D29 style=3D'width:.4833in;height:.3in' =
id=3D"_x0000_i1025" =
src=3D"https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-r=
ound-orange-animated-no-repeat-v1.gif"></span></a><span =
style=3D'font-size:12.0pt'><o:p></o:p></span></p></td><td width=3D470 =
style=3D'width:352.5pt;border:none;padding:9.0pt .75pt .75pt .75pt'><p =
class=3DMsoNormal style=3D'line-height:13.5pt'><span =
style=3D'font-size:10.0pt;font-family:"Arial",sans-serif;color:#41424E'>V=
irus-free.<a =
href=3D"https://www.avast.com/sig-email?utm_medium=3Demail&amp;utm_source=
=3Dlink&amp;utm_campaign=3Dsig-email&amp;utm_content=3Demailclient" =
target=3D"_blank"><span =
style=3D'color:#4453EA'>www.avast.com</span></a><o:p></o:p></span></p></t=
d></tr></table><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></p></div></div></bloc=
kquote></div></body></html>
------=_NextPart_000_000D_01DAEDB8.C37FF800--

