tellstick-net custom firmware build

Moderator: Telldus

ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

tellstick-net custom firmware build

Post by ritro »

Hi,
I have setup my tellstick-net with telldus-live. I would like to build custom firmware. I'm under Windows 7 x86.
I have follow this page : http://developer.telldus.com/blog/2012/ ... n-firmware and the README.TXT
cmake seems to work correctly but what doing with make ?
Thanks..
ImageUsing a Tellstick Net aussi :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: tellstick-net custom firmware build

Post by micke.prag »

Quote from the README:
The firmware must be compiled on a Linux machine.
If you want to build under any other platform you should probably use some other generator than makefiles in cmake.
Micke Prag
Software
Telldus Technologies
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

Ok thanks, so i stop loosing my time with windows. :wink:
What is the best distrib for you ?
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

Ok I have installed a Debian. I can't find Hi-Tech 9.63 download link for compiler, only 9.80.
May be is my problem to compile firmware project ?

Code: Select all

-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
CMake Error in CMakeLists.txt:
  Cannot find source file "arctech.c".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /.git/tellstick-net/build
Last edited by ritro on Mon Sep 10, 2012 6:32 am, edited 2 times in total.
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

If finally found v9.63PL

Code: Select all

Use the FTP details below to log in to the HI-TECH C Compiler archive:
 
ftp://ftp.microchip.com 
Username: Compilers-RO 
Password: C0mP!0511
Last edited by ritro on Mon Sep 10, 2012 6:32 am, edited 2 times in total.
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

No ! Same Pb with 9.63PL.
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

So i have modified findrf.cmake and findtcpip.cmake. Adding line
SET(CMAKE_CURRENT_LIST_DIR
${CMAKE_SOURCE_DIR}/../rf (&tcpip)
)

Code: Select all

-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /.git/tellstick-net/build
Running Make, but :

Code: Select all

Scanning dependencies of target TellStickNet
[  0%] Compiling common.c
make[2]: execvp: /usr/hitech/picc-18/pro/9.63PL3/bin: Permission non accordée
make[2]: *** [common.p1] Erreur 127
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Erreur 2
make: *** [all] Erreur 2
Last edited by ritro on Mon Sep 10, 2012 6:31 am, edited 1 time in total.
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

I have found :
cmake ../firmware -DPICC18_PATH=<path to picc18> -DDEBUG=n -DDEVICE_ADDRESS=<ip address for TellStick Net>
where <path to picc18> must include picc18 string
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

So custom firmware uploaded after 1 brick, but this page help to restore :
http://developer.telldus.com/wiki/How_t ... lStick_Net

After uploading, client/send.py mke light blinking.
ImageUsing a Tellstick Net aussi :)
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

I'm wondering about Tellstick-net firmware X. What is it able to do. Is it possible to see upgraded firmware 4 code source ? Or other sample code ?
In a first time i want to redirect sensors frames to putty.
Thanks
ImageUsing a Tellstick Net aussi :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: tellstick-net custom firmware build

Post by micke.prag »

There is also a sample client software available in the 'client' folder. It is written in python and shows both the autodiscovery feature as well as sending a simple command.
Firmware 4 is based on the exact code.
Micke Prag
Software
Telldus Technologies
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

Could you say us what is the difference between this 2 firmware. Is there more documentation to explore local firmware?
Could you explain us if it is possible to capture sensor by the way of local firmware and if we could help you to declare new devices. In case case of new devices, were have they to be declared ? on telldus(-core/-live) only or both of telldus/firmware ?
Thanx
ImageUsing a Tellstick Net aussi :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: tellstick-net custom firmware build

Post by micke.prag »

ritro wrote:Could you say us what is the difference between this 2 firmware.
Official firmware: Connects to Telldus Live!
Local firmware: Functions for accessing it locally.
ritro wrote:Could you explain us if it is possible to capture sensor by the way of local firmware and if we could help you to declare new devices.
Yes, it contains the exact same code for receiving sensors as firmware 4.

New sensors need to be implemented both in firmware and telldus(-core/-live). Implementing in the firmware is the first step and implementing it on the server side is usually quite simple.
Micke Prag
Software
Telldus Technologies
ritro
Posts: 51
Joined: Fri Mar 17, 2023 9:45 am

Re: tellstick-net custom firmware build

Post by ritro »

Ok, thanks for return.
So, one more question : where can i find Otio implementation in X-firmware.
ProtocolRisingSun.c isn't it ?
I want to implement it on receive, where can i find info on this protocol or should i capture ?
Thanx
ImageUsing a Tellstick Net aussi :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: tellstick-net custom firmware build

Post by micke.prag »

For transmitting this is not implemented in the firmware. You can take a look at our code for telldus-core here: http://developer.telldus.com/browser/te ... ingSun.cpp
Micke Prag
Software
Telldus Technologies
Post Reply