tessel / hardware-modules

[DEPRECATED] Tessel 10-pin modules, USB modules, and community modules.
5 stars 2 forks source link

Confirm all 10-pin modules work #7

Open Frijol opened 9 years ago

Frijol commented 9 years ago

Make sure all of Tessel's modules are fully functional on Tessel 2

Absolutely must work:

Not urgent; getting replaced by a USB module:

I believe @linusU is working on this – can you confirm?

LinusU commented 9 years ago

This is on my todo list :+1:

LinusU commented 9 years ago
Module Status Last checked
Climate Works 2015-07-23
Ambient tessel/t2-firmware#74
tessel/t2-firmware#78
tessel/t2-firmware#112
2015-10-18
RFID tessel/t2-firmware#75
tessel/t2-firmware#79
tessel/t2-firmware#76
tessel/t2-firmware/issues/108
https://github.com/tessel/t2-firmware/issues/111
2015-09-02
Accelerometer tessel/t2-firmware#76
Works
2015-09-02
GPS tessel/t2-firmware#77
tessel/gps-a2235h#19
2015-09-02
Infrared tessel/t2-firmware#112 2015-10-18
Servo Works 2015-09-02
Relay tessel/relay-mono#6
Works
2015-09-02
johnnyman727 commented 9 years ago

@LinusU thanks for this useful table!

LinusU commented 9 years ago

5 working, 3 broken as of now.

I managed to test the relay manually but it should be noted that the tests currently dosen't work; hence the linked bug.

Frijol commented 9 years ago

Thanks for the update on this!

Frijol commented 9 years ago

Are you sure IR works? I'm getting:

➜  ir  t2 run ir.js
INFO Looking for your Tessel...
INFO Connected to Tessel-02A337692559 over LAN
INFO Writing ir.js to RAM on Tessel-02A337692559 (299.008 kB)...
INFO Deployed.
INFO Running ir.js...
Could not retrieve firmware version and module ID. Attempting update.
Uploading new firmware...
timers.js:371
      immediate._onImmediate();
                ^
TypeError: immediate._onImmediate is not a function
    at processImmediate [as _immediateCallback] (timers.js:371:17)
INFO Stopping script...
Frijol commented 9 years ago

Relay is not working for me, either:

➜  relay  t2 run relay.js
INFO Looking for your Tessel...
INFO Connected to Harold over LAN
INFO Writing relay.js to RAM on Harold (34.304 kB)...
INFO Deployed.
INFO Running relay.js...
Ready! Toggling relays...
pin.rawRead is async, pass in a callback to get the value
pin.rawRead is async, pass in a callback to get the value
/usr/lib/node/tessel-export.js:416
      cb(err, data === REPLY.HIGH ? 1 : 0);
      ^
TypeError: cb is not a function
    at _port.replyQueue.push.callback (/usr/lib/node/tessel-export.js:416:7)
    at null.<anonymous> (/usr/lib/node/tessel-export.js:159:29)
    at emitNone (events.js:67:13)
    at Socket.emit (events.js:166:7)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:402:7)
    at readableAddChunk (_stream_readable.js:157:11)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at Pipe.onread (net.js:520:20)
INFO Stopping script...

(I'm running through the start experience examples)

LinusU commented 9 years ago

@Frijol Could you try rebooting your t2 before testing the ir module. If I remember correctly I sometimes got that error but rebooting it usually solved it. It's being tracked here: tessel/t2-firmware#78

Regarding relay, it seems like there is a callback missing somewhere. I ran the code in test/; which code are you running?

Frijol commented 9 years ago

I was working from http://tessel.github.io/t2-start/modules/relay.html

Will try the reboot thing

Frijol commented 9 years ago

Still having the same issue with IR. It's possible that the Attiny on my IR actually does have old firmware, & I'm hitting a firmware update edge case..

LinusU commented 9 years ago

Hmm, yes, that could be it. We would need to fix that thought...

adkron commented 9 years ago

I'm getting the following when trying to run ambient:

Could not retrieve firmware version and module ID. Attempting update.
Uploading new firmware...
/usr/lib/node/tessel-export.js:387
    throw new RangeError('Buffer size must be within 1-255');
    ^

RangeError: Buffer size must be within 1-255
    at Tessel.Port._txrx (/usr/lib/node/tessel-export.js:387:11)
    at Tessel.SPI.transfer (/usr/lib/node/tessel-export.js:734:14)
    at ISP._transfer (/tmp/remote-script/node_modules/ambient-attx4/node_modules/attiny-common/node_modules/avr-isp/index.js:540:12)
    at ISP._flashAll (/tmp/remote-script/node_modules/ambient-attx4/node_modules/attiny-common/node_modules/avr-isp/index.js:275:10)
    at /tmp/remote-script/node_modules/ambient-attx4/node_modules/attiny-common/node_modules/avr-isp/index.js:263:18
    at null.<anonymous> (/tmp/remote-script/node_modules/ambient-attx4/node_modules/attiny-common/node_modules/avr-isp/index.js:371:9)
    at null.<anonymous> (/usr/lib/node/tessel-export.js:207:31)
    at emitNone (events.js:67:13)
    at Socket.emit (events.js:166:7)
    at emitReadable_ (_stream_readable.js:411:10)
adkron commented 9 years ago

GPS module feedback

INFO Looking for your Tessel...
INFO Connected to Tessel-02A3D73CC63E over LAN
INFO Writing index.js to RAM on Tessel-02A3D73CC63E (44.032 kB)...
INFO Deployed.
INFO Running index.js...
/tmp/remote-script/node_modules/gps-a2235h/index.js:10
var hw = process.binding('hw');
                 ^

Error: No such module: hw
    at Error (native)
    at Object.<anonymous> (/tmp/remote-script/node_modules/gps-a2235h/index.js:10:18)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/tmp/remote-script/index.js:11:14)
    at Module._compile (module.js:435:26)

I'm not sure what that should change to or if this needs a complete reworking.

LinusU commented 9 years ago

@adkron Both of those issues are reported, it's the last issue listed in the table under ambient and gps in my first comment.

adkron commented 9 years ago

Thanks, @LinusU, I didn't even notice those were issue links. Maybe I should have tried them before jumping on everything.

LinusU commented 9 years ago

No problem :ok_hand: they are easy to miss