steptail.com

Does expecting the unexpected make the unexpected the expected?

User Tools

Site Tools


guides:virtual_modem:section_4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
guides:virtual_modem:section_4 [2019-12-11 16:56]
omolini [Making Virtual Modem run at startup]
guides:virtual_modem:section_4 [2020-02-18 18:01]
omolini [Initial VModem testing]
Line 25: Line 25:
     * **/​boot/​vmodem/​ppp.sh**     * **/​boot/​vmodem/​ppp.sh**
  
 +  * Make sure they are executable:
 +    * chmod 770 /​boot/​vmodem/​vmodem.sh
 +    * chmod 770 /​boot/​vmodem/​1.sh
 +    * chmod 770 /​boot/​vmodem/​ppp.sh
 ==== Name of the serial port ==== ==== Name of the serial port ====
 The VModem script has been preconfigured to use **ttyUSB0** ​ as the default serial port name. Typically Raspbian will call its first serial port adapter **ttyUSB0** when using USB to Serial converters, and you won't need to modify this script. However, if the name is something **different**,​ such as **ttyAMA0**,​ you may need to update the script to point to the correct serial port name. The following section described how to double-check your serial port name: The VModem script has been preconfigured to use **ttyUSB0** ​ as the default serial port name. Typically Raspbian will call its first serial port adapter **ttyUSB0** when using USB to Serial converters, and you won't need to modify this script. However, if the name is something **different**,​ such as **ttyAMA0**,​ you may need to update the script to point to the correct serial port name. The following section described how to double-check your serial port name:
Line 63: Line 67:
   * Over on the Raspberry Pi, you should be seeing the corresponding output:   * Over on the Raspberry Pi, you should be seeing the corresponding output:
 {{ :​guides:​pics:​vmodem_putty2.png |}} {{ :​guides:​pics:​vmodem_putty2.png |}}
-  ​* If you get any error messages, take a note of them and look for commonalities in any steps you've taken before this step. Open up the script vmodem.sh for editing to make sure the baud and serial port are properly set. If you're unable to figure it out, feel free to contact me (see bottom of page).+==== Troubleshooting ==== 
 + 
 +  ​Some computers are not cabable of operating at fast serial speeds. ​If you're unable to connect at 28800 or faster, try slower speeds, such as 9600 baud at first. Adjust both the vmodem.sh script to 9600 and your modem serial speed to connect at 9600 baud. If that works, then work your way up to see where the limit for your specific computer is. 
 +  * If you run into any other issues, take a note of them and look for commonalities in any steps you've taken before this step. Open up the script vmodem.sh for editing to make sure the baud and serial port are properly set. If you're unable to figure it out, feel free to contact me (see bottom of page).
  
 ===== Getting online ===== ===== Getting online =====
Line 86: Line 93:
 </​code>​ </​code>​
  
-To automate this process, you can alternatively run the following command on the Raspberry Pi shell which will do the appropriate ​change ​for you:+  * You can alternatively run the following command on the Raspberry Pi shell which will do the appropriate ​changes ​for you:
 <code bash> <code bash>
 sudo sh -c '​printf "`head -n -1 /​etc/​rc.local`\n\ncd /​boot/​vmodem\n./​vmodem.sh &​\n\nexit 0\n" >/​etc/​rc.local'​ sudo sh -c '​printf "`head -n -1 /​etc/​rc.local`\n\ncd /​boot/​vmodem\n./​vmodem.sh &​\n\nexit 0\n" >/​etc/​rc.local'​
guides/virtual_modem/section_4.txt · Last modified: 2023-11-24 23:16 by omolini