Microchip
直播中

庄蒙少

7年用户 117经验值
私信 关注
[问答]

SMTPC模块和TLS无法正常工作

我使用的是和声1.10,试图让新的SMTPC模块在我的应用程序中正常工作。如果我设置跳过TLS标志,我可以使用Comcast电子邮件帐户发送电子邮件,没有问题。但是,如果我尝试使用TLS,在消息查询报告状态开始TLS通信之后,整个事情都会冻结。(TCPPIpSMTPC.MasaGeStAtgTLS)和我的意思是冻结整个应用程序硬。没有超时,甚至返回到我的AppStasks-()。在TLS关闭的应用程序中,一切似乎都很好。我还尝试了一个带有TLS ON的Gmail帐户,得到了完全相同的结果。我不能让Gmail在没有TLS的情况下工作,但我甚至不知道Gmail会在没有它的情况下工作。我只是不断地得到一个FROXY拒绝结果。有人能用TLS成功使用SMTPC吗?

以上来自于百度翻译


      以下为原文

    I am using HARMony 1.10 and trying to get the new SMTPC module working properly in my app.
I am able to use a comcast email account to send emails with no problem if I set the SKIP TLS flag. (TCPIP_SMTPC_MAIL_FLAGS = 0x0020)
However, if I try to use TLS the whole things freezes up after the message query reports  status starting TLS communication. (TCPIP_SMTPC_MESSAGE_STAT_TLS) and I mean freezes the whole app hard. Not timing out, or even returning back to my APP_Tasks().

Everything seems to work fine in the app with TLS off.

I also tried a GMAIL account with the TLS on and got the exact same result. I can't get gmail to work without TLS, though, but I don't know even GMAIL will work without it. I just keep getting a FROM_REJECT result.

Anyone able to use SMTPC successfully with TLS?

回帖(17)

陈晨

2019-4-19 12:25:22
感谢您的回复。我添加了WOLFSSL库(通过MHC),并使用了它的默认设置。以前从未使用过,所以我不确定是否需要修改这些设置。我已经启动了SNTP并验证了正在运行。即连接和获得有效的UTC邮票。也增加堆大小…几乎翻了一倍(在MHC项目配置XC32(全局选项))到目前为止,我的应用程序的行为没有变化。当我尝试做TLS时,它仍然锁起来。我启用了调试消息,结果发现在启动TLS之后,应用程序正在抛出下面的异常:“通用异常指令总线错误(原因=6,ADDR=0)”。

以上来自于百度翻译


      以下为原文

    Thank you for the reply.
I added the wolfSSL library (via MHC) and used it's default settings. Never used this before so not sure if I need to modify these settings.
I have SNTP up and verified to be running. i.e. connecting and getting valid UTC stamps.
Also increased the heap size ...nearly doubled (under MHC project configuration XC32 (Global Options) )
So far no change in the behavior of my app. Still locks up when trying to do TLS.
I enabled debug messages and it turns out the app is throwing the following exception right after starting TLS:
"General Exception Instruction bus error (cause=6, addr=0)"
 
 
举报

云达贞

2019-4-19 12:37:58
你能试试WebGyNETSkyVelnVMMMPFS演示应用程序吗?其中一个具有正确配置的WOLFSSL和TLS,很可能是某个配置问题。

以上来自于百度翻译


      以下为原文

    Can you please try the web_net_server_nvm_mpfs demo app?
That one has the wolfSSL and TLS properly configured.
Most likely is a configuration problem somewhere.
 
举报

陈晨

2019-4-19 12:46:30
我认为你是对的,但是,这个项目不容易在我的硬件上运行,所以我一直在尝试将它的设置与我的项目中的设置进行比较。我必须使用HTTP网络服务器而不是HTTP服务器只使用TLS来处理电子邮件吗?切换到Net Server意味着重写CuthyHutpJNET.App.c文件的一个主要代码端口。再次感谢。

以上来自于百度翻译


      以下为原文

    I think you are right but, that project doesn't easily run on my hardware so I've been trying to compare the settings in there to the settings in my project.
 
Do I have to use the HTTP NET Server versus the just the HTTP Server to have TLS work with emails only?
 
Switching to the NET Server means a major code port to rewrite the custom_http_net_app.c file.
 
Thanks again.
举报

云达贞

2019-4-19 12:57:27
不,我并不是想把你的项目切换到HTTPNET。我只是想检查一下,如果WOLFSSL被正确配置,你就有了TLS并运行。如果你没有ESK或者WebSynNETHyppServer演示很难在你的板上移植,那么另一种方法是比较SytSyCopig.h或m。HC文件在2个项目之间,检查是否遗漏了任何配置参数。检查WOLFSSL和NETYPURS符号,可能会发现一些不一致性。

以上来自于百度翻译


      以下为原文

    No, I didn't mean to switch your project to http_net.
I wanted just to check that if the wolfSSL is configured properly you have TLS up and running.
 
If you don't have a ESK or the web_net_http_server demo is difficult to port on your board, then another way is to compare the system_config.h or the .mhc files between the 2 projects and check if you miss any configuration parameters.
Check for WOLFSSL and NET_PRES symbols, maybe you spot some inconsistencies.
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分