Slashdot Mirror


User: cvk

cvk's activity in the archive.

Stories
0
Comments
15
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 15

  1. Re:So... on The NetBSD Toaster · · Score: 5, Informative

    Yes, actually! I'm Christian von Kleist and I'm with The NetBSD Foundation, manning the booth at LinuxWorld SF '05 and operating our sweet, sweet toaster demo. The script that does the toasting is /usr/local/bin/toast (seriously). Scripts interface with the toaster device drivers (the burner relay, the buttons, the LED bank, the toastiness knob, and the relay that turns on the latch electromagnet) through sysctl.

    Pictures I took: http://wickedways.org/articles/linuxworld2005/

    Here's what's available to a script from sysctl:

    # sysctl -a | grep hw.t
    hw.toaster0.led0_duty = 1 hw.toaster0.led0_width = 8
    hw.toaster0.led1_duty = 2 hw.toaster0.led1_width = 16
    hw.toaster0.led2_duty = 4 hw.toaster0.led2_width = 32
    hw.toaster0.led3_duty = 8 hw.toaster0.led3_width = 64
    hw.toaster0.magnetic_latch = 0 hw.toaster0.burner_element = 0
    hw.toastersensors0.burnlevel_knob = 1593 hw.toastersensors0.cancel_key = 0 hw.toastersensors0.cancel_key_ticks = 13 hw.toastersensors0.toast_key = 0
    hw.toastersensors0.toast_key_ticks = 4 hw.toastersensors0.bagel_key = 0
    hw.toastersensors0.bagel_key_ticks = 6
    hw.toastersensors0.warm_key = 0 hw.toastersensors0.warm_key_ticks = 7 hw.toastersensors0.frozen_key = 0 hw.toastersensors0.frozen_key_ticks = 10 hw.toastersensors0.toast_down = 0 hw.toastersensors0.toast_down_ticks = 50965 hw.tspld0.board_temp = 40250000 hw.tspld0.board_temp_5s = 40290128
    hw.tspld0.board_temp_30s = 40477805

    (The board_temp are the temperature in C, multiplied by 10^6, so right now it's at 40.25 degrees C.) /usr/local/bin/toast is pretty complicated, but a basic toast script works like this:

    #! /bin/sh
    sysctl -w hw.toaster0.magnetic_latch=1
    # user presses toast lever down now...
    sysctl -w hw.toaster0.burner_element = 1
    sleep 60
    sysctl -w hw.toaster0.burner_element = 0
    sysctl -w hw.toaster0.magnetic_latch=0
    echo "Toast is done!"

    Only root has write access to hw.toaster0.burner_element! :D

    The real script uses trap to prevent the sleep line from being interrupted, since that could result in a fire!

    Just FYI:
    # dmesg
    NetBSD 3.0_BETA (TS7200) #57: Mon Aug 8 00:34:41 MST 2005
    joff@sayan.wifi.home:/home/joff/NetBSD-toaster/obj /sys/arch/evbarm/compi
    le/TS7200
    total memory = 32768 KB
    avail memory = 28196 KB
    mainbus0 (root)
    cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)
    cpu0: DC enabled IC enabled WB enabled EABT
    cpu0: 16KB/32B 64-way Instruction cache
    cpu0: 16KB/32B 64-way write-back-locking-A Data cache
    epsoc0 at mainbus0: Cirrus Logic EP93xx SoC rev E0
    epsoc0: fclk 200.03 Mhz hclk 100.01 Mhz pclk 50.01 Mhz
    ohci0 at epsoc0 addr 0x80020000-0x80020fff intr 56
    epclk0 at epsoc0 addr 0x80810000-0x8081008f intr 35
    epe0 at epsoc0 addr 0x80010000-0x8001ffff intr 39
    epe0: MAC address 00:d0:69:4f:af:76
    ukphy0 at epe0 phy 1: Generic IEEE 802.3u media interface
    ukphy0: OUI 0x0010a1, model 0x0021, rev. 9
    ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    epcom0 at epsoc0 addr 0x808c0000-0x808c0fff intr 52
    epcom1 at epsoc0 addr 0x808d0000-0x808d0fff intr 54
    epcom1: console
    ohci0: OHCI version 1.0
    usb0 at ohci0: USB revision 1.0
    uhub0 at usb0
    uhub0: Cirrus Logic OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 3 ports with 3 removable, self powered
    tspld0 at mainbus0: Technologic Systems TS-7200 rev C, features 0x1
    tspld0: jumpers 0x7
    tspld0: board temperature 21.93 degC (71.48 degF)
    isa0 at tspld0: PC/104 expansion bus
    tsdio0 at isa0 port 0x100-0x107: Technologic Systems TS-DIO24
    toasterlcd0 at tsdio0: 4x40 text-mode hd44780 LCD
    toasterlcd0: using port C, bits 0-7 as DB0-DB7
    toasterlcd0: using port B, bits 0-3 as RS, WR, EN1, EN2
    wsdisplay0 at toasterlcd0 kbdmux 1
    wsmux1: connecting to wsdisplay0
    toaster0 at ts

  2. Wow! That girl's pretty hot... on Martian Rock Found In Morocco · · Score: 1

    "Carine Bidaut and Bruno Fectay hold rocks from Mars" That girl's pretty hot! She can hold my rocks any day. Bruno, however, can keep holding his own. [Sorry, I originally AC'd this by accident.]

  3. More disproof... on Robots Of The Victorian Era · · Score: 2, Informative

    I'm sure that everyone reading the Boilerplate story (about the would-be soldier, scout, mechanical marvel-man, etc...) wondered what kind of magic pills the guy who wrote it was taking since clearly a steam-powered man never did anything he claims it did.

    Some more (dis)proof is provided for those who couldn't find that magic pill. Mechanical soldier, my shiny metal ass!

  4. Sketchy terms on Wardriver Charged with Theft of Communications · · Score: 2, Insightful

    From the Canadian Criminal Code, S.342.1 Unauthorized Use of Computer:

    342.1 (1) Every one who, fraudulently and without colour of right,

    Definitions (2) In this section,

    • "computer password"
    • "computer password" means any data by which a computer service or computer system is capable of being obtained or used;

    Doesn't that make a URL a "computer password?" Would I be guilty of violating S.342.1 by telling my friends to go to goatse.cx or tubgirl.com?

    It's fun to surprise our friends (and enemies) with URLs like those, but the "colour of right" is definitely lacking from such a gesture.

  5. Low-tech options on Perfect Pitch for Those Without It · · Score: 5, Funny

    Just thought I'd mention that my shower seems to have a similar effect and the cost is zero since I need an apartment anyway! Add the cost of water and I have a make-shift autotuner for about twenty-five cents an hour....

  6. I'll keep my robovacuum on Roomba Competitor Slightly Lacking · · Score: 1

    I have an automatic kitchen floor cleaner than never misses even the tiniest crumb! ...AND it plays fetch!

  7. Re:How about something marine? on TAM 5 Has landed · · Score: 1

    Wow, those things are awesome. The second one (the one that relies on heat exchange) sounds complicated enough to be hard to maintain.

  8. Re:How about something marine? on TAM 5 Has landed · · Score: 1

    That's a great idea! It'd never occured to me, but I guess that the hydrogen might start to leak out of the zeppelin's balloon since it's such a tiny molucule. Electrolyzing collected water is a great way to replenish it.

  9. Re:How about something marine? on TAM 5 Has landed · · Score: 1

    I neglected to mention it, but one of the obvious benefits of a floating vehicle is the ability to pause on the surface during the trip to recharge the batters (albeit slowly) with onboard solar cells. Of course, solar cells are not magical and have very small output for their area so this solution would slow things down a good deal.

    I think the drag could be reduced below that of the TAM 5 in its air world, especially if control surfaces were made small and perhaps if propulsion were made internal in the form of a water jet.

    In the classic F = 0.5*Cd*r*v2*S for drag in a fluid, r (fluid density) is greater for water, but S (the projected area perpendicular to flow) could be made very small by giving the vehicle a pointy, slender shape at both ends. Finally, a slick polymer coat would be essential for reducing microscopic perpendicular surfaces in the paint.

  10. How about something marine? on TAM 5 Has landed · · Score: 5, Insightful

    This was a great project. I know we've all had daydreams of building autonomous flying machines, and I wonder how many of us have also daydreamed of a small autonomous submersible? I think that a tiny submarine would be just as exciting to see cross the Atlantic although a bit slower.

    The primary benefit of a vehicle that uses the water as its transport mechanism is that it can't crash! It could stay a few dozen meters below the surface for optimum travel speed and emerge from the water at intervals to update its position by GPS and wire that and other data such as temperature, atmospheric pressure, wind speed, and the like back to the crew on land.

    Once nice side effect of traveling in such a dense medium is that a great deal of instrumentation weight would be okay since it's easy to make things float in water. The same cannot be said of the air! That means it might be possible to use a device like a gyroscope to keep track of heading while under the surface. Try loading something like that onto an RC airplane and you'll need some big wings.

  11. But where will this technology go from here? on Linux Hits the Road · · Score: 5, Interesting

    This high-speed video capture is definitely the way to go for a first step, but of course the situation will be hugely improved when all that data can be taken back to the lab an scanned for drivability by software instead of by human brainpower.

    Perhaps when the sun is low shadows would be cast over potholes that would lead to lower temperatures inside the crater than on the surface of the road. That would make infrared cameras an obvious choice for picking out the cold-bottomed potholes.

    Or perhaps a rear vehicle could shine a light at an acute angle to the ground that would turn potholes into shadowy pits for easy detection by a forward vehicle on the other side of the pothole?

    So many possibilities. (So many challenges!)

  12. Re:Historic inventions are nice on Top 10 Inventions in Money Technology During the 1900's · · Score: 1

    OMFG, you have to be kidding! Do you really think anyone wants the last truly anonymous method of payment to become another tracking method of tracking our cashflow (as if enough ways didn't exist already)? A recent /. article foresaw thieves who targeted victims by RFID's in their money. Are you actually trying to hasten that day's coming?

  13. All this miraculous technology... on Top 10 Inventions in Money Technology During the 1900's · · Score: 5, Funny

    ...and what does it all lead to? Inventive new ways to pay for porn sites....

  14. Re:Sorry hardware and a okay OS on Fry's Electronics - Selling Linux... Or Not? · · Score: 1

    I smell a cluster!

  15. Re:Sorry hardware and a okay OS on Fry's Electronics - Selling Linux... Or Not? · · Score: 1

    I'd just like to point out that Walmart also sells some nice toasters, so NetBSD is always a possibility as well. Of course don't bother getting the four-slot model since there's currently no support for SMP in port-toaster.