[Modpack] Digiline Stuff [digiline_stuff] - digiline devices

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

I HAVE AN IDEA: a new digiline-based protocol made specifically for memory chips. Something like i2c.
Should I call it "mt_I2C"? :)

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by programmingchicken » Post

m2t
<gamerdude> I apologize for the above content

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

programmingchicken wrote:m2t
+1

COMING SOON IN MINETEST: M2T bus and dedicated chips (memory, multiplexers, expanders...)

And the Arduino killing luacontrollers? :)

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by rubenwardy » Post

The keyboard does not send on a channel, I get this when doing print(event) in the lua controller:

Code: Select all

{
	type = "digiline",
	msg = "sdsdsd",
	channel = ""
}
The problem is here:

Code: Select all

  on_receive_fields = function(pos, formname, fields, sender)
    local meta = minetest.get_meta(pos)
    local channel = meta:get_string("channel")
    if fields.channel then
      meta:set_string("channel")    -- <---     this line
      meta:set_string("formspec", "field[text;Enter text;]")
    elseif fields.text then
      digiline:receptor_send(pos, digiline.rules.default, channel, fields.text)
    end
You meant to do meta:set_string("channel", fields.channel)

pull request: https://github.com/jogag/digiline-stuff/pull/1
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

rubenwardy wrote:pull request: https://github.com/jogag/digiline-stuff/pull/1
Thanks for posting it, I merged it. I also updated my local code.
And I'm still working on the complicated ESP8266s in the IoT mod.

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by programmingchicken » Post

jogag wrote:
programmingchicken wrote:m2t
+1

COMING SOON IN MINETEST: M2T bus and dedicated chips (memory, multiplexers, expanders...)

And the Arduino killing luacontrollers? :)
lol see what i did there?
mine2test hrhrhhrhrhrrhr
<gamerdude> I apologize for the above content

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

I will post the JTAG debugger/programmer today.
It can:
  • Get hidden parameters of a luacontroller, such as the temporary ID
  • Read, write and delete the lua code on a luacontroller
  • Reset the controller
  • Burn it!!!
To use it, simply connect it via digiline to a luacontroller or LCD + keyboard :) or a fancy CRT screen
Supported commands are:
  • CONNECT - connects to the luacontroller
  • DISCONNECT - disconnects the attached target
  • RUN [event lua table] - resets the luacontroller with optional event
  • GET_ID - gets the temporary ID, warning: this changes if you change the code
  • READ - reads the lua code
  • WRITE <code> - changes the lua code
  • ERASE - deletes the lua code
  • MEM_READ - reads the mem variable
  • MEM_WRITE <lua table> - changes the mem variable
  • MEM_ERASE - sets the mem variable to {}
The programmer is useful if you want to remote-program a controller with digiline or (coming soon) wifi.
Or if you want to make 100% automated clock factory! :D

PS: I will also upload the CRT screen mod!

EDIT: I forgot, you have to place the luacontroller in front of the JTAG, on the small connector. Then you have to send "CONNECT". If the led turns green, the target controller was connected. WARNING: do not dig or right-click the target chip while the led is green! Send "DISCONNECT" first.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

Sorry it took so long, but I've been experimenting with Mesecons lately and built a password protected door:

Image

Image

Image

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

I made my door slightly more compact...

Image

Image

Image
No more Light telling me when I can unlock the door!

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

Did you used a delayer-based timer in the first version?
It's not reliable... it stops after a game restart...
Why did you don't use red plants, they generate an interrupt every 3 seconds!
And why do you need a hardware timer?

Here's my improved code, it does not need any hardware timer.
Port D is used as alarm output if the password is wrong.

Code: Select all

digiline_send("keyboard","Please enter password:") -- change keyboard message
if event.type=="interrupt" then -- timer expired
  port.c=true -- close door
  port.d=false -- disable alarm output
elseif event.type=="digiline" and event.channel=="keyboard" then
  if event.msg=="password" then
    -- correct password
    digiline_send("printer","Log: correct password") -- adding timestamp with RTC?
    port.c=false -- open door
    interrupt(5) -- schedule closing after 5 seconds
  else
    -- wrong password
    digiline_send("printer","Log: wrong password "..event.msg) -- also include wrong password
    port.d=true -- output alarm signal
    interrupt(3) -- schedule alarm off after 3 seconds
  end
end
Sorry for the very long while waiting for JTAG, I'm doing heavy bugfixing...
(And working on Javascript and Lua for my DIY embedded system in a cardboard box... basically a luacontroller in real life, and kept in a cardboard box together with crappy LCD monochrome display, 4x4 keypad, Wi-Fi chip and some batteries).

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

It currently does not need a hardware timer, it simply closes the door after 10 seconds using an interrupt.

