Thank you very much. I will try to implement your suggested ways. Right now I am actually using service routine that executes the script that initializes the CAN. At the start of script I have given delay of 20 seconds.
On Tuesday, May 3, 2016 at 3:44:19 PM UTC-4, William Hermans wrote: > > Ok, so how do you fix the problem ? manually bring the CANBUS interface up > ? If that is te case, then you need to start your script later in the boot > process. Using rc.d may do the trick, but in case you're already using > rc.d, then you may need to setup a cron job to 30 seconds after boot, or > something. This would need trial and error. In other words this strongly > sounds like some kind of "race condition". > > With systemd there is a way to test for prerequisite services, but I do > not know systemd well enough to advise you there. > > On Tue, May 3, 2016 at 11:00 AM, Akash Gajeshwar <[email protected] > <javascript:>> wrote: > >> I have script that runs at startup which initializes the CAN >> communication on my BBB. Whenever I restart my BBB this script does work >> most of the times, I would say 7 out of 10. >> Once the CAN is up successfully it never stops in middle of working. Then >> I generally use Candump to fetch all the values from CAN bus. >> The only issue is, sometimes on reboot I get the error message saying >> "Read: Network is Down". So I am wondering what is the possible issue from >> BBB side. >> >> >> On Tuesday, May 3, 2016 at 1:20:01 PM UTC-4, William Hermans wrote: >>> >>> *Can you please tell me how does sometimes the CAN network goes down on >>>> rebooting the BBB?* >>>> >>> >>> No, I can only guess because you're not giving enough information. But >>> if I had to guess right now I'd say you're having a script / driver module >>> race condition. But even that does not sound 100% right. >>> >>> You need to apply some troubleshooting for situation . . . >>> >>> On Tue, May 3, 2016 at 10:14 AM, Akash Gajeshwar <[email protected] >>> > wrote: >>> >>>> Yes. I do have a script that runs at startup. >>>> >>>> Even if I try to run that script manually it shows the same error. >>>> >>>> Can you please tell me how does sometimes the CAN network goes down on >>>> rebooting the BBB? >>>> >>>> On Tuesday, May 3, 2016 at 12:58:11 PM UTC-4, William Hermans wrote: >>>>> >>>>> Of course the can network goes down when you reboot the system, but >>>>> you need to be more clear as to what your problem is. Do you have a >>>>> script >>>>> that runs on startup that is failing, or what ? >>>>> >>>>> On Tue, May 3, 2016 at 9:48 AM, Akash Gajeshwar < >>>>> [email protected]> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> I am using "Waveshare CAN Cape" for sending CAN messages from >>>>>> Beaglebone Black. I communicate with Beaglebone using ethernet by making >>>>>> SSH connection and I have latest Debian OS on BBB. >>>>>> >>>>>> Sometimes when I restart the Beaglebone it shows an error message >>>>>> saying "Network is down". Because of this my whole CAN communication >>>>>> stops >>>>>> to work. >>>>>> >>>>>> I am not sure why there is this inconsistency with BBB. Please let me >>>>>> know if there is any possible solution for this. >>>>>> >>>>>> Thank you, >>>>>> Akash G. >>>>>> >>>>>> -- >>>>>> For more options, visit http://beagleboard.org/discuss >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "BeagleBoard" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/beagleboard/c8d019d5-7ec7-4b5d-93a2-4bf56af84d98%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/beagleboard/c8d019d5-7ec7-4b5d-93a2-4bf56af84d98%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> For more options, visit http://beagleboard.org/discuss >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "BeagleBoard" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/beagleboard/31638628-584e-4c16-8a6e-dc18c361723e%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/beagleboard/31638628-584e-4c16-8a6e-dc18c361723e%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to the Google Groups >> "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/beagleboard/1c30c10f-9326-47bf-a9a3-2a8d5ea1a074%40googlegroups.com >> >> <https://groups.google.com/d/msgid/beagleboard/1c30c10f-9326-47bf-a9a3-2a8d5ea1a074%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/9035344e-1c2d-4917-a4ef-b1a2cd89c450%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
