View previous topic :: View next topic |
Do you like SUSI project? |
What are you working on??? |
|
6% |
[ 1 ] |
Hard to understand, not enough information available! |
|
13% |
[ 2 ] |
Didn't own Hardware, but using parts of Software from SUSI |
|
13% |
[ 2 ] |
Using the SUSI Project |
|
53% |
[ 8 ] |
Made own Driver for SUSI Project |
|
13% |
[ 2 ] |
|
Total Votes : 15 |
|
Author |
Message |
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Wed Mar 28, 2012 1:46 pm Post subject: The "SUSI" Project |
|
|
[Software Download at the end of this article]
Code: | 2013-01-31 Version 5 Total Support of WIZ200WEB with external serial flash
faster, Webradio with the 8MHz (original) Version of the WIZ200WEB
2013-01-24 Bugfixes in HTTP
2013-01-25 last REV in Version 4 fixed Basic Auth, Admin.exe, ESF Rotines. ESF now supports Directory for Files
|
Hi there,
first off all: i didn't found a pregnant name for the "Kit" i've done. So MAk3 was thinking about and the output was: Six1 Universal Software Interface
The Idea behind
the bad thing is, that one is programing always same or nearly identical code for new projects, but already had done this work in different projects before.
So i decided to design "SUSI". SUSI is decoupling Software and Hardware. That is what Microsoft called "HAL" a Hardware abstraction Layer.
So the most new in this project is, that different Hardware has it's own Drivers but same Call's in software!
In Time SUSI isn't that perfect, but it works with different Hardware on different Micro's. It was a hard way to this point and i'm not able to do the whole work by myself. Hope MAK3 will help in future
what's working at time:
Mega128 with W5300 Ethernet chip (WIZ200 Unit)
Webserver with HTTP, NTP, DHCP, SMTP, MYSQL, SDCARD, and much more
XMEGA128a1 ALVIDI Board
from User Setup:
Code: |
'Data_source = 1 --> SRAM
'Data_source = 2 --> SD-Card
'Data_source = 3 --> VDIP-1
Const Data_source = 2
Const Storage_device_debug = 0
Const Display_type = 10
'for Hardware settings have a look at "\Driver\DisplayDevice\xxxx_declarations.inc
'0 = no Display
'1 = std. 16x2 LCD
'2 = LCD 16x2 PC1602E on I2C with Bascom Commands!
'10 = Ili9320
'11 = SSD1963
Const Ethernet = 1
'for Hardware settings have a look at "\Driver\NetworkDevice\xxxx_declarations.inc
' Hardware 1 = W5100
' Hardware 2 = W5200
' Hardware 3 = W5300
Const Eth_hardware = 2
Const Eth_http_server = 1
Const Eth_http_anti_piracy = 1
Const Eth_remote_setup = 1
Const Eth_ntp = 1
Const Eth_dhcp = 0
Const Eth_smtp = 1
Const Eth_mysql = 0
Const Eth_webradio = 1 '=1 <-- you must include VS1053 Decoder
'for setting up network parameter
' have a look at Ethernet.inc/Eeram_setup_network_first()
Const First_time_network_setup = 0
Const Mp3_decoder = 1
Const Mp3_spectrum_analyser = 0
'0 = off
'1 = VS1053
Const Camera = 0
'0 = off
'1 = C328R
|
Making a Webserver runing with SUSI, the MAIN is like this
Code: |
do
#if Ethernet = 1
Call Ethernet_services
#endif
Loop
End
|
isn't that easy?
a little Video from Webserverwith Webradio and Spectrum Analyzer compiled with SUSI
the concept behind
will be continued...
!!! MYSQL Changes Bascom 2.0.7.7 and above http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11766 !!!
Latest SUSI SOFTWARE _________________ For technical reasons, the signature is on the back of this message.
Last edited by six1 on Wed Aug 21, 2013 2:21 pm; edited 12 times in total |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Wed Mar 28, 2012 11:10 pm Post subject: |
|
|
This is great, modular code for bascom will make it even more powerfull. Are you going to sell this (I think you should in the 7 to 10 EURO range) even if its through mark just to further bascom development and to get you a few more beers! Also the the one thing that is lacking at the moment is the full hardware driver for the ENC28J60 my skills are not good enough yet to do this but I can see money to be made from doing so, both this and the wiznet devices are the most prevelent hardware avaliable for a low price. The ENC28J60 comes in a package that is able to be hand made by people and the cost can be as small as $15AU (11EURO) where the wiznet chip is just too hard to solder and the full module here costs around 50 to 60 dolars where as the board with the ENC28J60 is around 25 dolars (both include transport to door). Also this modular type of program set up is why I feel the project format now avaliable in bascom shows so much promise.
I will be following with great interest.
Regards Paul |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Mar 30, 2012 10:47 pm Post subject: |
|
|
I have seen the code and concept and it is great indeed. You can change processor and hardware simple and all you need to do is make some changes to a config file.
I hope others will contribute. In any case i can recommend users to study the code when it is released.
Thanks for the video, it looks just great. The sound was not so good but i do not know if that was in the recording or in the broadcast. (or my video player). The equalizer with buffer finishes it. _________________ Mark |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Thu Dec 27, 2012 12:59 pm Post subject: |
|
|
Hi,
a long time without news from the SUSI Project; i know. Because of the fact, that i haven't had much time in the last few month, i wasn't be able to do anything on this project.
It Isn't ready by now, but it is in working stage, so i decided to publish SUSI at this stage of project.
If you havn't the Hardware i have used, or you never want to use the Project in it's total size, so you can also have a look at the CLASSES Folder to get impressions of it or use Parts for your own Projects.
In the Folder DRIVER you can find a lot of Code for Display, USB, WIZNET and much more.
My Test Environment in first order was the WIZ200 Modul and a ALVIDI XMega Board connected to ILI9320 Display, VINCULUM-VDIP-1 USB Master, VS1053 MP3 Decoder, WIZ820IO all mounted on a Prototyping PCB
The SUSI Project did NOT use the new WIZNET Functions inside BASCOM. BEcause of the Fact, that the whole Stuff is very complicated, specialy all the UDP and TCP things must work all together at same time, my routines doing this sometimes in different way than Mark's routines.
One Sample to get an idea, of what i'm talking about:
For Webradio Streaming you must load Data into a Ringbuffer. When Ringbuffer is full, you have to send the ACK for a tcp package if Ringbuffer is able to take data from next tcp package. This isn't possible with new Bascom Routines from Mark, but this is such a special function, that it makes no sense to include this for normal Bascom usage; in my mind.
So i decided to work with my own Routines inside the SUSI Project. To mix my own functions with Mark's ones isnt that clever, because you have to do INIT the WIZ Units for work with Mark's Functions, with Mark's INIT functions. This will end up in a little desaster
Hope the SUSI Project will give you new Ideas, a little Help or only gives you new fantasies on what is possible with BASCOM.
My special thanks go to Mark, who always has an open ear for me when something does not work or needs to be implemented.
Best, Michael
you can see Webserver with SUSI Software running @ http://six1.webhop.net/ _________________ For technical reasons, the signature is on the back of this message.
Last edited by six1 on Sat Jan 19, 2013 3:12 pm; edited 5 times in total |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Dec 27, 2012 1:25 pm Post subject: |
|
|
hi Michael,
Thanks for sharing your project. I can only recommend others to have a look at it. there is a lot of good clear written code for various hardware.
A pity you do not have more time, but i know you can only spend your time once. These kind of projects need support from multiple users. Maybe we can see some useful extensions in the future
_________________ Mark |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Fri Jan 11, 2013 1:48 pm Post subject: |
|
|
News from SUSI
i've spend a little time on the SUSI Project. Michael from german Bascom Forum was a great help for me!
new things:
-UDP WEB setup is now faster, because i filled up the ethernet packages with not just one Block for external serial flash write
so up to 5 Blocks are fitting in one UDP package
-same as above for new system upload
-VS1053 MP3 Modul is playing MP3 (with original! 8MHz WIZ200 Modul)
-Webradio with 128 KBit/sec is now running with 8MHz WIZ200 Modul! Settings for Volume, Bass, Trebble and station tuning is done
over Webpage!
Webradio was running before on XMEGA or WIZ200 @ 16MHz, so the very good news is, that all is working on 8MHz WIZ200
a few minor bugs had to be fixed, then i will publish new code.
best, Michael _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Jan 11, 2013 4:55 pm Post subject: |
|
|
nice that it works at 8 MHz for WIZ200 too.
seems good progress, considering you had little time _________________ Mark |
|
Back to top |
|
|
MAK3
Joined: 24 Sep 2010 Posts: 449 Location: Germany
|
Posted: Sat Jan 12, 2013 11:14 am Post subject: |
|
|
Quote: | Webradio was running before on XMEGA or WIZ200 @ 16MHz, so the very good news is, that all is working on 8MHz WIZ200 Very Happy |
Keep up the great work !
MAK3 |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Sun Jan 13, 2013 1:54 pm Post subject: |
|
|
UPDATED VERSION OF THE SUSI PROJECT YOU CAN FIND ON TOP OF THE THREAD! _________________ For technical reasons, the signature is on the back of this message.
Last edited by six1 on Mon Aug 26, 2013 9:28 am; edited 1 time in total |
|
Back to top |
|
|
mmarlette
Joined: 30 Nov 2007 Posts: 311 Location: Delano, MN
|
Posted: Sun Jan 20, 2013 4:09 pm Post subject: |
|
|
This looks like a great topic for a 'white paper' or an application note.
I know, a lot of work, but looks like you already have done a ton of work.
A single detailed document beyond what is contained in this thread. ??
Maybe Mark could include with distribution??
Looks GREAT! |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Wed Jan 23, 2013 4:34 pm Post subject: |
|
|
Hi,
as i can read from survey, some of you wanted to get more information about... about what exactly do you need more information? _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Thu Jan 31, 2013 8:05 pm Post subject: |
|
|
Update Ver 5 _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Jan 31, 2013 9:57 pm Post subject: |
|
|
thanks for the update. It is fantastic.
What mmarlette probably/maybe means (but he can best explain himself) is a short document which describes in short the functionality and how to use it in an own app.
And how to extend. _________________ Mark |
|
Back to top |
|
|
mmarlette
Joined: 30 Nov 2007 Posts: 311 Location: Delano, MN
|
Posted: Thu Jan 31, 2013 11:15 pm Post subject: |
|
|
@markA- Yes that was it, a simple app with white paper / application note.
@six1- I have a project that I am going to wrap of this weekend. I am going to convert to this format and give it a try. If all goes well I will then commit to my mercurial repository. Was looking over the code, very nicely done. As I do a lot of hardware design and pwb layout, having a DOCUMENTATION directory within each of the devices would be nice. That way all the information, datasheets, manuals, code is all under that device.
Commonality is good and this is a great structure to apply. Going back to digest some more.
How does the collaboration of different devices get incorporated in to SUSI? Do you envision this or is this just your baseline distribution for each user to customize to their particular needs?
Thanks!!!!
Mark |
|
Back to top |
|
|
mmarlette
Joined: 30 Nov 2007 Posts: 311 Location: Delano, MN
|
Posted: Thu Jan 31, 2013 11:53 pm Post subject: |
|
|
Lastest release of ____SUSI_5_0.zip
From the X_ALVIDI_six1.bas file.
Code: |
Const Ethernet = 1
'for Hardware settings have a look at "\Driver\NetworkDevice\xxxx_declarations.inc
' Hardware 1 = W5100
' Hardware 2 = W5200
' Hardware 3 = W5300
Const Eth_hardware = 2
Const Eth_use_int = 0
|
Driver/NetworkDevice directory, where is the W5100? |
|
Back to top |
|
|
|