I have also since added LCD screens (as seen on the "Post Your Screenshots" thread.

I want to improve it further (e.g. by adding a timestamp and maybe a piston to punch the paper out from in from of the printer)

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

I'm working on something more interesting: a fully automated digital clock factory!
It takes your orders via digiline and make a clock as you want (you can customize light colors and the base material, and even add a custom alarm!) It programs the luacontrollers with my JTAG programmer mod (still in alpha -- I will add it to digiline stuff when fixed) and assembles everything by taking materials from chests and putting them together with pistons. It's very complicated (and glitchy)!
I will post the map and some screenshot when finished.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

That sound cool! When I "finish" my door I'll post the .we and code for the Luacontroller.

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

The same for my JTAG and the clock factory. It consists of four parts: the stocking unit, with chests for luacontrollersand materials, the programming factory that programs several luacontrollers with the display drivers and the timekeeping program, the factory assembling the clock and the remote terminal to order (it's connected with a digiline bus).
The clocks are built like this.

User avatar
jan6
Member
Posts: 64
Joined: Wed Dec 02, 2015 17:58
GitHub: jan69
IRC: jan6
In-game: jan6
Location: Estonia

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jan6 » Post

i'll be really happy when digiline command blocks are avaiable...also a handheld keyboard would be cool too (this pack is really useful,i don't have to use luacontroller for everything anymore :) )
I know everything, exept what I know...
I have a secret..it's so secret even I don't know what it is

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

Perhaps some kind of a PiDA (See what I did there?) aka a Digiline PDA, that you could use for multiple things (Time, Lua, Digiline and Mesecons signals, Sending messages to other LiSA's wirelessly, etc.)

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by programmingchicken » Post

Digilines is the future. Digiline Stuff is the futuristic future.
Minecraft is the now....
#REKT
<gamerdude> I apologize for the above content

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

I'm not sure about digiline command blocks.
They are easy to make, but there are security issues:
  • Minetest allows executing commands only by players
  • unlike Minecraft that has a special safe "bot" used by command blocks
  • Mesecon command blocks are locked and only the owner can change commands
  • but anyone can connect to a digiline and send any command
  • and it will be executed with the privs of the player "owning" the command block
This allows e.g. someone to connect to some admin-owned command block and send /ban or do other unwanted thing with the admin's privs (worldedit, give special tools, delete areas, shutdown). This will open big issues everywhere.

Then should I add digiline command blocks?

User avatar
jan6
Member
Posts: 64
Joined: Wed Dec 02, 2015 17:58
GitHub: jan69
IRC: jan6
In-game: jan6
Location: Estonia

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jan6 » Post

if they are so insecure then maybe you don't need to add them ... Commands need to be changed by owner that's one sure thing(maybe some sort of hidden keyboard that is obtainable only by /give or a special privilege that can change commands),otherwise it would be way too easy to break the world...
maybe a separate package/mod for it so that if you want,then you enable/install it

also another idea: what about something computer-like that can send a message and display/recive another message at the same time(so i don't have to type a message,look at lcd for response,type another one etc. also, i have to aim quite accurately to use keyboard as it's much smaller than other things),would be useful for controlling systems
I know everything, exept what I know...
I have a secret..it's so secret even I don't know what it is

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

About the screen + keyboard set, there is a mod that has one, but I can add it anyway.
However I'm busy these days in building a javascript computer and other things with chips, including luacontrollers in real life.
I will add it when I can.

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

I'm still alive, but pretty far from Minetest. Moved to 8-bit chips (= Arduino) and some small mods for Minetest (= elytra mod without 3D models).

Most important thing in development:
Image
(Yes, it's a bit off topic...)
Attachments
jOS.png
jOS.png (2.33 KiB) Viewed 971 times

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

Cool!

I made a tutorial using your mod: https://www.youtube.com/watch?v=_s9CVFaw1eI

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

benrob0329 wrote:Cool!

I made a tutorial using your mod: https://www.youtube.com/watch?v=_s9CVFaw1eI
:D
Wow, my work is on YT!!!

Software update to my cardboard-PC and a new mod for Minetest: a fork of the computer mod that adds handheld games and cardboard computers. Releasing it today.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by benrob0329 » Post

There is a bug with the Digiprinter where it can't be mined because it has paper in it, but you can't take the paper out.

User avatar
jogag
Member
Posts: 106
Joined: Wed Aug 12, 2015 18:32
GitHub: jogag
IRC: jogag
In-game: jogag
Location: Online

Re: [Modpack] Digiline Stuff [digiline_stuff] - digiline dev

by jogag » Post

There was also a bug in the cardboard computer mod, and there's a bug in the circuit diagram in this topic. Everything is buggy...

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 29 guests