This is quite an interesting problem. Not entirely sure if it's an mbed bug, but see what you think.
So, I've been using mbed on FreeBSD and monitoring the serial console using screen. Now I'll pretend I don't know the solution and say that the only problem is, the output vanishes if you unplug the mbed and plug it back in again. This terminates the screen session as expected, but upon reconnect, output is no longer sent to screen, but I can see the mbed flash if I type on the keyboard: i.e, something is definitely getting from the screen session to the mbed.
Well It turns out this has nothing to do with screen, and you can use Freebsd's cu command and the same thing happens. What is going on? Working with the guys on the FreeBSD forum, whilst the initial thoughts were to blame screen, it would seem that this was red herring.
The problem of the missing output can be solved simply by power-cycling the mbed fully: complete disconnect and reconnect from power source. Then, when it fires up and is connected to FreeBSD, the serial output can be seen as normal.
It took a while to discover this workaround because: (i) I was using an external power supply so the mbed never lost power. (ii) This problem does not occur on Linux or Mac (not tried windows), so I had no suspicion that this might work.
So it would appear that something odd is going on. I was under the impression that when connecting an mbed via USB to an OS, one should expect the same behaviour whether or not the mbed is already powered up?
Is there some difference in the way an mbed would enumerate itself in the two cases:
1. First time connected after first power up
2. Second time connected (without an intermediate power-cycle event)
?
Regards
Ashley
This is quite an interesting problem. Not entirely sure if it's an mbed bug, but see what you think.
So, I've been using mbed on FreeBSD and monitoring the serial console using screen. Now I'll pretend I don't know the solution and say that the only problem is, the output vanishes if you unplug the mbed and plug it back in again. This terminates the screen session as expected, but upon reconnect, output is no longer sent to screen, but I can see the mbed flash if I type on the keyboard: i.e, something is definitely getting from the screen session to the mbed.
Well It turns out this has nothing to do with screen, and you can use Freebsd's cu command and the same thing happens. What is going on? Working with the guys on the FreeBSD forum, whilst the initial thoughts were to blame screen, it would seem that this was red herring.
The problem of the missing output can be solved simply by power-cycling the mbed fully: complete disconnect and reconnect from power source. Then, when it fires up and is connected to FreeBSD, the serial output can be seen as normal.
It took a while to discover this workaround because: (i) I was using an external power supply so the mbed never lost power. (ii) This problem does not occur on Linux or Mac (not tried windows), so I had no suspicion that this might work.
So it would appear that something odd is going on. I was under the impression that when connecting an mbed via USB to an OS, one should expect the same behaviour whether or not the mbed is already powered up?
Is there some difference in the way an mbed would enumerate itself in the two cases:
1. First time connected after first power up 2. Second time connected (without an intermediate power-cycle event)
?
Regards
Ashley