Hello,
You may be already see an other topic Understand-Prog-pin-in-Teensy3-1. This lastest concerns more the hardware interfacing.
Now, I would like to develop all others questions to get internet and tools using Yun (mine is Dragino Yun Shield 1.6 or 2.4) with teensy 3.2
Q1: I was not aware about difficulty for compiling but it is the case for now and after some searching I decide to start this topic requiring solution to "simply" compile the bridge library. Does anyone already met the following Error ?
Thanks and best regards,
Vincent
edit: A1: cloning the repository https://github.com/PaulStoffregen/Bridge to replace installed library, the Bridge example seems working.
Q2: Using string use quickly significant memory spaces. Does anyone see a better approach to concatenate some string (that is redirected to terminal of Yun)?
Q3: I cannot find the serial port in Linux Yun /dev, however it works from the Linux laptop and from the Yun I can program the teensy using "teensy_loader_cli -mmcu=mk20dx256 -w prog.hex -v". Any idea to access the serial port?
You may be already see an other topic Understand-Prog-pin-in-Teensy3-1. This lastest concerns more the hardware interfacing.
Now, I would like to develop all others questions to get internet and tools using Yun (mine is Dragino Yun Shield 1.6 or 2.4) with teensy 3.2
Q1: I was not aware about difficulty for compiling but it is the case for now and after some searching I decide to start this topic requiring solution to "simply" compile the bridge library. Does anyone already met the following Error ?
Code:
C:\Program Files\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-ar: C:\Users\richard\AppData\Local\Temp\buildb261c6bc621981c8ffad8d14f424bad0.tmp/core/[B]Bridge.a: No such file or directory[/B]
Thanks and best regards,
Vincent
edit: A1: cloning the repository https://github.com/PaulStoffregen/Bridge to replace installed library, the Bridge example seems working.
Q2: Using string use quickly significant memory spaces. Does anyone see a better approach to concatenate some string (that is redirected to terminal of Yun)?
Code:
if (delayLogSensors.check()) {
delayLogSensors.reset();
if (linux != NULL) {
sprintf(str2, "ref counter1 counter2 counter3 ");
for (index = 0 ; index < NB_SENSOR ; index++)
{
sprintf(str1, "\r\n%d\t%d\t%d\t%d", index + 1, counter1[index], counter2[index], counter3[index]);
strncat(str2, str1, SIZE_MESSAGE);
counter1[index] = 0;
counter2[index] = 0;
counter3[index] = 0;
}
linux->log_linux(str2); //log_linux calling p.runShellCommand("echo `date +'%y.%m.%d %H:%M:%S'` : 'string to log' >> /mnt/sda1/messages");
}
}
Q3: I cannot find the serial port in Linux Yun /dev, however it works from the Linux laptop and from the Yun I can program the teensy using "teensy_loader_cli -mmcu=mk20dx256 -w prog.hex -v". Any idea to access the serial port?
Code:
root@dragino-16c830:/usr/bin# ls -l /dev
drwxr-xr-x 2 root root 60 Jan 1 1970 bsg
drwxr-xr-x 3 root root 60 Jan 1 1970 bus
crw-r--r-- 1 root root 5, 1 Jan 1 1970 console
crw-rw-rw- 1 root root 1, 7 Jan 1 1970 full
crw-r--r-- 1 root root 10, 229 Jul 10 08:30 fuse
drwxr-xr-x 2 root root 60 Jan 1 1970 input
crw-r--r-- 1 root root 1, 11 Jan 1 1970 kmsg
srw-rw-rw- 1 root root 0 Jul 10 08:30 log
crw-r--r-- 1 root root 10, 237 Jul 10 08:30 loop-control
brw-r--r-- 1 root root 7, 0 Jul 10 08:30 loop0
brw-r--r-- 1 root root 7, 1 Jul 10 08:30 loop1
brw-r--r-- 1 root root 7, 2 Jul 10 08:30 loop2
brw-r--r-- 1 root root 7, 3 Jul 10 08:30 loop3
brw-r--r-- 1 root root 7, 4 Jul 10 08:30 loop4
brw-r--r-- 1 root root 7, 5 Jul 10 08:30 loop5
brw-r--r-- 1 root root 7, 6 Jul 10 08:30 loop6
brw-r--r-- 1 root root 7, 7 Jul 10 08:30 loop7
crw-r--r-- 1 root root 1, 1 Jan 1 1970 mem
crw-r--r-- 1 root root 90, 0 Jan 1 1970 mtd0
crw-r--r-- 1 root root 90, 1 Jan 1 1970 mtd0ro
crw-r--r-- 1 root root 90, 2 Jan 1 1970 mtd1
crw-r--r-- 1 root root 90, 3 Jan 1 1970 mtd1ro
crw-r--r-- 1 root root 90, 4 Jan 1 1970 mtd2
crw-r--r-- 1 root root 90, 5 Jan 1 1970 mtd2ro
crw-r--r-- 1 root root 90, 6 Jan 1 1970 mtd3
crw-r--r-- 1 root root 90, 7 Jan 1 1970 mtd3ro
crw-r--r-- 1 root root 90, 8 Jan 1 1970 mtd4
crw-r--r-- 1 root root 90, 9 Jan 1 1970 mtd4ro
crw-r--r-- 1 root root 90, 10 Jan 1 1970 mtd5
crw-r--r-- 1 root root 90, 11 Jan 1 1970 mtd5ro
crw-r--r-- 1 root root 90, 12 Jan 1 1970 mtd6
crw-r--r-- 1 root root 90, 13 Jan 1 1970 mtd6ro
crw-r--r-- 1 root root 90, 14 Jan 1 1970 mtd7
crw-r--r-- 1 root root 90, 15 Jan 1 1970 mtd7ro
brw-r--r-- 1 root root 31, 0 Jan 1 1970 mtdblock0
brw-r--r-- 1 root root 31, 1 Jan 1 1970 mtdblock1
brw-r--r-- 1 root root 31, 2 Jan 1 1970 mtdblock2
brw-r--r-- 1 root root 31, 3 Jan 1 1970 mtdblock3
brw-r--r-- 1 root root 31, 4 Jan 1 1970 mtdblock4
brw-r--r-- 1 root root 31, 5 Jan 1 1970 mtdblock5
brw-r--r-- 1 root root 31, 6 Jan 1 1970 mtdblock6
brw-r--r-- 1 root root 31, 7 Jan 1 1970 mtdblock7
crw-rw-rw- 1 root root 1, 3 Jan 1 1970 null
crw------- 1 root root 108, 0 Jul 10 08:30 ppp
crw-rw-rw- 1 root root 5, 2 Jul 17 07:46 ptmx
drwxr-xr-x 2 root root 0 Jan 1 1970 pts
crw-r--r-- 1 root root 1, 8 Jan 1 1970 random
brw-r--r-- 1 root root 8, 0 Jan 1 1970 sda
brw-r--r-- 1 root root 8, 1 Jan 1 1970 sda1
drwxr-xr-x 2 root root 40 Jan 1 1970 shm
crw-rw-rw- 1 root root 5, 0 Jan 1 1970 tty
crw-rw-rw- 1 root root 253, 0 Jul 17 07:41 ttyATH0
crw-rw-rw- 1 root root 4, 64 Jan 1 1970 ttyS0
crw-rw-rw- 1 root root 4, 65 Jan 1 1970 ttyS1
crw-rw-rw- 1 root root 4, 74 Jan 1 1970 ttyS10
crw-rw-rw- 1 root root 4, 75 Jan 1 1970 ttyS11
crw-rw-rw- 1 root root 4, 76 Jan 1 1970 ttyS12
crw-rw-rw- 1 root root 4, 77 Jan 1 1970 ttyS13
crw-rw-rw- 1 root root 4, 78 Jan 1 1970 ttyS14
crw-rw-rw- 1 root root 4, 79 Jan 1 1970 ttyS15
crw-rw-rw- 1 root root 4, 66 Jan 1 1970 ttyS2
crw-rw-rw- 1 root root 4, 67 Jan 1 1970 ttyS3
crw-rw-rw- 1 root root 4, 68 Jan 1 1970 ttyS4
crw-rw-rw- 1 root root 4, 69 Jan 1 1970 ttyS5
crw-rw-rw- 1 root root 4, 70 Jan 1 1970 ttyS6
crw-rw-rw- 1 root root 4, 71 Jan 1 1970 ttyS7
crw-rw-rw- 1 root root 4, 72 Jan 1 1970 ttyS8
crw-rw-rw- 1 root root 4, 73 Jan 1 1970 ttyS9
crw-r--r-- 1 root root 1, 9 Jan 1 1970 urandom
crw-r--r-- 1 root root 10, 130 Jul 10 08:30 watchdog
crw-rw-rw- 1 root root 1, 5 Jan 1 1970 zero
Last edited: