can't auto upload after changing product name

Status
Not open for further replies.

tveenker

Member
Hi all,

Short question. Is it expected behavior for a Teensy 3.1 that auto reboot no longer works after having changed the manufacturer and product names? teensy_post_compile/teensy_reboot tell me to press the program button. I'm using Linux.

As suggested on the forum I simply included a file (name.c) that defines the names. See below. lsusb -v and kern.log show the names and serial number are changed correctly. No other numbers/ids have changed.

Code:
#include <usb_names.h>

#define MANUFACTURER_NAME	{'F','o','o'}
#define MANUFACTURER_NAME_LEN	3
#define PRODUCT_NAME		{'T','r','a','l','a','l','a'}
#define PRODUCT_NAME_LEN	7

struct usb_string_descriptor_struct usb_string_manufacturer_name = {
        2 + MANUFACTURER_NAME_LEN * 2,
        3,
        MANUFACTURER_NAME
};
struct usb_string_descriptor_struct usb_string_product_name = {
	2 + PRODUCT_NAME_LEN * 2,
        3,
        PRODUCT_NAME
};
struct usb_string_descriptor_struct usb_string_serial_number = {
        2 + 10 * 2,
        3,
        {'1','2','3','4','5','6','7','8','9','0'}
};
 
That makes perfect sense! Never thought about that.

I'd like my clients to be able to update the device I sold them, without requiring them to open the box to press the program button.

Would it therefore be possible to have a custom version of the upload tool that teensy developers can adapt and bundle with their product?
 
Status
Not open for further replies.
Back
Top