Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: antoxic on January 13, 2017, 06:33:27 pm

Title: Write IR Toy serial number
Post by: antoxic on January 13, 2017, 06:33:27 pm
Hi!

Is there any chance to write a serial number to the toy? At the moment the serial number is 00000001

Code: [Select]
# /bin/udevadm info --name=/dev/ttyACM0 | grep SERIAL_SHORT
E: ID_SERIAL_SHORT=00000001

I want to connect few of them to the same computer and distinguish them.

Any help would be appreciated.

Regards
Title: Re: Write IR Toy serial number
Post by: tayken on January 15, 2017, 10:01:35 am
You have to recompile the firmware with changing line 132 at descriptors.h file: https://github.com/DangerousPrototypes/ ... ors.h#L132 (https://github.com/DangerousPrototypes/dangerous-prototypes-open-hardware/blob/master/USB_IR_Toy/Firmware-main/descriptors.h#L132)
Title: Re: Write IR Toy serial number
Post by: antoxic on May 26, 2017, 10:09:51 am
Thank you! I will try that!

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00972056208session_write_close ( )...(null):0
20.01002187800ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01002188576Database_MySQL->query( ).../DatabaseHandler.php:119
40.05462327312Database_MySQL->error( ).../Db-mysql.class.php:273