реклама на сайте
подробности

 
 
 
Reply to this topicStart new topic
> cutecom для debian, gui
another_one
сообщение Apr 4 2018, 15:51
Сообщение #1


Местный
***

Группа: Участник
Сообщений: 252
Регистрация: 2-03-08
Пользователь №: 35 557



Здравствуйте !

Ищу cutecom с gui для debian
Прошу дать ссылку или поделиться у кого есть
Спасибо!
П.С нужен потому что через minicom нет связи , он постоянно в offline


--------------------
One Chip is All You Need
Go to the top of the page
 
+Quote Post
arhiv6
сообщение Apr 4 2018, 16:12
Сообщение #2


Знающий
****

Группа: Свой
Сообщений: 633
Регистрация: 21-05-10
Из: Томск
Пользователь №: 57 423



Он же в репозитории есть
Код
# apt-get install cutecom


--------------------
Go to the top of the page
 
+Quote Post
HardJoker
сообщение Apr 4 2018, 17:25
Сообщение #3


Знающий
****

Группа: Свой
Сообщений: 995
Регистрация: 3-06-05
Пользователь №: 5 713



Цитата(another_one @ Apr 4 2018, 18:51) *
Здравствуйте !

Ищу cutecom с gui для debian
Прошу дать ссылку или поделиться у кого есть
Спасибо!
П.С нужен потому что через minicom нет связи , он постоянно в offline

Это не оно? - https://github.com/neundorf/CuteCom
Go to the top of the page
 
+Quote Post
another_one
сообщение Apr 5 2018, 02:51
Сообщение #4


Местный
***

Группа: Участник
Сообщений: 252
Регистрация: 2-03-08
Пользователь №: 35 557



Цитата(arhiv6 @ Apr 4 2018, 19:12) *
Он же в репозитории есть
Код
# apt-get install cutecom

После того как эта команда не сработала я обратился на форум)
Ставил 1диск и по запросу 2 при установки
Спасибо за ссылку!!!


--------------------
One Chip is All You Need
Go to the top of the page
 
+Quote Post
HardJoker
сообщение Apr 5 2018, 17:49
Сообщение #5


Знающий
****

Группа: Свой
Сообщений: 995
Регистрация: 3-06-05
Пользователь №: 5 713



Цитата(another_one @ Apr 5 2018, 05:51) *
После того как эта команда не сработала я обратился на форум)
Ставил 1диск и по запросу 2 при установки
Спасибо за ссылку!!!

Попробуйте aptitude
Go to the top of the page
 
+Quote Post
Tarbal
сообщение Apr 20 2018, 02:07
Сообщение #6


Профессионал
*****

Группа: Свой
Сообщений: 1 351
Регистрация: 21-05-10
Пользователь №: 57 439



Цитата(HardJoker @ Apr 5 2018, 21:49) *
Попробуйте aptitude

и apt-get update перед тем как apt-get install ...
Еще есть picocom

А самое простое (для проверки) это свой код скомпилировать отсюда:
https://en.wikibooks.org/wiki/Serial_Progra...ng/Serial_Linux

Код
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>

int main(int argc,char** argv)
{
        struct termios tio;
        struct termios stdio;
        struct termios old_stdio;
        int tty_fd;

        unsigned char c='D';
        tcgetattr(STDOUT_FILENO,&old_stdio);

        printf("Please start with %s /dev/ttyS1 (for example)\n",argv[0]);
        memset(&stdio,0,sizeof(stdio));
        stdio.c_iflag=0;
        stdio.c_oflag=0;
        stdio.c_cflag=0;
        stdio.c_lflag=0;
        stdio.c_cc[VMIN]=1;
        stdio.c_cc[VTIME]=0;
        tcsetattr(STDOUT_FILENO,TCSANOW,&stdio);
        tcsetattr(STDOUT_FILENO,TCSAFLUSH,&stdio);
        fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK);       // make the reads non-blocking

        memset(&tio,0,sizeof(tio));
        tio.c_iflag=0;
        tio.c_oflag=0;
        tio.c_cflag=CS8|CREAD|CLOCAL;           // 8n1, see termios.h for more information
        tio.c_lflag=0;
        tio.c_cc[VMIN]=1;
        tio.c_cc[VTIME]=5;

        tty_fd=open(argv[1], O_RDWR | O_NONBLOCK);      
        cfsetospeed(&tio,B115200);            // 115200 baud
        cfsetispeed(&tio,B115200);            // 115200 baud

        tcsetattr(tty_fd,TCSANOW,&tio);
        while (c!='q')
        {
                if (read(tty_fd,&c,1)>0)        write(STDOUT_FILENO,&c,1);              // if new data is available on the serial port, print it out
                if (read(STDIN_FILENO,&c,1)>0)  write(tty_fd,&c,1);                     // if new data is available on the console, send it to the serial port
        }

        close(tty_fd);
        tcsetattr(STDOUT_FILENO,TCSANOW,&old_stdio);

        return EXIT_SUCCESS;
}
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 18th April 2024 - 10:06
Рейтинг@Mail.ru


Страница сгенерированна за 0.0141 секунд с 7
ELECTRONIX ©2004-2016