Hello,
will there ever be a possibility, to send a SSL Mail from AVR over w5500?
Without that I have to use an Arduino?
BR
Katipefendi
↧
EASY TCP/IP : Send SSL Mail over W5500 : NEWTOPIC
↧
EASY TCP/IP : Send SSL Mail over W5500 : REPLY
If you think that a lib exist for W5500 in arduino you best use that. But i doubt it exist.
Just ask Wiznet about it.
While technically it can be done, it requires a lot of code. For this reason you do not see it on simple processors. I think only a PI will offer SSL.
↧
↧
EASY TCP/IP : Send SSL Mail over W5500 : REPLY
forgive him mark, he is young and has no idea :lol:
@Kati
schau dir mal die ssl libs an, damit du einen Eindruck vom Umfang bekommst.
Dann kannst du ja noch die Größe solch einer Lib ins Verhältnis zum Speicher vom ATMega und WIZ setzen und weißt bescheid.
↧
Share your working BASCOM-AVR code here : Sun position and Heliostat offset. : REPLY
JP,
WOW! Great work! Keep doing what you are doing. I will be looking closely at your code.
Thanks,
Dave
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
Then perhaps someone else will be interested in code for payment as I need to get this handled and am wasting too much time on it.
If anyone is interested, contact me at kenhorse3@gmail.com
↧
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:f0b16d63d2="KenHorse"]am wasting too much time on it.[/quote:f0b16d63d2]I do not want to embarrass you, but I was wondering about this simple problem and especially your resistance to listen to suggestions made me curios.
Had this code ready in really short time, which was due to Bascom's integrated functions.
Code works as I suggested, effective core code including plausibility check is 13 lines, overall code is 57 lines.
Bascom's functions DayOfWeek(), SysDay(), Date() were used and highly simplified the task.
I won't post the code, as a) I told you not to take money while in the same I'm not supposed to do your work and b) it would be unfair to anyone who offers you the paid service as you've requested.
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
Hi Ken,
i'm not sure, if i really understand your needs...
maybe this simplified code give you the right direction?
[code:1:d195149cc7]
Dim dw as Byte
Dim dn as bte
Dim dateArr(3) As Byte
dateArr(1) = 24
dateArr(2) = 7
dateArr(3) = 19
dn = _day / 7
incr dn
dw = DayOfWeek(dateArr)
print "Day " + str(_day) + " is the " + str(dn) + " of same and it is Day of week No.: " + str(dw)
[/code:1:d195149cc7]
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:5a68073014="six1"]i'm not sure, if i'm understanding you the right way...[/quote:5a68073014]
I for once understood him, he wants to provide
[code:1:5a68073014]Month = 7
Year = 19
DoW = 1 (Tuesday)
n'th DoW = 4[/code:1:5a68073014]
With this dasta my code puts out:
[quote:5a68073014]Requested 4. Tuesday is the 23.07.19[/quote:5a68073014]
In case of invalid n'th DoW
[code:1:5a68073014]DoW = Thursday
nt_dow = 4[/code:1:5a68073014]
my code spits out:
[quote:5a68073014]Requested 5. Thursday is invalid[/quote:5a68073014]
Your code does it exactly the other way around.
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
so, only to say: Mission accomplished , no matter in which direction 8)
↧
↧
EASY TCP/IP : I think, Config TCP is not confortable with W5500 : REPLY
Hello!
I use a wiz850 module for a simple tcp communication with servers. I did not mess any buffer settings or something. I only open one socket, establish tcp session and maintain it with periodical keep-alive packet or with a useful message.
Everything worked fine in known environment, but once brougth 7 such terminals to a real and rather unknown environment (a hotel resort on an island, 600km away....) , things went wrong
After a short period (1 to 5 hours), practicaly all of 7 terminals start to loose connection, with wiz850 modules being 'hanged'. Even ping respons was not possible. And usually w5500 was overheated, causing several power supply failures.
Once, without known reason, I was able to 'reach' such state even in a lab. I was not able to hold a finger on a w5500 chip (also onboard switcher was very hot, but was still maintaining 3.3V)
I read a lot about problems with w5500, even that isue with a controversial inductor between AGND and DGND.
In the mean time, all 7 terminals were removed from the project /location.
About the inductor - indead, some older, and I think even some newer original Wiznet modules do not have that inductor - both AGND and DGND are directly connected!
A few days ago, I put two termnals back on my desktop, and have removed that particular inductor. I'm not sure jet, but at least one terminal, that is non-stop powered on, after a 24 hours it still works fine.
I will try to reduce my Bascom code to the minimum, and then I will attach it to my post.
Oh, another thing - during that situation with 7 terminals at the location, I was able to get an access to a laptop with a Wireshark, connected to same network. I saw, the network was very messy - ful of TCP sequence errors and lot of Multicast traffic. I do not remember the exact address, but it was a video broadcast traffic.
I was able to simulate this multicast traffic simply with video broadcast option in VLC program at home network. And w5500 did not crash...
Hope I was not to long... :)
Best regards
Andrej
↧
EASY TCP/IP : I think, Config TCP is not confortable with W5500 : REPLY
one important thing : each module need to have its own MAC address.
When the module get hot it is likely that there is some flaw in the hardware or even the chip.
First thing you want to be sure of : use genuine products. Ask the vendor for a certificate.
I once tried to speed up a project by ordering chips from aliexpress. they looked ok but all devices got problems and they turned out to be fake.
you can also ask wiznet about it. i used all their chips without problems. the w5500 i did not used in project however. (the old ones work still ok)
↧
EASY TCP/IP : I think, Config TCP is not confortable with W5500 : REPLY
Hi,
MAC addresses are ok. (also the MSB octet an even number).
Modules were bougth at TME ( [url]https://www.tme.eu/si/sl/details/wiz850io/ethernet-moduli/wiznet/[/url] ) and I belive, they are all genuine. Yes, I tried also some aliexpress modules - they seem to be fake indeed (I was not able to make them run).
Best regards
Andrej
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:eef150dffe="six1"]so, only to say: Mission accomplished , no matter in which direction[/quote:eef150dffe]
Did you notice that you had a time where your posts were higher quality? :D
↧
↧
EASY TCP/IP : I think, Config TCP is not confortable with W5500 : REPLY
in any case, when the module gets hot, it is not a bascom issue. you best contact wiznet support and check wiznet forum. most modules have some glitches so check the errata as well. When the modules gets too hot, outside the specs and stop working, it must be some hardware problem, unless they have a register to control the temperature for operation during winter ;-)
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
what else we could discuss, without a statement from KenHorse?
problem is enlightened in both directions, old grumbling bear...
:lol:
↧
BASCOM-AVR : SD read/write error : NEWTOPIC
I am saving backup data to an SD card, but from time to time - like once a month- I get a situation where I cannot read the card.
Here is an excerpt of the code. Full code is 8000 lines.
Err 241 is "cpErrDriveRead1" and I have no idea what that means, or more importantly, why it is happening or how to recover from it.
I don't have the hardware to cycle the SD card 3.3 power supply, which has its own regulator and 2 bypass caps a 0.1 and a 1000uF, close to the sd socket. I'm using Toshiba micro SD.
[code:1:b99134de45]
'*******************************************************************************
$regfile = "m1284pdef.dat" 'my processor
$crystal = 9830400 'system crystal
$framesize = 800
$hwstack = 550
$swstack = 550
$frameprotect = 1
stop watchdog
do
.code
.
.
$include "config_mmcsd_hc.bas"
.
.code
Print #1 , ">> internet or server didnt respond.Saving data to SD"
Sd_fault = Check_sd_card()
If Sd_fault = 0 Then
Print #1 , ">> creating SD folders"
Call Savecopy_of_data_to_sdcard()
Else
Print #1 , ">> Data lost,can't access SD card"
End If
.
.
. lots more code
.
.
loop
'***********************************************************
Function Check_sd_card() As Byte
'added cache dir at end because if its not there, dir*.* will
'give "." as a file name
'Sequence is correct, but should call driveinit() and initfilesystem(1)
'whenever a card is hot swapped.
Local Retries As Byte
Local Sd_fault As Byte
Retries = 0
Sd_fault = 0
$include "config_mmcsd_hc.bas" 'set up the high capacity SD card comms
Do
Incr Retries
Call Timedelay_ms(2000) 'Wait 2 for SD to power up
#if Pi_motherboard = 0
If Sd_inserted = 1 Then
Print #1 , ">> no SD"
Sd_fault = 1
exit sub
End If
#endif
Print #1 , ">> SD Card Type = " ;
Select Case Mmcsd_cardtype
Case 0 :
Print #1 , ">> can't init the Card - check smd settings"
Sd_fault = 1
Case 1 : Print #1 , ">> MMC"
Sd_fault = 0
Case 2 : Print #1 , ">> SDSC Spec. 1.x "
Sd_fault = 0
Case 4 : Print #1 , ">> SDSC Spec. 2.0 or later"
Sd_fault = 0
Case 12 : Print #1 , ">> SDHC Spec. 2.0 or later"
Sd_fault = 0
case else
Print #1 , ">> unknown/card missing"
End Select
Call Timedelay_ms(2000) ' Wait 2
Tempb = Driveinit() 'call drivinit()
If Gbdriveerror = 0 Then
Print #1 , ">> SD drive OK. Reading size...."
$include "config_AVR-DOS.BAS" 'help says include is only done once even if called multiple times
Sd_fault = 0
Else
Print #1 , ">> Error during Drive Init: " ; Gbdriveerror
Sd_fault = 1
End If
Tempb = Initfilesystem(1)
If Tempb <> 0 Then
Print #1 , ">> Error: " ; Tempb ; " at Init file system"
Sd_fault = 1
End If
' Lfree = Diskfree() 'CAUTION This takes a long time. Start watchdog afterwards
' Start Watchdog
' print #1 , ">. free memory =" ; Lfree
If Sd_fault <> 1 Then
Print #1 , ">> SD card OK"
Print #1 , ">> Filesystem: " ; Gbfilesystem
Print #1 , ">> FAT Start Sector: " ; Glfatfirstsector
Print #1 , ">> Root Start Sector: " ; Glrootfirstsector
Print #1 , ">> Data First Sector: " ; Gldatafirstsector
Print #1 , ">> Max. Cluster Number: " ; Glmaxclusternumber
Print #1 , ">> Sectors per Cluster: " ; Gbsectorspercluster
Print #1 , ">> Root Entries: " ; Gwrootentries
Print #1 , ">> Sectors per FAT: " ; Glsectorsperfat
Print #1 , ">> Number of FATs: " ; Gbnumberoffats
Print #1 , ">> Inititialise retries:" ; Mmcsd_try
Print #1 , ""
Print #1 , ">> AVR-DOS_Config Settings"
Print #1 , ">> " ; Cfilehandles ; " File-Handles (cFileHandles = " ; Cfilehandles ; ")"
Print #1 , ">> Directory and Fat handled in " ;
#if Csepfathandle = 1
Print #1 , ">> different buffers";
#else
Print #1 , ">> same buffer";
#endif
Print #1 , ">> (cSepFATHandle = " ; Csepfathandle ; ")"
Print #1 , ">> Directory and Fat Information of a File saved "
#if Cfatdirsaveatend = 1
Print #1 , ">> only at Flush and Close"
#else
Print #1 , ">> at every Data Sector" ;
#endif
Print #1 , ">> (cFATDirSaveAtEnd = " ; Cfatdirsaveatend ; ")"
Lsize = Disksize()
Print #1 , ">> Card size " ; Lsize ; " kB"
Print #1 , ""
End If
Loop Until Retries > 5 Or Sd_fault = 0
if sd_fault = 0 then
Chdir ""
Mkdir Cachefoldernamestr
end if
Check_sd_card = sd_fault '0 = no fault. 1 = fault
End Function
'***********************************************************
[/code:1:b99134de45]
When the code fails, my debug say this:
[quote:b99134de45]
>> internet or server didnt respond.
>> Saving data to SD
>> SD Card Type = >> SDSC Spec. 2.0 or later
>> SD drive OK. Reading size....
>> Error: 241 at Init file system
>> SD Card Type = >> SDSC Spec. 2.0 or later
>> SD drive OK. Reading size....
>> Error: 241 at Init file system
>> SD Card Type = >> SDSC Spec. 2.0 or later
>> SD drive OK. Reading size....
>> Error: 241 at Init file system
>> SD Card Type = >> SDSC Spec. 2.0 or later
>> SD drive OK. Reading size....
>> Error: 241 at Init file system
>> SD Card Type = >> SDSC Spec.2.0 or later
>> SD drive OK. Reading size....
>> Error: 241 at Init file system
>> SD Card Type = >> SDSC Spec. 2.0 or later
>> SD drive OK. Reading size....
>> Error: 241 at Init file system
>> Data lost,can't access SD card <<<<<<<<<<<<<<<<<<<<<<<<<<< THIS IS THE PROBLEM
>> battery =13.15
[/quote:b99134de45]
[b:b99134de45][color=red:b99134de45](BASCOM-AVR version : 2.0.7.9 , Latest : 2.0.8.1 )[/b:b99134de45][/color:b99134de45]
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:a60ccdaeea="six1"]what else we could discuss, without a statement from KenHorse?[/quote:a60ccdaeea]
He already has made this statement:
[quote:a60ccdaeea]Now, suppose I want to know the date of the 3rd occurrence of a Tuesday of a given month?[/quote:a60ccdaeea]
Additional btw. it's in the topic.
As Kenhorse likes to shoot the horse from the back into the eye, his first questions went away from that, most likely as he thought his exact problem can be solved by solving a loose connected question.
This also came clear so far, and would have become obvious to you, if you would have actually read the thread, you may have avoided your reflex post then. However, as it went, it is the old story of a discussion already carving out a solution, only by someone finally smartassing what already was closed out.
That's why I wrote you had better times.
↧
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
"Everything was said, but not by everyone" :lol:
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
Please stick to the topic. You have the option to post or not. A post should be intentionally helpful and about the code/problem.
↧
BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
It is really obvious that everybody else with the same attitude as MWS would have been banned from this forum is this the BABY of MCS? The Guy does nothing to his help but insult people. Is this the meaning and value of this website and understanding? If somebody like that is in the free trade, forget it.
Just my opinion. Some respect for other people would be a requirement to public communication. If such a person can not do that, then I think, that person is not fit for communication with public life. Specialist not, if you are an "A", then stay away. And mostly MWS you are.
Hubert
↧