[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

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

by jogag » Tue Sep 01, 2015 14:17

benrob0329 wrote:BTW you have the printer inventory image and the name of it in the init different.

Thanks for saying it, I will fix it now.
If you find other bugs, simply post them here or on github (if you have an account).

I go fixing it and playing Red Eclipse... xD

EDIT: I fixed it just now, and I'm playing red eclipse xDDD
 

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

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

by jogag » Tue Sep 01, 2015 16:46

I have an idea for a device: a JTAG-like debugger you can place near a luacontroller or a router and use to change the chip code! (controlled via digiline)
This can be nice for remote chip programming (connect the debugger to a router or wifi chip then write some code).
The JTAG debugger can:
  1. Reset the connected chip and trigger any event of any type
  2. Read, write and erase the luacontroller data memory
  3. Read, write and delete the lua code
  4. Control the hardware (mesecon I/O and digilines if the luacontroller)
  5. Brick the luacontroller xD
But it's coming soon...
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

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

by benrob0329 » Tue Sep 01, 2015 16:58

Do you know what we are missing? Comptuercons. Laptops, smartphones, PDAs, desktops, etc.

They would use digilines as the USB and other connections, and be made using LuaControllers!
 

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

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

by jogag » Tue Sep 01, 2015 17:20

benrob0329 wrote:Do you know what we are missing? Comptuercons. Laptops, smartphones, PDAs, desktops, etc.

They would use digilines as the USB and other connections, and be made using LuaControllers!

Good idea, but I'm already working on a router, an ESP8266 and a portable terminal (a PDA which supports only text terminals)...
The debugger will be the most complicated digiline device in minetest: it has 12 commands!!!
It has a status LED: red when idle, green when connected to target and flashing red/green when working. I already made the textures!
 

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

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

by jogag » Tue Sep 01, 2015 17:26

The memory chips in the pack are inspired by real life SPI and I2C microchips, like 24LC256 or 24LC512.
The JTAG debugger is inspired from my ST-link embedded in my STM32F4 discovery board. (For who doesn't know electronics, that board is like a luacontroller, but in real life!)
Image
(STM32F4DISCOVERY, image from STMicroelectronics)
The big microchip is the "luacontroller" (but with no lua support xD), the small chip near to the upper USB connector is the JTAG/SWD debugger. I taken inspiration from it.
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Thu Sep 03, 2015 05:34

Wait a second.
I realized something...
I CAN MAKE MY OWN MOD
*facepalms* I could have made my own computer mod the whole time....
Well, I'll get to work and brush aside the dusty 20+ unfinished projects.
I'm bold. I'm sarcastic. I'm PChicken.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

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

by Sokomine » Fri Sep 04, 2015 04:40

Remeber that there's a nice computer mod inside homedecor. It already comes with nice nodeboxes/meshes for quite a lot of computer hardware. Right now, it mostly has decorative functions.
A list of my mods can be found here.
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sat Sep 05, 2015 03:07

oooh aaah I'll take that into mind.
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by jogag » Sat Sep 05, 2015 09:24

Sokomine wrote:Remeber that there's a nice computer mod inside homedecor. It already comes with nice nodeboxes/meshes for quite a lot of computer hardware. Right now, it mostly has decorative functions.

The digiprinter nodebox and textures are from that mod. :D

EDIT: I ordered an ESP8266 just now, starting experimenting and copying in minetest :DDD
 

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

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

by jogag » Sat Sep 05, 2015 09:37

I have an idea for the ESP8266:

It will be the wireless transceiver. You can't re-program it, unless you have a JTAG debugger. Place it near the wireless transceiver, and use the commands to reprogram the chip.
New programs are simple lua scripts like the ones in IoT routers, then you can port almost any router program that does not use mesecons.
You can also dump the default code and use it in a router! This turns any router in a wireless transceiver for luacontrollers.

I also updated the JTAG programmer: it now needs commands to connect/disconnect to the target chip.
(You can also right-click it to connect).

And, for easy coding, I'm working on a text editor terminal (like the one in Calandria), you can use to easily write code for the wireless transceiver. It has native support for the programmer, you can simply plug the programmer, and click buttons to reprogram the target.
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sat Sep 05, 2015 14:37

how do you run/evaluate a string?
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by jogag » Sat Sep 05, 2015 20:18

programmingchicken wrote:how do you run/evaluate a string?

IoT router, ESP8266 and JTAG debugger are work in progress. They are not in the pack yet.

And I knew the real-life ESP8266 can run Lua programs. Good! :)
(@rubenwardy what about using it as a small dedicated MTPM client? xD)
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sat Sep 05, 2015 21:11

jogag wrote:The keyboard used here was initially created by bas080, and here's a screenshot (from bas080) of the keyboard:
<img>
You can see a piston door on the right! Yeah!

WAIT @-@
YOU CAN SEE A TERMINAL BLOCK IN THE FAR RIGHT!!!
omg
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by jogag » Sun Sep 06, 2015 08:04

programmingchicken wrote:
jogag wrote:The keyboard used here was initially created by bas080, and here's a screenshot (from bas080) of the keyboard:
<img>
You can see a piston door on the right! Yeah!

WAIT @-@
YOU CAN SEE A TERMINAL BLOCK IN THE FAR RIGHT!!!
omg

Yes, it's a terminal which executes everything you type or send via digiline on the server. I know it.
But it's dangerous. Everyone using that terminal can run any shell command on the server.

EDIT: I found the post, here's the link

Screenshot of that mod:
Image
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sun Sep 06, 2015 14:26

I just found it, I looked in the WIP mods section before checking my posts.
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

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

by benrob0329 » Sun Sep 06, 2015 17:03

jogag wrote:
programmingchicken wrote:
jogag wrote:The keyboard used here was initially created by bas080, and here's a screenshot (from bas080) of the keyboard:
<img>
You can see a piston door on the right! Yeah!

WAIT @-@
YOU CAN SEE A TERMINAL BLOCK IN THE FAR RIGHT!!!
omg

Yes, it's a terminal which executes everything you type or send via digiline on the server. I know it.
But it's dangerous. Everyone using that terminal can run any shell command on the server.

EDIT: I found the post, here's the link

Screenshot of that mod:
Image


YIKES! Sounds like it could be a usefull admin block though, but it would need to be able to be locked, and only obtained using give.
 

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

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

by jogag » Mon Sep 07, 2015 14:25

benrob0329 wrote:
jogag wrote:
programmingchicken wrote:WAIT @-@
YOU CAN SEE A TERMINAL BLOCK IN THE FAR RIGHT!!!
omg

Yes, it's a terminal which executes everything you type or send via digiline on the server. I know it.
But it's dangerous. Everyone using that terminal can run any shell command on the server.

EDIT: I found the post, here's the link

Screenshot of that mod:
Image


YIKES! Sounds like it could be a usefull admin block though, but it would need to be able to be locked, and only obtained using give.

That terminal has no crafting recipes and is not in creative inventory, you can only get it with
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/giveme terminal:client

You can download that mod if you want -- click here, but I think it's too dangerous for including it in Digiline Stuff.

And I made an IoT lamp with my ESP8266 in real life!!! I can turn it on with my smartphone! (I'm porting the esp8266 in IoT mod in minetest...)

More screenshots of the terminal mod (taken by bas080):
+ Screenshots
 

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

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

by jogag » Tue Sep 08, 2015 16:51

I love NodeMCU (lua for the ESP8266). I want to make something like a sync function: you make some code for the esp8266 in minetest and it will be automatically downloaded to your real esp8266. The esp8266 connects to your wifi network and to the minetest server, and if it has a different code, it self-reprograms with the code from the server.

Is this a great idea?
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sat Sep 12, 2015 01:15

I wants a display that will grow.
aka, the display that you can make bigger by placing more of the blocks by it.
it's complicated and probably impossible.
:3
Eh, imma make a plant mod that grows randomly (said the man as he quit 20 more projects)
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by jogag » Tue Sep 15, 2015 16:11

programmingchicken wrote:I wants a display that will grow.
aka, the display that you can make bigger by placing more of the blocks by it.
it's complicated and probably impossible.
:3
Eh, imma make a plant mod that grows randomly (said the man as he quit 20 more projects)

The display is a good idea, but it will be slow with digilines (do you want to control a 4K screen with the super-slow I2C?) and it will add many nodes, one for color, unless my feature request will become true!
(Digilines are very laggy, how can you control a huge display with them?)
And how about adding an Arduino to replace luacontrollers? (yes, I'm kidding!)
 

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

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

by jogag » Tue Sep 22, 2015 15:53

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: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Tue Sep 22, 2015 19:58

m2t
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by jogag » Tue Sep 29, 2015 18:45

programmingchicken wrote:m2t

+1

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

And the Arduino killing luacontrollers? :)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Sun Oct 04, 2015 12:54

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

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
{
   type = "digiline",
   msg = "sdsdsd",
   channel = ""
}


The problem is here:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
 

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

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

by jogag » Sat Oct 24, 2015 08:05

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: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sat Oct 24, 2015 14:49

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
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by jogag » Thu Oct 29, 2015 13:36

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: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

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

by benrob0329 » Sun Dec 06, 2015 02:26

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: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

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

by benrob0329 » Mon Dec 07, 2015 03:10

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

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

by jogag » Mon Dec 07, 2015 15:50

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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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).
 

PreviousNext

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron